/* gamepad-input.c generated by valac 0.36.6.6-c7bee, the Vala compiler
 * generated from gamepad-input.vala, do not modify */

/* This file is part of GNOME Games. License: GPL-3.0+.*/

#include <glib.h>
#include <glib-object.h>
#include <string.h>


#define GAMES_TYPE_GAMEPAD_INPUT (games_gamepad_input_get_type ())
typedef struct _GamesGamepadInput GamesGamepadInput;

struct _GamesGamepadInput {
	guint16 type;
	guint16 code;
};



GType games_gamepad_input_get_type (void) G_GNUC_CONST;
GamesGamepadInput* games_gamepad_input_dup (const GamesGamepadInput* self);
void games_gamepad_input_free (GamesGamepadInput* self);


GamesGamepadInput* games_gamepad_input_dup (const GamesGamepadInput* self) {
	GamesGamepadInput* dup;
	dup = g_new0 (GamesGamepadInput, 1);
	memcpy (dup, self, sizeof (GamesGamepadInput));
	return dup;
}


void games_gamepad_input_free (GamesGamepadInput* self) {
	g_free (self);
}


GType games_gamepad_input_get_type (void) {
	static volatile gsize games_gamepad_input_type_id__volatile = 0;
	if (g_once_init_enter (&games_gamepad_input_type_id__volatile)) {
		GType games_gamepad_input_type_id;
		games_gamepad_input_type_id = g_boxed_type_register_static ("GamesGamepadInput", (GBoxedCopyFunc) games_gamepad_input_dup, (GBoxedFreeFunc) games_gamepad_input_free);
		g_once_init_leave (&games_gamepad_input_type_id__volatile, games_gamepad_input_type_id);
	}
	return games_gamepad_input_type_id__volatile;
}



