/* ref-action-interface-mock.c generated by valac 0.34.7, the Vala compiler
 * generated from ref-action-interface-mock.vala, do not modify */

/*
 * This file is part of gitg
 *
 * Copyright (C) 2015 - 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 "libgitg-ext/libgitg-ext.h"
#include "libgitg/libgitg.h"
#include <gee.h>


#define GITG_TEST_TYPE_REF_ACTION_INTERFACE (gitg_test_ref_action_interface_get_type ())
#define GITG_TEST_REF_ACTION_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TEST_TYPE_REF_ACTION_INTERFACE, GitgTestRefActionInterface))
#define GITG_TEST_REF_ACTION_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TEST_TYPE_REF_ACTION_INTERFACE, GitgTestRefActionInterfaceClass))
#define GITG_TEST_IS_REF_ACTION_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TEST_TYPE_REF_ACTION_INTERFACE))
#define GITG_TEST_IS_REF_ACTION_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TEST_TYPE_REF_ACTION_INTERFACE))
#define GITG_TEST_REF_ACTION_INTERFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TEST_TYPE_REF_ACTION_INTERFACE, GitgTestRefActionInterfaceClass))

typedef struct _GitgTestRefActionInterface GitgTestRefActionInterface;
typedef struct _GitgTestRefActionInterfaceClass GitgTestRefActionInterfaceClass;
typedef struct _GitgTestRefActionInterfacePrivate GitgTestRefActionInterfacePrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

struct _GitgTestRefActionInterface {
	GObject parent_instance;
	GitgTestRefActionInterfacePrivate * priv;
};

struct _GitgTestRefActionInterfaceClass {
	GObjectClass parent_class;
};

struct _GitgTestRefActionInterfacePrivate {
	GitgExtApplication* _application;
};


static gpointer gitg_test_ref_action_interface_parent_class = NULL;
static GitgExtRefActionInterfaceIface* gitg_test_ref_action_interface_gitg_ext_ref_action_interface_parent_iface = NULL;

GType gitg_test_ref_action_interface_get_type (void) G_GNUC_CONST;
#define GITG_TEST_REF_ACTION_INTERFACE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TEST_TYPE_REF_ACTION_INTERFACE, GitgTestRefActionInterfacePrivate))
enum  {
	GITG_TEST_REF_ACTION_INTERFACE_DUMMY_PROPERTY,
	GITG_TEST_REF_ACTION_INTERFACE_APPLICATION,
	GITG_TEST_REF_ACTION_INTERFACE_REFERENCES
};
GitgTestRefActionInterface* gitg_test_ref_action_interface_new (GitgExtApplication* application);
GitgTestRefActionInterface* gitg_test_ref_action_interface_construct (GType object_type, GitgExtApplication* application);
static void gitg_test_ref_action_interface_real_add_ref (GitgExtRefActionInterface* base, GitgRef* reference);
static void gitg_test_ref_action_interface_real_remove_ref (GitgExtRefActionInterface* base, GitgRef* reference);
static void gitg_test_ref_action_interface_real_replace_ref (GitgExtRefActionInterface* base, GitgRef* old_ref, GitgRef* new_ref);
static void gitg_test_ref_action_interface_real_set_busy (GitgExtRefActionInterface* base, GitgRef* reference, gboolean busy);
static void gitg_test_ref_action_interface_real_edit_ref_name (GitgExtRefActionInterface* base, GitgRef* reference, GitgExtRefNameEditingDone callback, void* callback_target, GDestroyNotify callback_target_destroy_notify);
static void gitg_test_ref_action_interface_real_refresh (GitgExtRefActionInterface* base);
static void gitg_test_ref_action_interface_finalize (GObject* obj);
static void _vala_gitg_test_ref_action_interface_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gitg_test_ref_action_interface_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


GitgTestRefActionInterface* gitg_test_ref_action_interface_construct (GType object_type, GitgExtApplication* application) {
	GitgTestRefActionInterface * self = NULL;
	GitgExtApplication* _tmp0_ = NULL;
#line 26 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	g_return_val_if_fail (application != NULL, NULL);
#line 28 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	_tmp0_ = application;
#line 28 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	self = (GitgTestRefActionInterface*) g_object_new (object_type, "application", _tmp0_, NULL);
#line 26 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	return self;
#line 91 "ref-action-interface-mock.c"
}


GitgTestRefActionInterface* gitg_test_ref_action_interface_new (GitgExtApplication* application) {
#line 26 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	return gitg_test_ref_action_interface_construct (GITG_TEST_TYPE_REF_ACTION_INTERFACE, application);
#line 98 "ref-action-interface-mock.c"
}


static void gitg_test_ref_action_interface_real_add_ref (GitgExtRefActionInterface* base, GitgRef* reference) {
	GitgTestRefActionInterface * self;
#line 36 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	self = (GitgTestRefActionInterface*) base;
#line 36 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	g_return_if_fail (reference != NULL);
#line 108 "ref-action-interface-mock.c"
}


static void gitg_test_ref_action_interface_real_remove_ref (GitgExtRefActionInterface* base, GitgRef* reference) {
	GitgTestRefActionInterface * self;
#line 41 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	self = (GitgTestRefActionInterface*) base;
#line 41 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	g_return_if_fail (reference != NULL);
#line 118 "ref-action-interface-mock.c"
}


static void gitg_test_ref_action_interface_real_replace_ref (GitgExtRefActionInterface* base, GitgRef* old_ref, GitgRef* new_ref) {
	GitgTestRefActionInterface * self;
#line 46 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	self = (GitgTestRefActionInterface*) base;
#line 46 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	g_return_if_fail (old_ref != NULL);
#line 46 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	g_return_if_fail (new_ref != NULL);
#line 130 "ref-action-interface-mock.c"
}


static void gitg_test_ref_action_interface_real_set_busy (GitgExtRefActionInterface* base, GitgRef* reference, gboolean busy) {
	GitgTestRefActionInterface * self;
#line 51 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	self = (GitgTestRefActionInterface*) base;
#line 51 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	g_return_if_fail (reference != NULL);
#line 140 "ref-action-interface-mock.c"
}


static void gitg_test_ref_action_interface_real_edit_ref_name (GitgExtRefActionInterface* base, GitgRef* reference, GitgExtRefNameEditingDone callback, void* callback_target, GDestroyNotify callback_target_destroy_notify) {
	GitgTestRefActionInterface * self;
#line 56 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	self = (GitgTestRefActionInterface*) base;
#line 56 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	g_return_if_fail (reference != NULL);
#line 56 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	(callback_target_destroy_notify == NULL) ? NULL : (callback_target_destroy_notify (callback_target), NULL);
#line 56 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	callback = NULL;
#line 56 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	callback_target = NULL;
#line 56 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	callback_target_destroy_notify = NULL;
#line 158 "ref-action-interface-mock.c"
}


static void gitg_test_ref_action_interface_real_refresh (GitgExtRefActionInterface* base) {
	GitgTestRefActionInterface * self;
#line 61 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	self = (GitgTestRefActionInterface*) base;
#line 166 "ref-action-interface-mock.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 24 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	return self ? g_object_ref (self) : NULL;
#line 173 "ref-action-interface-mock.c"
}


static GitgExtApplication* gitg_test_ref_action_interface_real_get_application (GitgExtRefActionInterface* base) {
	GitgExtApplication* result;
	GitgTestRefActionInterface* self;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
#line 24 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	self = (GitgTestRefActionInterface*) base;
#line 24 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	_tmp0_ = self->priv->_application;
#line 24 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 24 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	result = _tmp1_;
#line 24 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	return result;
#line 192 "ref-action-interface-mock.c"
}


static void gitg_test_ref_action_interface_real_set_application (GitgExtRefActionInterface* base, GitgExtApplication* value) {
	GitgTestRefActionInterface* self;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
#line 24 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	self = (GitgTestRefActionInterface*) base;
#line 24 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	_tmp0_ = value;
#line 24 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 24 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	_g_object_unref0 (self->priv->_application);
#line 24 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	self->priv->_application = _tmp1_;
#line 24 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	g_object_notify ((GObject *) self, "application");
#line 212 "ref-action-interface-mock.c"
}


static GeeList* gitg_test_ref_action_interface_real_get_references (GitgExtRefActionInterface* base) {
	GeeList* result;
	GitgTestRefActionInterface* self;
	GeeLinkedList* _tmp0_ = NULL;
#line 33 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	self = (GitgTestRefActionInterface*) base;
#line 33 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	_tmp0_ = gee_linked_list_new (GITG_TYPE_REF, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
#line 33 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	result = (GeeList*) _tmp0_;
#line 33 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	return result;
#line 228 "ref-action-interface-mock.c"
}


static void gitg_test_ref_action_interface_class_init (GitgTestRefActionInterfaceClass * klass) {
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	gitg_test_ref_action_interface_parent_class = g_type_class_peek_parent (klass);
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	g_type_class_add_private (klass, sizeof (GitgTestRefActionInterfacePrivate));
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_test_ref_action_interface_get_property;
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_test_ref_action_interface_set_property;
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_test_ref_action_interface_finalize;
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_TEST_REF_ACTION_INTERFACE_APPLICATION, g_param_spec_object ("application", "application", "application", GITG_EXT_TYPE_APPLICATION, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_TEST_REF_ACTION_INTERFACE_REFERENCES, g_param_spec_object ("references", "references", "references", GEE_TYPE_LIST, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 247 "ref-action-interface-mock.c"
}


static void gitg_test_ref_action_interface_gitg_ext_ref_action_interface_interface_init (GitgExtRefActionInterfaceIface * iface) {
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	gitg_test_ref_action_interface_gitg_ext_ref_action_interface_parent_iface = g_type_interface_peek_parent (iface);
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	iface->add_ref = (void (*)(GitgExtRefActionInterface*, GitgRef*)) gitg_test_ref_action_interface_real_add_ref;
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	iface->remove_ref = (void (*)(GitgExtRefActionInterface*, GitgRef*)) gitg_test_ref_action_interface_real_remove_ref;
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	iface->replace_ref = (void (*)(GitgExtRefActionInterface*, GitgRef*, GitgRef*)) gitg_test_ref_action_interface_real_replace_ref;
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	iface->set_busy = (void (*)(GitgExtRefActionInterface*, GitgRef*, gboolean)) gitg_test_ref_action_interface_real_set_busy;
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	iface->edit_ref_name = (void (*)(GitgExtRefActionInterface*, GitgRef*, GitgExtRefNameEditingDone, void*, GDestroyNotify)) gitg_test_ref_action_interface_real_edit_ref_name;
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	iface->refresh = (void (*)(GitgExtRefActionInterface*)) gitg_test_ref_action_interface_real_refresh;
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	iface->get_application = gitg_test_ref_action_interface_real_get_application;
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	iface->set_application = gitg_test_ref_action_interface_real_set_application;
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	iface->get_references = gitg_test_ref_action_interface_real_get_references;
#line 272 "ref-action-interface-mock.c"
}


static void gitg_test_ref_action_interface_instance_init (GitgTestRefActionInterface * self) {
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	self->priv = GITG_TEST_REF_ACTION_INTERFACE_GET_PRIVATE (self);
#line 279 "ref-action-interface-mock.c"
}


static void gitg_test_ref_action_interface_finalize (GObject* obj) {
	GitgTestRefActionInterface * self;
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TEST_TYPE_REF_ACTION_INTERFACE, GitgTestRefActionInterface);
#line 24 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	_g_object_unref0 (self->priv->_application);
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	G_OBJECT_CLASS (gitg_test_ref_action_interface_parent_class)->finalize (obj);
#line 291 "ref-action-interface-mock.c"
}


GType gitg_test_ref_action_interface_get_type (void) {
	static volatile gsize gitg_test_ref_action_interface_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_test_ref_action_interface_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgTestRefActionInterfaceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_test_ref_action_interface_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgTestRefActionInterface), 0, (GInstanceInitFunc) gitg_test_ref_action_interface_instance_init, NULL };
		static const GInterfaceInfo gitg_ext_ref_action_interface_info = { (GInterfaceInitFunc) gitg_test_ref_action_interface_gitg_ext_ref_action_interface_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType gitg_test_ref_action_interface_type_id;
		gitg_test_ref_action_interface_type_id = g_type_register_static (G_TYPE_OBJECT, "GitgTestRefActionInterface", &g_define_type_info, 0);
		g_type_add_interface_static (gitg_test_ref_action_interface_type_id, GITG_EXT_TYPE_REF_ACTION_INTERFACE, &gitg_ext_ref_action_interface_info);
		g_once_init_leave (&gitg_test_ref_action_interface_type_id__volatile, gitg_test_ref_action_interface_type_id);
	}
	return gitg_test_ref_action_interface_type_id__volatile;
}


static void _vala_gitg_test_ref_action_interface_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgTestRefActionInterface * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TEST_TYPE_REF_ACTION_INTERFACE, GitgTestRefActionInterface);
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	switch (property_id) {
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
		case GITG_TEST_REF_ACTION_INTERFACE_APPLICATION:
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
		g_value_take_object (value, gitg_ext_ref_action_interface_get_application ((GitgExtRefActionInterface*) self));
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
		break;
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
		case GITG_TEST_REF_ACTION_INTERFACE_REFERENCES:
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
		g_value_take_object (value, gitg_ext_ref_action_interface_get_references ((GitgExtRefActionInterface*) self));
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
		break;
#line 326 "ref-action-interface-mock.c"
		default:
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
		break;
#line 332 "ref-action-interface-mock.c"
	}
}


static void _vala_gitg_test_ref_action_interface_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgTestRefActionInterface * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TEST_TYPE_REF_ACTION_INTERFACE, GitgTestRefActionInterface);
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
	switch (property_id) {
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
		case GITG_TEST_REF_ACTION_INTERFACE_APPLICATION:
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
		gitg_ext_ref_action_interface_set_application ((GitgExtRefActionInterface*) self, g_value_get_object (value));
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
		break;
#line 348 "ref-action-interface-mock.c"
		default:
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 22 "/home/jesse/dev/gitg/tests/gitg/ref-action-interface-mock.vala"
		break;
#line 354 "ref-action-interface-mock.c"
	}
}



