/* gitg-plugins-engine.c generated by valac 0.32.1, the Vala compiler
 * generated from gitg-plugins-engine.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 <libpeas/peas.h>
#include <girepository.h>
#include <stdlib.h>
#include <string.h>


#define GITG_TYPE_PLUGINS_ENGINE (gitg_plugins_engine_get_type ())
#define GITG_PLUGINS_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_PLUGINS_ENGINE, GitgPluginsEngine))
#define GITG_PLUGINS_ENGINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_PLUGINS_ENGINE, GitgPluginsEngineClass))
#define GITG_IS_PLUGINS_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_PLUGINS_ENGINE))
#define GITG_IS_PLUGINS_ENGINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_PLUGINS_ENGINE))
#define GITG_PLUGINS_ENGINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_PLUGINS_ENGINE, GitgPluginsEngineClass))

typedef struct _GitgPluginsEngine GitgPluginsEngine;
typedef struct _GitgPluginsEngineClass GitgPluginsEngineClass;
typedef struct _GitgPluginsEnginePrivate GitgPluginsEnginePrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define __vala_PeasPluginInfo_free0(var) ((var == NULL) ? NULL : (var = (_vala_PeasPluginInfo_free (var), NULL)))

struct _GitgPluginsEngine {
	PeasEngine parent_instance;
	GitgPluginsEnginePrivate * priv;
};

struct _GitgPluginsEngineClass {
	PeasEngineClass parent_class;
};


static gpointer gitg_plugins_engine_parent_class = NULL;
static GitgPluginsEngine* gitg_plugins_engine_s_instance;
static GitgPluginsEngine* gitg_plugins_engine_s_instance = NULL;

GType gitg_plugins_engine_get_type (void) G_GNUC_CONST;
enum  {
	GITG_PLUGINS_ENGINE_DUMMY_PROPERTY
};
GitgPluginsEngine* gitg_plugins_engine_get_default (void);
GitgPluginsEngine* gitg_plugins_engine_new (void);
GitgPluginsEngine* gitg_plugins_engine_construct (GType object_type);
void gitg_plugins_engine_initialize (void);
static GObject * gitg_plugins_engine_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
gchar* gitg_dirs_get_user_plugins_dir (void);
gchar* gitg_dirs_get_user_plugins_data_dir (void);
gchar* gitg_dirs_get_plugins_dir (void);
gchar* gitg_dirs_get_plugins_data_dir (void);
static PeasPluginInfo* _vala_PeasPluginInfo_copy (PeasPluginInfo* self);
static void _vala_array_add12 (PeasPluginInfo*** array, int* length, int* size, PeasPluginInfo* value);
static void _vala_PeasPluginInfo_free (PeasPluginInfo* self);
static void gitg_plugins_engine_finalize (GObject* obj);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);


static gpointer _g_object_ref0 (gpointer self) {
#line 75 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	return self ? g_object_ref (self) : NULL;
#line 85 "gitg-plugins-engine.c"
}


GitgPluginsEngine* gitg_plugins_engine_get_default (void) {
	GitgPluginsEngine* result = NULL;
	GitgPluginsEngine* _tmp0_ = NULL;
	GitgPluginsEngine* _tmp3_ = NULL;
	GitgPluginsEngine* _tmp4_ = NULL;
#line 69 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_tmp0_ = gitg_plugins_engine_s_instance;
#line 69 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	if (_tmp0_ == NULL) {
#line 98 "gitg-plugins-engine.c"
		GitgPluginsEngine* _tmp1_ = NULL;
		GitgPluginsEngine* _tmp2_ = NULL;
#line 71 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
		_tmp1_ = gitg_plugins_engine_new ();
#line 71 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
		_g_object_unref0 (gitg_plugins_engine_s_instance);
#line 71 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
		gitg_plugins_engine_s_instance = _tmp1_;
#line 72 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
		_tmp2_ = gitg_plugins_engine_s_instance;
#line 72 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
		g_object_add_weak_pointer ((GObject*) _tmp2_, &gitg_plugins_engine_s_instance);
#line 111 "gitg-plugins-engine.c"
	}
#line 75 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_tmp3_ = gitg_plugins_engine_s_instance;
#line 75 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 75 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	result = _tmp4_;
#line 75 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	return result;
#line 121 "gitg-plugins-engine.c"
}


void gitg_plugins_engine_initialize (void) {
	GitgPluginsEngine* _tmp0_ = NULL;
	GitgPluginsEngine* _tmp1_ = NULL;
#line 80 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_tmp0_ = gitg_plugins_engine_get_default ();
#line 80 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_tmp1_ = _tmp0_;
#line 80 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_g_object_unref0 (_tmp1_);
#line 134 "gitg-plugins-engine.c"
}


GitgPluginsEngine* gitg_plugins_engine_construct (GType object_type) {
	GitgPluginsEngine * self = NULL;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	self = (GitgPluginsEngine*) g_object_new (object_type, NULL);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	return self;
#line 144 "gitg-plugins-engine.c"
}


GitgPluginsEngine* gitg_plugins_engine_new (void) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	return gitg_plugins_engine_construct (GITG_TYPE_PLUGINS_ENGINE);
#line 151 "gitg-plugins-engine.c"
}


static PeasPluginInfo* _vala_PeasPluginInfo_copy (PeasPluginInfo* self) {
#line 53 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	return g_boxed_copy (peas_plugin_info_get_type (), self);
#line 158 "gitg-plugins-engine.c"
}


static gpointer __vala_PeasPluginInfo_copy0 (gpointer self) {
#line 53 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	return self ? _vala_PeasPluginInfo_copy (self) : NULL;
#line 165 "gitg-plugins-engine.c"
}


static void _vala_array_add12 (PeasPluginInfo*** array, int* length, int* size, PeasPluginInfo* value) {
#line 57 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	if ((*length) == (*size)) {
#line 57 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 57 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
		*array = g_renew (PeasPluginInfo*, *array, (*size) + 1);
#line 176 "gitg-plugins-engine.c"
	}
#line 57 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	(*array)[(*length)++] = value;
#line 57 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	(*array)[*length] = NULL;
#line 182 "gitg-plugins-engine.c"
}


static void _vala_PeasPluginInfo_free (PeasPluginInfo* self) {
#line 53 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	g_boxed_free (peas_plugin_info_get_type (), self);
#line 189 "gitg-plugins-engine.c"
}


static GObject * gitg_plugins_engine_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	GitgPluginsEngine * self;
	GIRepository* repo = NULL;
	GIRepository* _tmp0_ = NULL;
	gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
	gchar* _tmp11_ = NULL;
	gchar* _tmp12_ = NULL;
	gchar* _tmp13_ = NULL;
	gchar* _tmp14_ = NULL;
	gchar* _tmp15_ = NULL;
	gchar* _tmp16_ = NULL;
	PeasPluginInfo** builtins = NULL;
	PeasPluginInfo** _tmp17_ = NULL;
	gint builtins_length1 = 0;
	gint _builtins_size_ = 0;
	gint _tmp18_ = 0;
	GList* _tmp19_ = NULL;
	PeasPluginInfo** _tmp26_ = NULL;
	gint _tmp26__length1 = 0;
	GError * _inner_error_ = NULL;
#line 27 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	parent_class = G_OBJECT_CLASS (gitg_plugins_engine_parent_class);
#line 27 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 27 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_PLUGINS_ENGINE, GitgPluginsEngine);
#line 29 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	peas_engine_enable_loader ((PeasEngine*) self, "python");
#line 31 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_tmp0_ = g_irepository_get_default ();
#line 31 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	repo = _tmp0_;
#line 232 "gitg-plugins-engine.c"
	{
		GIRepository* _tmp1_ = NULL;
		GIRepository* _tmp2_ = NULL;
#line 35 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
		_tmp1_ = repo;
#line 35 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
		g_irepository_require (_tmp1_, "Peas", "1.0", 0, &_inner_error_);
#line 35 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 242 "gitg-plugins-engine.c"
			goto __catch77_g_error;
		}
#line 36 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
		_tmp2_ = repo;
#line 36 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
		g_irepository_require (_tmp2_, "PeasGtk", "1.0", 0, &_inner_error_);
#line 36 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 251 "gitg-plugins-engine.c"
			goto __catch77_g_error;
		}
	}
	goto __finally77;
	__catch77_g_error:
	{
		GError* e = NULL;
		GError* _tmp3_ = NULL;
		const gchar* _tmp4_ = NULL;
#line 33 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
		e = _inner_error_;
#line 33 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
		_inner_error_ = NULL;
#line 40 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
		_tmp3_ = e;
#line 40 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
		_tmp4_ = _tmp3_->message;
#line 40 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
		g_warning ("gitg-plugins-engine.vala:40: Could not load repository: %s", _tmp4_);
#line 41 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
		_g_error_free0 (e);
#line 41 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
		return obj;
#line 275 "gitg-plugins-engine.c"
	}
	__finally77:
#line 33 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 33 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 33 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
		g_clear_error (&_inner_error_);
#line 284 "gitg-plugins-engine.c"
	}
#line 44 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_tmp5_ = gitg_dirs_get_user_plugins_dir ();
#line 44 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_tmp6_ = _tmp5_;
#line 44 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_tmp7_ = _tmp6_;
#line 44 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_tmp8_ = gitg_dirs_get_user_plugins_data_dir ();
#line 44 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_tmp9_ = _tmp8_;
#line 44 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_tmp10_ = _tmp9_;
#line 44 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	peas_engine_add_search_path ((PeasEngine*) self, _tmp7_, _tmp10_);
#line 44 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_g_free0 (_tmp10_);
#line 44 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_g_free0 (_tmp7_);
#line 47 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_tmp11_ = gitg_dirs_get_plugins_dir ();
#line 47 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_tmp12_ = _tmp11_;
#line 47 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_tmp13_ = _tmp12_;
#line 47 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_tmp14_ = gitg_dirs_get_plugins_data_dir ();
#line 47 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_tmp15_ = _tmp14_;
#line 47 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_tmp16_ = _tmp15_;
#line 47 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	peas_engine_add_search_path ((PeasEngine*) self, _tmp13_, _tmp16_);
#line 47 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_g_free0 (_tmp16_);
#line 47 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_g_free0 (_tmp13_);
#line 50 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_tmp17_ = g_new0 (PeasPluginInfo*, 20 + 1);
#line 50 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	builtins = _tmp17_;
#line 50 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	builtins_length1 = 20;
#line 50 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_builtins_size_ = builtins_length1;
#line 51 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	builtins_length1 = 0;
#line 51 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_tmp18_ = builtins_length1;
#line 53 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_tmp19_ = peas_engine_get_plugin_list ((PeasEngine*) self);
#line 336 "gitg-plugins-engine.c"
	{
		GList* info_collection = NULL;
		GList* info_it = NULL;
#line 53 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
		info_collection = _tmp19_;
#line 53 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
		for (info_it = info_collection; info_it != NULL; info_it = info_it->next) {
#line 344 "gitg-plugins-engine.c"
			PeasPluginInfo* _tmp20_ = NULL;
			PeasPluginInfo* info = NULL;
#line 53 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
			_tmp20_ = __vala_PeasPluginInfo_copy0 ((PeasPluginInfo*) info_it->data);
#line 53 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
			info = _tmp20_;
#line 351 "gitg-plugins-engine.c"
			{
				PeasPluginInfo* _tmp21_ = NULL;
				gboolean _tmp22_ = FALSE;
#line 55 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
				_tmp21_ = info;
#line 55 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
				_tmp22_ = peas_plugin_info_is_builtin (_tmp21_);
#line 55 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
				if (_tmp22_) {
#line 361 "gitg-plugins-engine.c"
					PeasPluginInfo** _tmp23_ = NULL;
					gint _tmp23__length1 = 0;
					PeasPluginInfo* _tmp24_ = NULL;
					PeasPluginInfo* _tmp25_ = NULL;
#line 57 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
					_tmp23_ = builtins;
#line 57 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
					_tmp23__length1 = builtins_length1;
#line 57 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
					_tmp24_ = info;
#line 57 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
					_tmp25_ = __vala_PeasPluginInfo_copy0 (_tmp24_);
#line 57 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
					_vala_array_add12 (&builtins, &builtins_length1, &_builtins_size_, _tmp25_);
#line 376 "gitg-plugins-engine.c"
				}
#line 53 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
				__vala_PeasPluginInfo_free0 (info);
#line 380 "gitg-plugins-engine.c"
			}
		}
	}
#line 61 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_tmp26_ = builtins;
#line 61 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	_tmp26__length1 = builtins_length1;
#line 388 "gitg-plugins-engine.c"
	{
		PeasPluginInfo** info_collection = NULL;
		gint info_collection_length1 = 0;
		gint _info_collection_size_ = 0;
		gint info_it = 0;
#line 61 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
		info_collection = _tmp26_;
#line 61 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
		info_collection_length1 = _tmp26__length1;
#line 61 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
		for (info_it = 0; info_it < _tmp26__length1; info_it = info_it + 1) {
#line 400 "gitg-plugins-engine.c"
			PeasPluginInfo* _tmp27_ = NULL;
			PeasPluginInfo* info = NULL;
#line 61 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
			_tmp27_ = __vala_PeasPluginInfo_copy0 (info_collection[info_it]);
#line 61 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
			info = _tmp27_;
#line 407 "gitg-plugins-engine.c"
			{
				PeasPluginInfo* _tmp28_ = NULL;
#line 63 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
				_tmp28_ = info;
#line 63 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
				g_signal_emit_by_name ((PeasEngine*) self, "load-plugin", _tmp28_);
#line 61 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
				__vala_PeasPluginInfo_free0 (info);
#line 416 "gitg-plugins-engine.c"
			}
		}
	}
#line 27 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	builtins = (_vala_array_free (builtins, builtins_length1, (GDestroyNotify) _vala_PeasPluginInfo_free), NULL);
#line 27 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	return obj;
#line 424 "gitg-plugins-engine.c"
}


static void gitg_plugins_engine_class_init (GitgPluginsEngineClass * klass) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	gitg_plugins_engine_parent_class = g_type_class_peek_parent (klass);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	G_OBJECT_CLASS (klass)->constructor = gitg_plugins_engine_constructor;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_plugins_engine_finalize;
#line 435 "gitg-plugins-engine.c"
}


static void gitg_plugins_engine_instance_init (GitgPluginsEngine * self) {
}


static void gitg_plugins_engine_finalize (GObject* obj) {
	GitgPluginsEngine * self;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_PLUGINS_ENGINE, GitgPluginsEngine);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-plugins-engine.vala"
	G_OBJECT_CLASS (gitg_plugins_engine_parent_class)->finalize (obj);
#line 449 "gitg-plugins-engine.c"
}


GType gitg_plugins_engine_get_type (void) {
	static volatile gsize gitg_plugins_engine_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_plugins_engine_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgPluginsEngineClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_plugins_engine_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgPluginsEngine), 0, (GInstanceInitFunc) gitg_plugins_engine_instance_init, NULL };
		GType gitg_plugins_engine_type_id;
		gitg_plugins_engine_type_id = g_type_register_static (peas_engine_get_type (), "GitgPluginsEngine", &g_define_type_info, 0);
		g_once_init_leave (&gitg_plugins_engine_type_id__volatile, gitg_plugins_engine_type_id);
	}
	return gitg_plugins_engine_type_id__volatile;
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	if ((array != NULL) && (destroy_func != NULL)) {
		int i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}



