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

/*
 *  vbfunresolvedconfignode.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>
#include <stdlib.h>
#include <string.h>


#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;
typedef struct _VbfConfigNodePrivate VbfConfigNodePrivate;

#define VBF_TYPE_UNRESOLVED_CONFIG_NODE (vbf_unresolved_config_node_get_type ())
#define VBF_UNRESOLVED_CONFIG_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VBF_TYPE_UNRESOLVED_CONFIG_NODE, VbfUnresolvedConfigNode))
#define VBF_UNRESOLVED_CONFIG_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VBF_TYPE_UNRESOLVED_CONFIG_NODE, VbfUnresolvedConfigNodeClass))
#define VBF_IS_UNRESOLVED_CONFIG_NODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VBF_TYPE_UNRESOLVED_CONFIG_NODE))
#define VBF_IS_UNRESOLVED_CONFIG_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VBF_TYPE_UNRESOLVED_CONFIG_NODE))
#define VBF_UNRESOLVED_CONFIG_NODE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VBF_TYPE_UNRESOLVED_CONFIG_NODE, VbfUnresolvedConfigNodeClass))

typedef struct _VbfUnresolvedConfigNode VbfUnresolvedConfigNode;
typedef struct _VbfUnresolvedConfigNodeClass VbfUnresolvedConfigNodeClass;
typedef struct _VbfUnresolvedConfigNodePrivate VbfUnresolvedConfigNodePrivate;
#define _g_free0(var) (var = (g_free (var), NULL))

struct _VbfConfigNode {
	GObject parent_instance;
	VbfConfigNodePrivate * priv;
	VbfConfigNode* parent;
};

struct _VbfConfigNodeClass {
	GObjectClass parent_class;
	gchar* (*to_string) (VbfConfigNode* self);
};

struct _VbfUnresolvedConfigNode {
	VbfConfigNode parent_instance;
	VbfUnresolvedConfigNodePrivate * priv;
	gchar* name;
};

struct _VbfUnresolvedConfigNodeClass {
	VbfConfigNodeClass parent_class;
};


static gpointer vbf_unresolved_config_node_parent_class = NULL;

GType vbf_config_node_get_type (void) G_GNUC_CONST;
GType vbf_unresolved_config_node_get_type (void) G_GNUC_CONST;
enum  {
	VBF_UNRESOLVED_CONFIG_NODE_DUMMY_PROPERTY
};
VbfUnresolvedConfigNode* vbf_unresolved_config_node_new (const gchar* name);
VbfUnresolvedConfigNode* vbf_unresolved_config_node_construct (GType object_type, const gchar* name);
VbfConfigNode* vbf_config_node_construct (GType object_type);
static gchar* vbf_unresolved_config_node_real_to_string (VbfConfigNode* base);
static void vbf_unresolved_config_node_finalize (GObject* obj);


VbfUnresolvedConfigNode* vbf_unresolved_config_node_construct (GType object_type, const gchar* name) {
	VbfUnresolvedConfigNode * self = NULL;
	gchar* _tmp0_;
	g_return_val_if_fail (name != NULL, NULL);
	self = (VbfUnresolvedConfigNode*) vbf_config_node_construct (object_type);
	_tmp0_ = g_strdup (name);
	_g_free0 (self->name);
	self->name = _tmp0_;
	return self;
}


VbfUnresolvedConfigNode* vbf_unresolved_config_node_new (const gchar* name) {
	return vbf_unresolved_config_node_construct (VBF_TYPE_UNRESOLVED_CONFIG_NODE, name);
}


static gchar* vbf_unresolved_config_node_real_to_string (VbfConfigNode* base) {
	VbfUnresolvedConfigNode * self;
	gchar* result = NULL;
	gchar* _tmp0_;
	self = (VbfUnresolvedConfigNode*) base;
	_tmp0_ = g_strdup (self->name);
	result = _tmp0_;
	return result;
}


static void vbf_unresolved_config_node_class_init (VbfUnresolvedConfigNodeClass * klass) {
	vbf_unresolved_config_node_parent_class = g_type_class_peek_parent (klass);
	VBF_CONFIG_NODE_CLASS (klass)->to_string = vbf_unresolved_config_node_real_to_string;
	G_OBJECT_CLASS (klass)->finalize = vbf_unresolved_config_node_finalize;
}


static void vbf_unresolved_config_node_instance_init (VbfUnresolvedConfigNode * self) {
}


static void vbf_unresolved_config_node_finalize (GObject* obj) {
	VbfUnresolvedConfigNode * self;
	self = VBF_UNRESOLVED_CONFIG_NODE (obj);
	_g_free0 (self->name);
	G_OBJECT_CLASS (vbf_unresolved_config_node_parent_class)->finalize (obj);
}


GType vbf_unresolved_config_node_get_type (void) {
	static volatile gsize vbf_unresolved_config_node_type_id__volatile = 0;
	if (g_once_init_enter (&vbf_unresolved_config_node_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (VbfUnresolvedConfigNodeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) vbf_unresolved_config_node_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VbfUnresolvedConfigNode), 0, (GInstanceInitFunc) vbf_unresolved_config_node_instance_init, NULL };
		GType vbf_unresolved_config_node_type_id;
		vbf_unresolved_config_node_type_id = g_type_register_static (VBF_TYPE_CONFIG_NODE, "VbfUnresolvedConfigNode", &g_define_type_info, 0);
		g_once_init_leave (&vbf_unresolved_config_node_type_id__volatile, vbf_unresolved_config_node_type_id);
	}
	return vbf_unresolved_config_node_type_id__volatile;
}



