/* bstruct.c generated by valac 0.25.1, the Vala compiler
 * generated from bstruct.vala, do not modify */


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


#define TYPE_BSTRUCT (bstruct_get_type ())
typedef AStruct BStruct;



GType bstruct_get_type (void) G_GNUC_CONST;
BStruct* bstruct_dup (const BStruct* self);
void bstruct_free (BStruct* self);


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


void bstruct_free (BStruct* self) {
	g_free (self);
}


GType bstruct_get_type (void) {
	static volatile gsize bstruct_type_id__volatile = 0;
	if (g_once_init_enter (&bstruct_type_id__volatile)) {
		GType bstruct_type_id;
		bstruct_type_id = g_boxed_type_register_static ("BStruct", (GBoxedCopyFunc) bstruct_dup, (GBoxedFreeFunc) bstruct_free);
		g_once_init_leave (&bstruct_type_id__volatile, bstruct_type_id);
	}
	return bstruct_type_id__volatile;
}



