/* gitg-dirs.c generated by valac 0.27.1.26-9b1a5-dirty, the Vala compiler
 * generated from gitg-dirs.vala, do not modify */

/*
 * This file is part of gitg
 *
 * Copyright (C) 2012 - 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 <stdarg.h>
#include <config.h>
#include <gobject/gvaluecollector.h>


#define GITG_TYPE_DIRS (gitg_dirs_get_type ())
#define GITG_DIRS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIRS, GitgDirs))
#define GITG_DIRS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_DIRS, GitgDirsClass))
#define GITG_IS_DIRS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIRS))
#define GITG_IS_DIRS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_DIRS))
#define GITG_DIRS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_DIRS, GitgDirsClass))

typedef struct _GitgDirs GitgDirs;
typedef struct _GitgDirsClass GitgDirsClass;
typedef struct _GitgDirsPrivate GitgDirsPrivate;
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _GitgParamSpecDirs GitgParamSpecDirs;

struct _GitgDirs {
	GTypeInstance parent_instance;
	volatile int ref_count;
	GitgDirsPrivate * priv;
};

struct _GitgDirsClass {
	GTypeClass parent_class;
	void (*finalize) (GitgDirs *self);
};

struct _GitgParamSpecDirs {
	GParamSpec parent_instance;
};


static gpointer gitg_dirs_parent_class = NULL;

gpointer gitg_dirs_ref (gpointer instance);
void gitg_dirs_unref (gpointer instance);
GParamSpec* gitg_param_spec_dirs (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void gitg_value_set_dirs (GValue* value, gpointer v_object);
void gitg_value_take_dirs (GValue* value, gpointer v_object);
gpointer gitg_value_get_dirs (const GValue* value);
GType gitg_dirs_get_type (void) G_GNUC_CONST;
enum  {
	GITG_DIRS_DUMMY_PROPERTY
};
gchar* gitg_dirs_build_data_file (const gchar* part, ...);
const gchar* gitg_dirs_get_data_dir (void);
GitgDirs* gitg_dirs_new (void);
GitgDirs* gitg_dirs_construct (GType object_type);
const gchar* gitg_dirs_get_locale_dir (void);
const gchar* gitg_dirs_get_lib_dir (void);
gchar* gitg_dirs_get_plugins_dir (void);
gchar* gitg_dirs_get_plugins_data_dir (void);
gchar* gitg_dirs_get_user_plugins_dir (void);
gchar* gitg_dirs_get_user_plugins_data_dir (void);
static void gitg_dirs_finalize (GitgDirs* obj);


gchar* gitg_dirs_build_data_file (const gchar* part, ...) {
	gchar* result = NULL;
	va_list l = {0};
	gchar* ret = NULL;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 60 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	g_return_val_if_fail (part != NULL, NULL);
#line 62 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	va_start (l, part);
#line 63 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	_tmp0_ = gitg_dirs_get_data_dir ();
#line 63 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	_tmp1_ = _tmp0_;
#line 63 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	_tmp2_ = part;
#line 63 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	_tmp3_ = g_build_filename (_tmp1_, _tmp2_, NULL, NULL);
#line 63 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	ret = _tmp3_;
#line 65 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	while (TRUE) {
#line 111 "gitg-dirs.c"
		gchar* s = NULL;
		const gchar* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
		const gchar* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		const gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
#line 67 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		_tmp4_ = va_arg (l, gchar*);
#line 67 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		_tmp5_ = g_strdup (_tmp4_);
#line 67 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		s = _tmp5_;
#line 69 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		_tmp6_ = s;
#line 69 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		if (_tmp6_ == NULL) {
#line 71 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
			_g_free0 (s);
#line 71 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
			break;
#line 133 "gitg-dirs.c"
		}
#line 74 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		_tmp7_ = ret;
#line 74 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		_tmp8_ = s;
#line 74 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		_tmp9_ = g_build_filename (_tmp7_, _tmp8_, NULL);
#line 74 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		_g_free0 (ret);
#line 74 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		ret = _tmp9_;
#line 65 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		_g_free0 (s);
#line 147 "gitg-dirs.c"
	}
#line 77 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	result = ret;
#line 77 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	va_end (l);
#line 77 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	return result;
#line 155 "gitg-dirs.c"
}


GitgDirs* gitg_dirs_construct (GType object_type) {
	GitgDirs* self = NULL;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	self = (GitgDirs*) g_type_create_instance (object_type);
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	return self;
#line 165 "gitg-dirs.c"
}


GitgDirs* gitg_dirs_new (void) {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	return gitg_dirs_construct (GITG_TYPE_DIRS);
#line 172 "gitg-dirs.c"
}


const gchar* gitg_dirs_get_data_dir (void) {
	const gchar* result;
#line 27 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	result = GITG_DATADIR;
#line 27 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	return result;
#line 182 "gitg-dirs.c"
}


const gchar* gitg_dirs_get_locale_dir (void) {
	const gchar* result;
#line 32 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	result = GITG_LOCALEDIR;
#line 32 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	return result;
#line 192 "gitg-dirs.c"
}


const gchar* gitg_dirs_get_lib_dir (void) {
	const gchar* result;
#line 37 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	result = GITG_LIBDIR;
#line 37 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	return result;
#line 202 "gitg-dirs.c"
}


gchar* gitg_dirs_get_plugins_dir (void) {
	gchar* result;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
#line 42 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	_tmp0_ = gitg_dirs_get_lib_dir ();
#line 42 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	_tmp1_ = _tmp0_;
#line 42 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	_tmp2_ = g_build_filename (_tmp1_, "plugins", NULL);
#line 42 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	result = _tmp2_;
#line 42 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	return result;
#line 221 "gitg-dirs.c"
}


gchar* gitg_dirs_get_plugins_data_dir (void) {
	gchar* result;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
#line 47 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	_tmp0_ = gitg_dirs_get_data_dir ();
#line 47 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	_tmp1_ = _tmp0_;
#line 47 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	_tmp2_ = g_build_filename (_tmp1_, "plugins", NULL);
#line 47 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	result = _tmp2_;
#line 47 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	return result;
#line 240 "gitg-dirs.c"
}


gchar* gitg_dirs_get_user_plugins_dir (void) {
	gchar* result;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	_tmp0_ = g_get_user_data_dir ();
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	_tmp1_ = g_build_filename (_tmp0_, "gitg", "plugins", NULL);
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	result = _tmp1_;
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	return result;
#line 256 "gitg-dirs.c"
}


gchar* gitg_dirs_get_user_plugins_data_dir (void) {
	gchar* result;
	gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 57 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	_tmp0_ = gitg_dirs_get_user_plugins_dir ();
#line 57 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	_tmp1_ = _tmp0_;
#line 57 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	result = _tmp1_;
#line 57 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	return result;
#line 272 "gitg-dirs.c"
}


static void gitg_value_dirs_init (GValue* value) {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	value->data[0].v_pointer = NULL;
#line 279 "gitg-dirs.c"
}


static void gitg_value_dirs_free_value (GValue* value) {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	if (value->data[0].v_pointer) {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		gitg_dirs_unref (value->data[0].v_pointer);
#line 288 "gitg-dirs.c"
	}
}


static void gitg_value_dirs_copy_value (const GValue* src_value, GValue* dest_value) {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	if (src_value->data[0].v_pointer) {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		dest_value->data[0].v_pointer = gitg_dirs_ref (src_value->data[0].v_pointer);
#line 298 "gitg-dirs.c"
	} else {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		dest_value->data[0].v_pointer = NULL;
#line 302 "gitg-dirs.c"
	}
}


static gpointer gitg_value_dirs_peek_pointer (const GValue* value) {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	return value->data[0].v_pointer;
#line 310 "gitg-dirs.c"
}


static gchar* gitg_value_dirs_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	if (collect_values[0].v_pointer) {
#line 317 "gitg-dirs.c"
		GitgDirs* object;
		object = collect_values[0].v_pointer;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		if (object->parent_instance.g_class == NULL) {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 324 "gitg-dirs.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.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 328 "gitg-dirs.c"
		}
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		value->data[0].v_pointer = gitg_dirs_ref (object);
#line 332 "gitg-dirs.c"
	} else {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		value->data[0].v_pointer = NULL;
#line 336 "gitg-dirs.c"
	}
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	return NULL;
#line 340 "gitg-dirs.c"
}


static gchar* gitg_value_dirs_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	GitgDirs** object_p;
	object_p = collect_values[0].v_pointer;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	if (!object_p) {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 351 "gitg-dirs.c"
	}
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	if (!value->data[0].v_pointer) {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		*object_p = NULL;
#line 357 "gitg-dirs.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		*object_p = value->data[0].v_pointer;
#line 361 "gitg-dirs.c"
	} else {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		*object_p = gitg_dirs_ref (value->data[0].v_pointer);
#line 365 "gitg-dirs.c"
	}
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	return NULL;
#line 369 "gitg-dirs.c"
}


GParamSpec* gitg_param_spec_dirs (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	GitgParamSpecDirs* spec;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	g_return_val_if_fail (g_type_is_a (object_type, GITG_TYPE_DIRS), NULL);
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	return G_PARAM_SPEC (spec);
#line 383 "gitg-dirs.c"
}


gpointer gitg_value_get_dirs (const GValue* value) {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GITG_TYPE_DIRS), NULL);
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	return value->data[0].v_pointer;
#line 392 "gitg-dirs.c"
}


void gitg_value_set_dirs (GValue* value, gpointer v_object) {
	GitgDirs* old;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GITG_TYPE_DIRS));
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	old = value->data[0].v_pointer;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	if (v_object) {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GITG_TYPE_DIRS));
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		value->data[0].v_pointer = v_object;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		gitg_dirs_ref (value->data[0].v_pointer);
#line 412 "gitg-dirs.c"
	} else {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		value->data[0].v_pointer = NULL;
#line 416 "gitg-dirs.c"
	}
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	if (old) {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		gitg_dirs_unref (old);
#line 422 "gitg-dirs.c"
	}
}


void gitg_value_take_dirs (GValue* value, gpointer v_object) {
	GitgDirs* old;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GITG_TYPE_DIRS));
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	old = value->data[0].v_pointer;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	if (v_object) {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GITG_TYPE_DIRS));
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		value->data[0].v_pointer = v_object;
#line 441 "gitg-dirs.c"
	} else {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		value->data[0].v_pointer = NULL;
#line 445 "gitg-dirs.c"
	}
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	if (old) {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		gitg_dirs_unref (old);
#line 451 "gitg-dirs.c"
	}
}


static void gitg_dirs_class_init (GitgDirsClass * klass) {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	gitg_dirs_parent_class = g_type_class_peek_parent (klass);
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	((GitgDirsClass *) klass)->finalize = gitg_dirs_finalize;
#line 461 "gitg-dirs.c"
}


static void gitg_dirs_instance_init (GitgDirs * self) {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	self->ref_count = 1;
#line 468 "gitg-dirs.c"
}


static void gitg_dirs_finalize (GitgDirs* obj) {
	GitgDirs * self;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_DIRS, GitgDirs);
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	g_signal_handlers_destroy (self);
#line 478 "gitg-dirs.c"
}


GType gitg_dirs_get_type (void) {
	static volatile gsize gitg_dirs_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_dirs_type_id__volatile)) {
		static const GTypeValueTable g_define_type_value_table = { gitg_value_dirs_init, gitg_value_dirs_free_value, gitg_value_dirs_copy_value, gitg_value_dirs_peek_pointer, "p", gitg_value_dirs_collect_value, "p", gitg_value_dirs_lcopy_value };
		static const GTypeInfo g_define_type_info = { sizeof (GitgDirsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_dirs_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgDirs), 0, (GInstanceInitFunc) gitg_dirs_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 gitg_dirs_type_id;
		gitg_dirs_type_id = g_type_register_fundamental (g_type_fundamental_next (), "GitgDirs", &g_define_type_info, &g_define_type_fundamental_info, 0);
		g_once_init_leave (&gitg_dirs_type_id__volatile, gitg_dirs_type_id);
	}
	return gitg_dirs_type_id__volatile;
}


gpointer gitg_dirs_ref (gpointer instance) {
	GitgDirs* self;
	self = instance;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	g_atomic_int_inc (&self->ref_count);
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	return instance;
#line 503 "gitg-dirs.c"
}


void gitg_dirs_unref (gpointer instance) {
	GitgDirs* self;
	self = instance;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		GITG_DIRS_GET_CLASS (self)->finalize (self);
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-dirs.vala"
		g_type_free_instance ((GTypeInstance *) self);
#line 516 "gitg-dirs.c"
	}
}



