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

/*
 * This file is part of gitg
 *
 * Copyright (C) 2013 - Jesse van den Kieboom
 *
 * gitg 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 2 of the License, or
 * (at your option) any later version.
 *
 * gitg 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 gitg. If not, see <http://www.gnu.org/licenses/>.
 */

#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <gobject/gvaluecollector.h>


#define LIB_GITG_TEST_TYPE_MAIN (lib_gitg_test_main_get_type ())
#define LIB_GITG_TEST_MAIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIB_GITG_TEST_TYPE_MAIN, LibGitgTestMain))
#define LIB_GITG_TEST_MAIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIB_GITG_TEST_TYPE_MAIN, LibGitgTestMainClass))
#define LIB_GITG_TEST_IS_MAIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIB_GITG_TEST_TYPE_MAIN))
#define LIB_GITG_TEST_IS_MAIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIB_GITG_TEST_TYPE_MAIN))
#define LIB_GITG_TEST_MAIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIB_GITG_TEST_TYPE_MAIN, LibGitgTestMainClass))

typedef struct _LibGitgTestMain LibGitgTestMain;
typedef struct _LibGitgTestMainClass LibGitgTestMainClass;
typedef struct _LibGitgTestMainPrivate LibGitgTestMainPrivate;

#define GITG_TEST_TYPE_MAIN (gitg_test_main_get_type ())
#define GITG_TEST_MAIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TEST_TYPE_MAIN, GitgTestMain))
#define GITG_TEST_MAIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TEST_TYPE_MAIN, GitgTestMainClass))
#define GITG_TEST_IS_MAIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TEST_TYPE_MAIN))
#define GITG_TEST_IS_MAIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TEST_TYPE_MAIN))
#define GITG_TEST_MAIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TEST_TYPE_MAIN, GitgTestMainClass))

typedef struct _GitgTestMain GitgTestMain;
typedef struct _GitgTestMainClass GitgTestMainClass;

#define GITG_TEST_TYPE_TEST (gitg_test_test_get_type ())
#define GITG_TEST_TEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TEST_TYPE_TEST, GitgTestTest))
#define GITG_TEST_TEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TEST_TYPE_TEST, GitgTestTestClass))
#define GITG_TEST_IS_TEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TEST_TYPE_TEST))
#define GITG_TEST_IS_TEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TEST_TYPE_TEST))
#define GITG_TEST_TEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TEST_TYPE_TEST, GitgTestTestClass))

typedef struct _GitgTestTest GitgTestTest;
typedef struct _GitgTestTestClass GitgTestTestClass;

#define GITG_TEST_TYPE_REPOSITORY (gitg_test_repository_get_type ())
#define GITG_TEST_REPOSITORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TEST_TYPE_REPOSITORY, GitgTestRepository))
#define GITG_TEST_REPOSITORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TEST_TYPE_REPOSITORY, GitgTestRepositoryClass))
#define GITG_TEST_IS_REPOSITORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TEST_TYPE_REPOSITORY))
#define GITG_TEST_IS_REPOSITORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TEST_TYPE_REPOSITORY))
#define GITG_TEST_REPOSITORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TEST_TYPE_REPOSITORY, GitgTestRepositoryClass))

typedef struct _GitgTestRepository GitgTestRepository;
typedef struct _GitgTestRepositoryClass GitgTestRepositoryClass;

#define LIB_GITG_TEST_TYPE_STAGE (lib_gitg_test_stage_get_type ())
#define LIB_GITG_TEST_STAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIB_GITG_TEST_TYPE_STAGE, LibGitgTestStage))
#define LIB_GITG_TEST_STAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIB_GITG_TEST_TYPE_STAGE, LibGitgTestStageClass))
#define LIB_GITG_TEST_IS_STAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIB_GITG_TEST_TYPE_STAGE))
#define LIB_GITG_TEST_IS_STAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIB_GITG_TEST_TYPE_STAGE))
#define LIB_GITG_TEST_STAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIB_GITG_TEST_TYPE_STAGE, LibGitgTestStageClass))

typedef struct _LibGitgTestStage LibGitgTestStage;
typedef struct _LibGitgTestStageClass LibGitgTestStageClass;

#define LIB_GITG_TEST_TYPE_DATE (lib_gitg_test_date_get_type ())
#define LIB_GITG_TEST_DATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIB_GITG_TEST_TYPE_DATE, LibGitgTestDate))
#define LIB_GITG_TEST_DATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIB_GITG_TEST_TYPE_DATE, LibGitgTestDateClass))
#define LIB_GITG_TEST_IS_DATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIB_GITG_TEST_TYPE_DATE))
#define LIB_GITG_TEST_IS_DATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIB_GITG_TEST_TYPE_DATE))
#define LIB_GITG_TEST_DATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIB_GITG_TEST_TYPE_DATE, LibGitgTestDateClass))

typedef struct _LibGitgTestDate LibGitgTestDate;
typedef struct _LibGitgTestDateClass LibGitgTestDateClass;

#define LIB_GITG_TEST_TYPE_COMMIT (lib_gitg_test_commit_get_type ())
#define LIB_GITG_TEST_COMMIT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIB_GITG_TEST_TYPE_COMMIT, LibGitgTestCommit))
#define LIB_GITG_TEST_COMMIT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIB_GITG_TEST_TYPE_COMMIT, LibGitgTestCommitClass))
#define LIB_GITG_TEST_IS_COMMIT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIB_GITG_TEST_TYPE_COMMIT))
#define LIB_GITG_TEST_IS_COMMIT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIB_GITG_TEST_TYPE_COMMIT))
#define LIB_GITG_TEST_COMMIT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIB_GITG_TEST_TYPE_COMMIT, LibGitgTestCommitClass))

typedef struct _LibGitgTestCommit LibGitgTestCommit;
typedef struct _LibGitgTestCommitClass LibGitgTestCommitClass;

#define LIB_GITG_TEST_TYPE_ENCODING (lib_gitg_test_encoding_get_type ())
#define LIB_GITG_TEST_ENCODING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIB_GITG_TEST_TYPE_ENCODING, LibGitgTestEncoding))
#define LIB_GITG_TEST_ENCODING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIB_GITG_TEST_TYPE_ENCODING, LibGitgTestEncodingClass))
#define LIB_GITG_TEST_IS_ENCODING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIB_GITG_TEST_TYPE_ENCODING))
#define LIB_GITG_TEST_IS_ENCODING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIB_GITG_TEST_TYPE_ENCODING))
#define LIB_GITG_TEST_ENCODING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIB_GITG_TEST_TYPE_ENCODING, LibGitgTestEncodingClass))

typedef struct _LibGitgTestEncoding LibGitgTestEncoding;
typedef struct _LibGitgTestEncodingClass LibGitgTestEncodingClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _gitg_test_main_unref0(var) ((var == NULL) ? NULL : (var = (gitg_test_main_unref (var), NULL)))
typedef struct _LibGitgTestParamSpecMain LibGitgTestParamSpecMain;

struct _LibGitgTestMain {
	GTypeInstance parent_instance;
	volatile int ref_count;
	LibGitgTestMainPrivate * priv;
};

struct _LibGitgTestMainClass {
	GTypeClass parent_class;
	void (*finalize) (LibGitgTestMain *self);
};

struct _LibGitgTestParamSpecMain {
	GParamSpec parent_instance;
};


static gpointer lib_gitg_test_main_parent_class = NULL;

gpointer lib_gitg_test_main_ref (gpointer instance);
void lib_gitg_test_main_unref (gpointer instance);
GParamSpec* lib_gitg_test_param_spec_main (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void lib_gitg_test_value_set_main (GValue* value, gpointer v_object);
void lib_gitg_test_value_take_main (GValue* value, gpointer v_object);
gpointer lib_gitg_test_value_get_main (const GValue* value);
GType lib_gitg_test_main_get_type (void) G_GNUC_CONST;
enum  {
	LIB_GITG_TEST_MAIN_DUMMY_PROPERTY
};
void lib_gitg_test_main_main (gchar** args, int args_length1);
gpointer gitg_test_main_ref (gpointer instance);
void gitg_test_main_unref (gpointer instance);
GParamSpec* gitg_test_param_spec_main (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void gitg_test_value_set_main (GValue* value, gpointer v_object);
void gitg_test_value_take_main (GValue* value, gpointer v_object);
gpointer gitg_test_value_get_main (const GValue* value);
GType gitg_test_main_get_type (void) G_GNUC_CONST;
GitgTestMain* gitg_test_main_new (gchar** args, int args_length1);
GitgTestMain* gitg_test_main_construct (GType object_type, gchar** args, int args_length1);
void gitg_test_main_add (GitgTestMain* self, ...);
LibGitgTestStage* lib_gitg_test_stage_new (void);
LibGitgTestStage* lib_gitg_test_stage_construct (GType object_type);
GType gitg_test_test_get_type (void) G_GNUC_CONST;
GType gitg_test_repository_get_type (void) G_GNUC_CONST;
GType lib_gitg_test_stage_get_type (void) G_GNUC_CONST;
LibGitgTestDate* lib_gitg_test_date_new (void);
LibGitgTestDate* lib_gitg_test_date_construct (GType object_type);
GType lib_gitg_test_date_get_type (void) G_GNUC_CONST;
LibGitgTestCommit* lib_gitg_test_commit_new (void);
LibGitgTestCommit* lib_gitg_test_commit_construct (GType object_type);
GType lib_gitg_test_commit_get_type (void) G_GNUC_CONST;
LibGitgTestEncoding* lib_gitg_test_encoding_new (void);
LibGitgTestEncoding* lib_gitg_test_encoding_construct (GType object_type);
GType lib_gitg_test_encoding_get_type (void) G_GNUC_CONST;
void gitg_test_main_run (GitgTestMain* self);
LibGitgTestMain* lib_gitg_test_main_new (void);
LibGitgTestMain* lib_gitg_test_main_construct (GType object_type);
static void lib_gitg_test_main_finalize (LibGitgTestMain* obj);


void lib_gitg_test_main_main (gchar** args, int args_length1) {
	GitgTestMain* m = NULL;
	gchar** _tmp0_ = NULL;
	gint _tmp0__length1 = 0;
	GitgTestMain* _tmp1_ = NULL;
	LibGitgTestStage* _tmp2_ = NULL;
	LibGitgTestStage* _tmp3_ = NULL;
	LibGitgTestDate* _tmp4_ = NULL;
	LibGitgTestDate* _tmp5_ = NULL;
	LibGitgTestCommit* _tmp6_ = NULL;
	LibGitgTestCommit* _tmp7_ = NULL;
	LibGitgTestEncoding* _tmp8_ = NULL;
	LibGitgTestEncoding* _tmp9_ = NULL;
#line 24 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	_tmp0_ = args;
#line 24 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	_tmp0__length1 = args_length1;
#line 24 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	_tmp1_ = gitg_test_main_new (_tmp0_, _tmp0__length1);
#line 24 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	m = _tmp1_;
#line 26 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	_tmp2_ = lib_gitg_test_stage_new ();
#line 26 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	_tmp3_ = _tmp2_;
#line 26 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	_tmp4_ = lib_gitg_test_date_new ();
#line 26 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	_tmp5_ = _tmp4_;
#line 26 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	_tmp6_ = lib_gitg_test_commit_new ();
#line 26 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	_tmp7_ = _tmp6_;
#line 26 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	_tmp8_ = lib_gitg_test_encoding_new ();
#line 26 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	_tmp9_ = _tmp8_;
#line 26 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	gitg_test_main_add (m, _tmp3_, _tmp5_, _tmp7_, _tmp9_, NULL);
#line 26 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	_g_object_unref0 (_tmp9_);
#line 26 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	_g_object_unref0 (_tmp7_);
#line 26 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	_g_object_unref0 (_tmp5_);
#line 26 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	_g_object_unref0 (_tmp3_);
#line 31 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	gitg_test_main_run (m);
#line 22 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	_gitg_test_main_unref0 (m);
#line 225 "main.c"
}


int main (int argc, char ** argv) {
#if !GLIB_CHECK_VERSION (2,35,0)
	g_type_init ();
#endif
#line 22 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	lib_gitg_test_main_main (argv, argc);
#line 22 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	return 0;
#line 237 "main.c"
}


LibGitgTestMain* lib_gitg_test_main_construct (GType object_type) {
	LibGitgTestMain* self = NULL;
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	self = (LibGitgTestMain*) g_type_create_instance (object_type);
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	return self;
#line 247 "main.c"
}


LibGitgTestMain* lib_gitg_test_main_new (void) {
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	return lib_gitg_test_main_construct (LIB_GITG_TEST_TYPE_MAIN);
#line 254 "main.c"
}


static void lib_gitg_test_value_main_init (GValue* value) {
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	value->data[0].v_pointer = NULL;
#line 261 "main.c"
}


static void lib_gitg_test_value_main_free_value (GValue* value) {
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	if (value->data[0].v_pointer) {
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
		lib_gitg_test_main_unref (value->data[0].v_pointer);
#line 270 "main.c"
	}
}


static void lib_gitg_test_value_main_copy_value (const GValue* src_value, GValue* dest_value) {
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	if (src_value->data[0].v_pointer) {
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
		dest_value->data[0].v_pointer = lib_gitg_test_main_ref (src_value->data[0].v_pointer);
#line 280 "main.c"
	} else {
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
		dest_value->data[0].v_pointer = NULL;
#line 284 "main.c"
	}
}


static gpointer lib_gitg_test_value_main_peek_pointer (const GValue* value) {
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	return value->data[0].v_pointer;
#line 292 "main.c"
}


static gchar* lib_gitg_test_value_main_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	if (collect_values[0].v_pointer) {
#line 299 "main.c"
		LibGitgTestMain* object;
		object = collect_values[0].v_pointer;
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
		if (object->parent_instance.g_class == NULL) {
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 306 "main.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
			return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 310 "main.c"
		}
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
		value->data[0].v_pointer = lib_gitg_test_main_ref (object);
#line 314 "main.c"
	} else {
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
		value->data[0].v_pointer = NULL;
#line 318 "main.c"
	}
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	return NULL;
#line 322 "main.c"
}


static gchar* lib_gitg_test_value_main_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	LibGitgTestMain** object_p;
	object_p = collect_values[0].v_pointer;
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	if (!object_p) {
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 333 "main.c"
	}
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	if (!value->data[0].v_pointer) {
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
		*object_p = NULL;
#line 339 "main.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
		*object_p = value->data[0].v_pointer;
#line 343 "main.c"
	} else {
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
		*object_p = lib_gitg_test_main_ref (value->data[0].v_pointer);
#line 347 "main.c"
	}
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	return NULL;
#line 351 "main.c"
}


GParamSpec* lib_gitg_test_param_spec_main (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	LibGitgTestParamSpecMain* spec;
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	g_return_val_if_fail (g_type_is_a (object_type, LIB_GITG_TEST_TYPE_MAIN), NULL);
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	return G_PARAM_SPEC (spec);
#line 365 "main.c"
}


gpointer lib_gitg_test_value_get_main (const GValue* value) {
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, LIB_GITG_TEST_TYPE_MAIN), NULL);
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	return value->data[0].v_pointer;
#line 374 "main.c"
}


void lib_gitg_test_value_set_main (GValue* value, gpointer v_object) {
	LibGitgTestMain* old;
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, LIB_GITG_TEST_TYPE_MAIN));
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	old = value->data[0].v_pointer;
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	if (v_object) {
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, LIB_GITG_TEST_TYPE_MAIN));
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
		value->data[0].v_pointer = v_object;
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
		lib_gitg_test_main_ref (value->data[0].v_pointer);
#line 394 "main.c"
	} else {
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
		value->data[0].v_pointer = NULL;
#line 398 "main.c"
	}
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	if (old) {
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
		lib_gitg_test_main_unref (old);
#line 404 "main.c"
	}
}


void lib_gitg_test_value_take_main (GValue* value, gpointer v_object) {
	LibGitgTestMain* old;
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, LIB_GITG_TEST_TYPE_MAIN));
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	old = value->data[0].v_pointer;
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	if (v_object) {
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, LIB_GITG_TEST_TYPE_MAIN));
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
		value->data[0].v_pointer = v_object;
#line 423 "main.c"
	} else {
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
		value->data[0].v_pointer = NULL;
#line 427 "main.c"
	}
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	if (old) {
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
		lib_gitg_test_main_unref (old);
#line 433 "main.c"
	}
}


static void lib_gitg_test_main_class_init (LibGitgTestMainClass * klass) {
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	lib_gitg_test_main_parent_class = g_type_class_peek_parent (klass);
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	((LibGitgTestMainClass *) klass)->finalize = lib_gitg_test_main_finalize;
#line 443 "main.c"
}


static void lib_gitg_test_main_instance_init (LibGitgTestMain * self) {
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	self->ref_count = 1;
#line 450 "main.c"
}


static void lib_gitg_test_main_finalize (LibGitgTestMain* obj) {
	LibGitgTestMain * self;
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, LIB_GITG_TEST_TYPE_MAIN, LibGitgTestMain);
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	g_signal_handlers_destroy (self);
#line 460 "main.c"
}


GType lib_gitg_test_main_get_type (void) {
	static volatile gsize lib_gitg_test_main_type_id__volatile = 0;
	if (g_once_init_enter (&lib_gitg_test_main_type_id__volatile)) {
		static const GTypeValueTable g_define_type_value_table = { lib_gitg_test_value_main_init, lib_gitg_test_value_main_free_value, lib_gitg_test_value_main_copy_value, lib_gitg_test_value_main_peek_pointer, "p", lib_gitg_test_value_main_collect_value, "p", lib_gitg_test_value_main_lcopy_value };
		static const GTypeInfo g_define_type_info = { sizeof (LibGitgTestMainClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) lib_gitg_test_main_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibGitgTestMain), 0, (GInstanceInitFunc) lib_gitg_test_main_instance_init, &g_define_type_value_table };
		static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
		GType lib_gitg_test_main_type_id;
		lib_gitg_test_main_type_id = g_type_register_fundamental (g_type_fundamental_next (), "LibGitgTestMain", &g_define_type_info, &g_define_type_fundamental_info, 0);
		g_once_init_leave (&lib_gitg_test_main_type_id__volatile, lib_gitg_test_main_type_id);
	}
	return lib_gitg_test_main_type_id__volatile;
}


gpointer lib_gitg_test_main_ref (gpointer instance) {
	LibGitgTestMain* self;
	self = instance;
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	g_atomic_int_inc (&self->ref_count);
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	return instance;
#line 485 "main.c"
}


void lib_gitg_test_main_unref (gpointer instance) {
	LibGitgTestMain* self;
	self = instance;
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
		LIB_GITG_TEST_MAIN_GET_CLASS (self)->finalize (self);
#line 20 "/home/jesse/dev/gitg/tests/libgitg/main.vala"
		g_type_free_instance ((GTypeInstance *) self);
#line 498 "main.c"
	}
}



