/* vbfconfignodepair.c generated by valac 0.12.1.1-323029-dirty, the Vala compiler
 * generated from vbfconfignodepair.vala, do not modify */

/*
 *  vbfconfignodepair.vala - Vala Build Framework library
 *  
 *  Copyright (C) 2008 - Andrea Del Signore <sejerpz@tin.it>
 *  
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This library 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
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
 */

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


#define VBF_TYPE_CONFIG_NODE_PAIR (vbf_config_node_pair_get_type ())
#define VBF_CONFIG_NODE_PAIR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VBF_TYPE_CONFIG_NODE_PAIR, VbfConfigNodePair))
#define VBF_CONFIG_NODE_PAIR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VBF_TYPE_CONFIG_NODE_PAIR, VbfConfigNodePairClass))
#define VBF_IS_CONFIG_NODE_PAIR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VBF_TYPE_CONFIG_NODE_PAIR))
#define VBF_IS_CONFIG_NODE_PAIR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VBF_TYPE_CONFIG_NODE_PAIR))
#define VBF_CONFIG_NODE_PAIR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VBF_TYPE_CONFIG_NODE_PAIR, VbfConfigNodePairClass))

typedef struct _VbfConfigNodePair VbfConfigNodePair;
typedef struct _VbfConfigNodePairClass VbfConfigNodePairClass;
typedef struct _VbfConfigNodePairPrivate VbfConfigNodePairPrivate;

#define VBF_TYPE_CONFIG_NODE (vbf_config_node_get_type ())
#define VBF_CONFIG_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VBF_TYPE_CONFIG_NODE, VbfConfigNode))
#define VBF_CONFIG_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VBF_TYPE_CONFIG_NODE, VbfConfigNodeClass))
#define VBF_IS_CONFIG_NODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VBF_TYPE_CONFIG_NODE))
#define VBF_IS_CONFIG_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VBF_TYPE_CONFIG_NODE))
#define VBF_CONFIG_NODE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VBF_TYPE_CONFIG_NODE, VbfConfigNodeClass))

typedef struct _VbfConfigNode VbfConfigNode;
typedef struct _VbfConfigNodeClass VbfConfigNodeClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

struct _VbfConfigNodePair {
	GObject parent_instance;
	VbfConfigNodePairPrivate * priv;
	VbfConfigNode* source;
	VbfConfigNode* destination;
};

struct _VbfConfigNodePairClass {
	GObjectClass parent_class;
};


static gpointer vbf_config_node_pair_parent_class = NULL;

GType vbf_config_node_pair_get_type (void) G_GNUC_CONST;
GType vbf_config_node_get_type (void) G_GNUC_CONST;
enum  {
	VBF_CONFIG_NODE_PAIR_DUMMY_PROPERTY
};
VbfConfigNodePair* vbf_config_node_pair_new (VbfConfigNode* source, VbfConfigNode* destination);
VbfConfigNodePair* vbf_config_node_pair_construct (GType object_type, VbfConfigNode* source, VbfConfigNode* destination);
static void vbf_config_node_pair_finalize (GObject* obj);


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


VbfConfigNodePair* vbf_config_node_pair_construct (GType object_type, VbfConfigNode* source, VbfConfigNode* destination) {
	VbfConfigNodePair * self = NULL;
	VbfConfigNode* _tmp0_;
	VbfConfigNode* _tmp1_;
	g_return_val_if_fail (source != NULL, NULL);
	self = (VbfConfigNodePair*) g_object_new (object_type, NULL);
	_tmp0_ = _g_object_ref0 (source);
	_g_object_unref0 (self->source);
	self->source = _tmp0_;
	_tmp1_ = _g_object_ref0 (destination);
	_g_object_unref0 (self->destination);
	self->destination = _tmp1_;
	return self;
}


VbfConfigNodePair* vbf_config_node_pair_new (VbfConfigNode* source, VbfConfigNode* destination) {
	return vbf_config_node_pair_construct (VBF_TYPE_CONFIG_NODE_PAIR, source, destination);
}


static void vbf_config_node_pair_class_init (VbfConfigNodePairClass * klass) {
	vbf_config_node_pair_parent_class = g_type_class_peek_parent (klass);
	G_OBJECT_CLASS (klass)->finalize = vbf_config_node_pair_finalize;
}


static void vbf_config_node_pair_instance_init (VbfConfigNodePair * self) {
}


static void vbf_config_node_pair_finalize (GObject* obj) {
	VbfConfigNodePair * self;
	self = VBF_CONFIG_NODE_PAIR (obj);
	_g_object_unref0 (self->source);
	_g_object_unref0 (self->destination);
	G_OBJECT_CLASS (vbf_config_node_pair_parent_class)->finalize (obj);
}


GType vbf_config_node_pair_get_type (void) {
	static volatile gsize vbf_config_node_pair_type_id__volatile = 0;
	if (g_once_init_enter (&vbf_config_node_pair_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (VbfConfigNodePairClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) vbf_config_node_pair_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VbfConfigNodePair), 0, (GInstanceInitFunc) vbf_config_node_pair_instance_init, NULL };
		GType vbf_config_node_pair_type_id;
		vbf_config_node_pair_type_id = g_type_register_static (G_TYPE_OBJECT, "VbfConfigNodePair", &g_define_type_info, 0);
		g_once_init_leave (&vbf_config_node_pair_type_id__volatile, vbf_config_node_pair_type_id);
	}
	return vbf_config_node_pair_type_id__volatile;
}



