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

/*  This file is part of corebird, a Gtk+ linux Twitter client.
 *  Copyright (C) 2013 Timm Bäder
 *
 *  corebird is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  corebird is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with corebird.  If not, see <http://www.gnu.org/licenses/>.
 */

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


#define TYPE_BUNDLE (bundle_get_type ())
#define BUNDLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BUNDLE, Bundle))
#define BUNDLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BUNDLE, BundleClass))
#define IS_BUNDLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BUNDLE))
#define IS_BUNDLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BUNDLE))
#define BUNDLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BUNDLE, BundleClass))

typedef struct _Bundle Bundle;
typedef struct _BundleClass BundleClass;
typedef struct _BundlePrivate BundlePrivate;
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
#define __vala_GValue_free0(var) ((var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))
#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))

struct _Bundle {
	GObject parent_instance;
	BundlePrivate * priv;
};

struct _BundleClass {
	GObjectClass parent_class;
};

struct _BundlePrivate {
	GHashTable* values;
};


static gpointer bundle_parent_class = NULL;

GType bundle_get_type (void) G_GNUC_CONST;
#define BUNDLE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_BUNDLE, BundlePrivate))
enum  {
	BUNDLE_DUMMY_PROPERTY,
	BUNDLE_SIZE
};
Bundle* bundle_new (void);
Bundle* bundle_construct (GType object_type);
static void _g_free0_ (gpointer var);
static void _vala_GValue_free (GValue* self);
static void __vala_GValue_free0_ (gpointer var);
void bundle_put_string (Bundle* self, const gchar* key, const gchar* value);
static GValue* _g_value_dup (GValue* self);
gchar* bundle_get_string (Bundle* self, const gchar* key);
void bundle_put_int64 (Bundle* self, const gchar* key, gint64 value);
gint64 bundle_get_int64 (Bundle* self, const gchar* key);
void bundle_put_int (Bundle* self, const gchar* key, gint value);
gint bundle_get_int (Bundle* self, const gchar* key);
void bundle_put_object (Bundle* self, const gchar* key, GObject* object);
GObject* bundle_get_object (Bundle* self, const gchar* key);
void bundle_put_bool (Bundle* self, const gchar* key, gboolean value);
gboolean bundle_get_bool (Bundle* self, const gchar* key);
GValue* bundle_get_value (Bundle* self, const gchar* key);
gchar* bundle_to_string (Bundle* self);
gboolean bundle_equals (Bundle* self, Bundle* other);
guint bundle_get_size (Bundle* self);
static void bundle_finalize (GObject* obj);
static void _vala_bundle_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);


static void _g_free0_ (gpointer var) {
	var = (g_free (var), NULL);
}


static void _vala_GValue_free (GValue* self) {
	g_value_unset (self);
	g_free (self);
}


static void __vala_GValue_free0_ (gpointer var) {
	(var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL));
}


Bundle* bundle_construct (GType object_type) {
	Bundle * self = NULL;
	GHashFunc _tmp0_ = NULL;
	GEqualFunc _tmp1_ = NULL;
	GHashTable* _tmp2_ = NULL;
	self = (Bundle*) g_object_new (object_type, NULL);
	_tmp0_ = g_str_hash;
	_tmp1_ = g_str_equal;
	_tmp2_ = g_hash_table_new_full (_tmp0_, _tmp1_, _g_free0_, __vala_GValue_free0_);
	_g_hash_table_unref0 (self->priv->values);
	self->priv->values = _tmp2_;
	return self;
}


Bundle* bundle_new (void) {
	return bundle_construct (TYPE_BUNDLE);
}


static GValue* _g_value_dup (GValue* self) {
	return g_boxed_copy (G_TYPE_VALUE, self);
}


static gpointer __g_value_dup0 (gpointer self) {
	return self ? _g_value_dup (self) : NULL;
}


void bundle_put_string (Bundle* self, const gchar* key, const gchar* value) {
	GValue v = {0};
	GValue _tmp0_ = {0};
	const gchar* _tmp1_ = NULL;
	GHashTable* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	GValue _tmp5_ = {0};
	GValue _tmp6_ = {0};
	GValue* _tmp7_ = NULL;
	g_return_if_fail (IS_BUNDLE (self));
	g_return_if_fail (key != NULL);
	g_return_if_fail (value != NULL);
	g_value_init (&_tmp0_, G_TYPE_STRING);
	v = _tmp0_;
	_tmp1_ = value;
	g_value_set_string (&v, _tmp1_);
	_tmp2_ = self->priv->values;
	_tmp3_ = key;
	_tmp4_ = g_strdup (_tmp3_);
	_tmp5_ = v;
	_tmp6_ = _tmp5_;
	_tmp7_ = __g_value_dup0 (&_tmp6_);
	g_hash_table_insert (_tmp2_, _tmp4_, _tmp7_);
	G_IS_VALUE (&v) ? (g_value_unset (&v), NULL) : NULL;
}


gchar* bundle_get_string (Bundle* self, const gchar* key) {
	gchar* result = NULL;
	GValue* v = NULL;
	GHashTable* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gconstpointer _tmp2_ = NULL;
	GValue* _tmp3_ = NULL;
	GValue* _tmp4_ = NULL;
	g_return_val_if_fail (IS_BUNDLE (self), NULL);
	g_return_val_if_fail (key != NULL, NULL);
	_tmp0_ = self->priv->values;
	_tmp1_ = key;
	_tmp2_ = g_hash_table_lookup (_tmp0_, _tmp1_);
	_tmp3_ = __g_value_dup0 ((GValue*) _tmp2_);
	v = _tmp3_;
	_tmp4_ = v;
	if (_tmp4_ != NULL) {
		GValue* _tmp5_ = NULL;
		const gchar* _tmp6_ = NULL;
		gchar* _tmp7_ = NULL;
		_tmp5_ = v;
		_tmp6_ = g_value_get_string (_tmp5_);
		_tmp7_ = g_strdup (_tmp6_);
		result = _tmp7_;
		__vala_GValue_free0 (v);
		return result;
	}
	result = NULL;
	__vala_GValue_free0 (v);
	return result;
}


void bundle_put_int64 (Bundle* self, const gchar* key, gint64 value) {
	GValue v = {0};
	GValue _tmp0_ = {0};
	gint64 _tmp1_ = 0LL;
	GHashTable* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	GValue _tmp5_ = {0};
	GValue _tmp6_ = {0};
	GValue* _tmp7_ = NULL;
	g_return_if_fail (IS_BUNDLE (self));
	g_return_if_fail (key != NULL);
	g_value_init (&_tmp0_, G_TYPE_INT64);
	v = _tmp0_;
	_tmp1_ = value;
	g_value_set_int64 (&v, _tmp1_);
	_tmp2_ = self->priv->values;
	_tmp3_ = key;
	_tmp4_ = g_strdup (_tmp3_);
	_tmp5_ = v;
	_tmp6_ = _tmp5_;
	_tmp7_ = __g_value_dup0 (&_tmp6_);
	g_hash_table_insert (_tmp2_, _tmp4_, _tmp7_);
	G_IS_VALUE (&v) ? (g_value_unset (&v), NULL) : NULL;
}


gint64 bundle_get_int64 (Bundle* self, const gchar* key) {
	gint64 result = 0LL;
	GValue* v = NULL;
	GHashTable* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gconstpointer _tmp2_ = NULL;
	GValue* _tmp3_ = NULL;
	GValue* _tmp4_ = NULL;
	g_return_val_if_fail (IS_BUNDLE (self), 0LL);
	g_return_val_if_fail (key != NULL, 0LL);
	_tmp0_ = self->priv->values;
	_tmp1_ = key;
	_tmp2_ = g_hash_table_lookup (_tmp0_, _tmp1_);
	_tmp3_ = __g_value_dup0 ((GValue*) _tmp2_);
	v = _tmp3_;
	_tmp4_ = v;
	if (_tmp4_ != NULL) {
		GValue* _tmp5_ = NULL;
		gint64 _tmp6_ = 0LL;
		_tmp5_ = v;
		_tmp6_ = g_value_get_int64 (_tmp5_);
		result = _tmp6_;
		__vala_GValue_free0 (v);
		return result;
	}
	result = (gint64) (-1);
	__vala_GValue_free0 (v);
	return result;
}


void bundle_put_int (Bundle* self, const gchar* key, gint value) {
	GValue v = {0};
	GValue _tmp0_ = {0};
	gint _tmp1_ = 0;
	GHashTable* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	GValue _tmp5_ = {0};
	GValue _tmp6_ = {0};
	GValue* _tmp7_ = NULL;
	g_return_if_fail (IS_BUNDLE (self));
	g_return_if_fail (key != NULL);
	g_value_init (&_tmp0_, G_TYPE_INT);
	v = _tmp0_;
	_tmp1_ = value;
	g_value_set_int (&v, _tmp1_);
	_tmp2_ = self->priv->values;
	_tmp3_ = key;
	_tmp4_ = g_strdup (_tmp3_);
	_tmp5_ = v;
	_tmp6_ = _tmp5_;
	_tmp7_ = __g_value_dup0 (&_tmp6_);
	g_hash_table_insert (_tmp2_, _tmp4_, _tmp7_);
	G_IS_VALUE (&v) ? (g_value_unset (&v), NULL) : NULL;
}


gint bundle_get_int (Bundle* self, const gchar* key) {
	gint result = 0;
	GHashTable* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gconstpointer _tmp2_ = NULL;
	GValue _tmp3_ = {0};
	gint _tmp4_ = 0;
	g_return_val_if_fail (IS_BUNDLE (self), 0);
	g_return_val_if_fail (key != NULL, 0);
	_tmp0_ = self->priv->values;
	_tmp1_ = key;
	_tmp2_ = g_hash_table_lookup (_tmp0_, _tmp1_);
	_tmp3_ = *((GValue*) _tmp2_);
	_tmp4_ = g_value_get_int (&_tmp3_);
	result = _tmp4_;
	return result;
}


void bundle_put_object (Bundle* self, const gchar* key, GObject* object) {
	GValue v = {0};
	GValue _tmp0_ = {0};
	GObject* _tmp1_ = NULL;
	GHashTable* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	GValue _tmp5_ = {0};
	GValue _tmp6_ = {0};
	GValue* _tmp7_ = NULL;
	g_return_if_fail (IS_BUNDLE (self));
	g_return_if_fail (key != NULL);
	g_return_if_fail (G_IS_OBJECT (object));
	g_value_init (&_tmp0_, G_TYPE_OBJECT);
	v = _tmp0_;
	_tmp1_ = object;
	g_value_set_object (&v, _tmp1_);
	_tmp2_ = self->priv->values;
	_tmp3_ = key;
	_tmp4_ = g_strdup (_tmp3_);
	_tmp5_ = v;
	_tmp6_ = _tmp5_;
	_tmp7_ = __g_value_dup0 (&_tmp6_);
	g_hash_table_insert (_tmp2_, _tmp4_, _tmp7_);
	G_IS_VALUE (&v) ? (g_value_unset (&v), NULL) : NULL;
}


static gpointer _g_object_ref0 (gpointer self) {
	return self ? g_object_ref (self) : NULL;
}


GObject* bundle_get_object (Bundle* self, const gchar* key) {
	GObject* result = NULL;
	GHashTable* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gconstpointer _tmp2_ = NULL;
	GValue _tmp3_ = {0};
	GObject* _tmp4_ = NULL;
	GObject* _tmp5_ = NULL;
	g_return_val_if_fail (IS_BUNDLE (self), NULL);
	g_return_val_if_fail (key != NULL, NULL);
	_tmp0_ = self->priv->values;
	_tmp1_ = key;
	_tmp2_ = g_hash_table_lookup (_tmp0_, _tmp1_);
	_tmp3_ = *((GValue*) _tmp2_);
	_tmp4_ = g_value_get_object (&_tmp3_);
	_tmp5_ = _g_object_ref0 (_tmp4_);
	result = _tmp5_;
	return result;
}


void bundle_put_bool (Bundle* self, const gchar* key, gboolean value) {
	GValue v = {0};
	GValue _tmp0_ = {0};
	gboolean _tmp1_ = FALSE;
	GHashTable* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	GValue _tmp5_ = {0};
	GValue _tmp6_ = {0};
	GValue* _tmp7_ = NULL;
	g_return_if_fail (IS_BUNDLE (self));
	g_return_if_fail (key != NULL);
	g_value_init (&_tmp0_, G_TYPE_BOOLEAN);
	v = _tmp0_;
	_tmp1_ = value;
	g_value_set_boolean (&v, _tmp1_);
	_tmp2_ = self->priv->values;
	_tmp3_ = key;
	_tmp4_ = g_strdup (_tmp3_);
	_tmp5_ = v;
	_tmp6_ = _tmp5_;
	_tmp7_ = __g_value_dup0 (&_tmp6_);
	g_hash_table_insert (_tmp2_, _tmp4_, _tmp7_);
	G_IS_VALUE (&v) ? (g_value_unset (&v), NULL) : NULL;
}


gboolean bundle_get_bool (Bundle* self, const gchar* key) {
	gboolean result = FALSE;
	GHashTable* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gconstpointer _tmp2_ = NULL;
	GValue _tmp3_ = {0};
	gboolean _tmp4_ = FALSE;
	g_return_val_if_fail (IS_BUNDLE (self), FALSE);
	g_return_val_if_fail (key != NULL, FALSE);
	_tmp0_ = self->priv->values;
	_tmp1_ = key;
	_tmp2_ = g_hash_table_lookup (_tmp0_, _tmp1_);
	_tmp3_ = *((GValue*) _tmp2_);
	_tmp4_ = g_value_get_boolean (&_tmp3_);
	result = _tmp4_;
	return result;
}


GValue* bundle_get_value (Bundle* self, const gchar* key) {
	GValue* result = NULL;
	GHashTable* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gconstpointer _tmp2_ = NULL;
	GValue* _tmp3_ = NULL;
	g_return_val_if_fail (IS_BUNDLE (self), NULL);
	g_return_val_if_fail (key != NULL, NULL);
	_tmp0_ = self->priv->values;
	_tmp1_ = key;
	_tmp2_ = g_hash_table_lookup (_tmp0_, _tmp1_);
	_tmp3_ = __g_value_dup0 ((GValue*) _tmp2_);
	result = _tmp3_;
	return result;
}


static const gchar* string_to_string (const gchar* self) {
	const gchar* result = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	result = self;
	return result;
}


gchar* bundle_to_string (Bundle* self) {
	gchar* result = NULL;
	GString* sb = NULL;
	GString* _tmp0_ = NULL;
	GHashTable* _tmp1_ = NULL;
	GList* _tmp2_ = NULL;
	GString* _tmp14_ = NULL;
	const gchar* _tmp15_ = NULL;
	gchar* _tmp16_ = NULL;
	g_return_val_if_fail (IS_BUNDLE (self), NULL);
	_tmp0_ = g_string_new ("");
	sb = _tmp0_;
	_tmp1_ = self->priv->values;
	_tmp2_ = g_hash_table_get_keys (_tmp1_);
	{
		GList* key_collection = NULL;
		GList* key_it = NULL;
		key_collection = _tmp2_;
		for (key_it = key_collection; key_it != NULL; key_it = key_it->next) {
			const gchar* key = NULL;
			key = (const gchar*) key_it->data;
			{
				GString* _tmp3_ = NULL;
				const gchar* _tmp4_ = NULL;
				const gchar* _tmp5_ = NULL;
				GHashTable* _tmp6_ = NULL;
				const gchar* _tmp7_ = NULL;
				gconstpointer _tmp8_ = NULL;
				GValue _tmp9_ = {0};
				gchar* _tmp10_ = NULL;
				gchar* _tmp11_ = NULL;
				gchar* _tmp12_ = NULL;
				gchar* _tmp13_ = NULL;
				_tmp3_ = sb;
				_tmp4_ = key;
				_tmp5_ = string_to_string (_tmp4_);
				_tmp6_ = self->priv->values;
				_tmp7_ = key;
				_tmp8_ = g_hash_table_lookup (_tmp6_, _tmp7_);
				_tmp9_ = *((GValue*) _tmp8_);
				_tmp10_ = g_strdup_value_contents (&_tmp9_);
				_tmp11_ = _tmp10_;
				_tmp12_ = g_strdup_printf ("%s -- %s", _tmp5_, _tmp11_);
				_tmp13_ = _tmp12_;
				g_string_append (_tmp3_, _tmp13_);
				_g_free0 (_tmp13_);
				_g_free0 (_tmp11_);
			}
		}
		_g_list_free0 (key_collection);
	}
	_tmp14_ = sb;
	_tmp15_ = _tmp14_->str;
	_tmp16_ = g_strdup (_tmp15_);
	result = _tmp16_;
	_g_string_free0 (sb);
	return result;
}


gboolean bundle_equals (Bundle* self, Bundle* other) {
	gboolean result = FALSE;
	Bundle* _tmp0_ = NULL;
	GHashTable* _tmp1_ = NULL;
	GList* _tmp2_ = NULL;
	Bundle* _tmp17_ = NULL;
	guint _tmp18_ = 0U;
	guint _tmp19_ = 0U;
	guint _tmp20_ = 0U;
	guint _tmp21_ = 0U;
	g_return_val_if_fail (IS_BUNDLE (self), FALSE);
	g_return_val_if_fail ((other == NULL) || IS_BUNDLE (other), FALSE);
	_tmp0_ = other;
	if (_tmp0_ == NULL) {
		result = FALSE;
		return result;
	}
	_tmp1_ = self->priv->values;
	_tmp2_ = g_hash_table_get_keys (_tmp1_);
	{
		GList* key_collection = NULL;
		GList* key_it = NULL;
		key_collection = _tmp2_;
		for (key_it = key_collection; key_it != NULL; key_it = key_it->next) {
			gchar* _tmp3_ = NULL;
			gchar* key = NULL;
			_tmp3_ = g_strdup ((const gchar*) key_it->data);
			key = _tmp3_;
			{
				GHashTable* _tmp4_ = NULL;
				const gchar* _tmp5_ = NULL;
				gconstpointer _tmp6_ = NULL;
				GValue _tmp7_ = {0};
				gchar* _tmp8_ = NULL;
				gchar* _tmp9_ = NULL;
				Bundle* _tmp10_ = NULL;
				const gchar* _tmp11_ = NULL;
				GValue* _tmp12_ = NULL;
				GValue* _tmp13_ = NULL;
				gchar* _tmp14_ = NULL;
				gchar* _tmp15_ = NULL;
				gboolean _tmp16_ = FALSE;
				_tmp4_ = self->priv->values;
				_tmp5_ = key;
				_tmp6_ = g_hash_table_lookup (_tmp4_, _tmp5_);
				_tmp7_ = *((GValue*) _tmp6_);
				_tmp8_ = g_strdup_value_contents (&_tmp7_);
				_tmp9_ = _tmp8_;
				_tmp10_ = other;
				_tmp11_ = key;
				_tmp12_ = bundle_get_value (_tmp10_, _tmp11_);
				_tmp13_ = _tmp12_;
				_tmp14_ = g_strdup_value_contents (_tmp13_);
				_tmp15_ = _tmp14_;
				_tmp16_ = g_strcmp0 (_tmp9_, _tmp15_) != 0;
				_g_free0 (_tmp15_);
				__vala_GValue_free0 (_tmp13_);
				_g_free0 (_tmp9_);
				if (_tmp16_) {
					result = FALSE;
					_g_free0 (key);
					_g_list_free0 (key_collection);
					return result;
				}
				_g_free0 (key);
			}
		}
		_g_list_free0 (key_collection);
	}
	_tmp17_ = other;
	_tmp18_ = bundle_get_size (_tmp17_);
	_tmp19_ = _tmp18_;
	_tmp20_ = bundle_get_size (self);
	_tmp21_ = _tmp20_;
	result = _tmp19_ == _tmp21_;
	return result;
}


guint bundle_get_size (Bundle* self) {
	guint result;
	GHashTable* _tmp0_ = NULL;
	GList* _tmp1_ = NULL;
	GList* _tmp2_ = NULL;
	guint _tmp3_ = 0U;
	guint _tmp4_ = 0U;
	g_return_val_if_fail (IS_BUNDLE (self), 0U);
	_tmp0_ = self->priv->values;
	_tmp1_ = g_hash_table_get_keys (_tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = g_list_length (_tmp2_);
	_tmp4_ = _tmp3_;
	_g_list_free0 (_tmp2_);
	result = _tmp4_;
	return result;
}


static void bundle_class_init (BundleClass * klass) {
	bundle_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (BundlePrivate));
	G_OBJECT_CLASS (klass)->get_property = _vala_bundle_get_property;
	G_OBJECT_CLASS (klass)->finalize = bundle_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), BUNDLE_SIZE, g_param_spec_uint ("size", "size", "size", 0, G_MAXUINT, 0U, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
}


static void bundle_instance_init (Bundle * self) {
	self->priv = BUNDLE_GET_PRIVATE (self);
}


static void bundle_finalize (GObject* obj) {
	Bundle * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BUNDLE, Bundle);
	_g_hash_table_unref0 (self->priv->values);
	G_OBJECT_CLASS (bundle_parent_class)->finalize (obj);
}


GType bundle_get_type (void) {
	static volatile gsize bundle_type_id__volatile = 0;
	if (g_once_init_enter (&bundle_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BundleClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) bundle_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Bundle), 0, (GInstanceInitFunc) bundle_instance_init, NULL };
		GType bundle_type_id;
		bundle_type_id = g_type_register_static (G_TYPE_OBJECT, "Bundle", &g_define_type_info, 0);
		g_once_init_leave (&bundle_type_id__volatile, bundle_type_id);
	}
	return bundle_type_id__volatile;
}


static void _vala_bundle_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	Bundle * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_BUNDLE, Bundle);
	switch (property_id) {
		case BUNDLE_SIZE:
		g_value_set_uint (value, bundle_get_size (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}



