/* rygel-xml-utils.c generated by valac 0.17.4.16-52707, the Vala compiler
 * generated from rygel-xml-utils.vala, do not modify */

/*
 * Copyright (C) 2008,2010 Nokia Corporation.
 * Copyright (C) 2008 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>.
 *
 * Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
 *
 * This file is part of Rygel.
 *
 * Rygel 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 of the License, or
 * (at your option) any later version.
 *
 * Rygel 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 program; 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 <libxml/tree.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <gobject/gvaluecollector.h>


#define RYGEL_TYPE_XML_UTILS (rygel_xml_utils_get_type ())
#define RYGEL_XML_UTILS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_XML_UTILS, RygelXMLUtils))
#define RYGEL_XML_UTILS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_XML_UTILS, RygelXMLUtilsClass))
#define RYGEL_IS_XML_UTILS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_XML_UTILS))
#define RYGEL_IS_XML_UTILS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_XML_UTILS))
#define RYGEL_XML_UTILS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_XML_UTILS, RygelXMLUtilsClass))

typedef struct _RygelXMLUtils RygelXMLUtils;
typedef struct _RygelXMLUtilsClass RygelXMLUtilsClass;
typedef struct _RygelXMLUtilsPrivate RygelXMLUtilsPrivate;
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _RygelParamSpecXMLUtils RygelParamSpecXMLUtils;

struct _RygelXMLUtils {
	GTypeInstance parent_instance;
	volatile int ref_count;
	RygelXMLUtilsPrivate * priv;
};

struct _RygelXMLUtilsClass {
	GTypeClass parent_class;
	void (*finalize) (RygelXMLUtils *self);
};

struct _RygelParamSpecXMLUtils {
	GParamSpec parent_instance;
};


static gpointer rygel_xml_utils_parent_class = NULL;

gpointer rygel_xml_utils_ref (gpointer instance);
void rygel_xml_utils_unref (gpointer instance);
GParamSpec* rygel_param_spec_xml_utils (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void rygel_value_set_xml_utils (GValue* value, gpointer v_object);
void rygel_value_take_xml_utils (GValue* value, gpointer v_object);
gpointer rygel_value_get_xml_utils (const GValue* value);
GType rygel_xml_utils_get_type (void) G_GNUC_CONST;
enum  {
	RYGEL_XML_UTILS_DUMMY_PROPERTY
};
xmlNode* rygel_xml_utils_get_element (xmlNode* node, ...);
RygelXMLUtils* rygel_xml_utils_new (void);
RygelXMLUtils* rygel_xml_utils_construct (GType object_type);
static void rygel_xml_utils_finalize (RygelXMLUtils* obj);


xmlNode* rygel_xml_utils_get_element (xmlNode* node, ...) {
	xmlNode* result = NULL;
	xmlNode* _tmp0_;
	xmlNode* ret;
	va_list list = {0};
	xmlNode* _tmp15_;
#line 32 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	_tmp0_ = node;
#line 32 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	ret = _tmp0_;
#line 34 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	va_start (list, node);
#line 36 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	while (TRUE) {
#line 98 "rygel-xml-utils.c"
		const gchar* _tmp1_ = NULL;
		gchar* _tmp2_;
		gchar* arg;
		const gchar* _tmp3_;
		xmlNode* _tmp14_;
#line 37 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		_tmp1_ = va_arg (list, gchar*);
#line 37 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		_tmp2_ = g_strdup (_tmp1_);
#line 37 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		arg = _tmp2_;
#line 38 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		_tmp3_ = arg;
#line 38 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		if (_tmp3_ == NULL) {
#line 39 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
			_g_free0 (arg);
#line 39 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
			break;
#line 118 "rygel-xml-utils.c"
		}
		{
			xmlNode* _tmp4_;
			xmlNode* _tmp5_;
			gboolean _tmp6_;
#line 41 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
			_tmp4_ = ret;
#line 41 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
			_tmp5_ = _tmp4_->children;
#line 41 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
			ret = _tmp5_;
#line 41 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
			_tmp6_ = TRUE;
#line 41 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
			while (TRUE) {
#line 134 "rygel-xml-utils.c"
				gboolean _tmp7_;
				xmlNode* _tmp10_;
				const gchar* _tmp11_;
				xmlNode* _tmp12_;
				const gchar* _tmp13_;
#line 41 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
				_tmp7_ = _tmp6_;
#line 41 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
				if (!_tmp7_) {
#line 144 "rygel-xml-utils.c"
					xmlNode* _tmp8_;
					xmlNode* _tmp9_;
#line 41 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
					_tmp8_ = ret;
#line 41 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
					_tmp9_ = _tmp8_->next;
#line 41 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
					ret = _tmp9_;
#line 153 "rygel-xml-utils.c"
				}
#line 41 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
				_tmp6_ = FALSE;
#line 41 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
				_tmp10_ = ret;
#line 41 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
				if (!(_tmp10_ != NULL)) {
#line 41 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
					break;
#line 163 "rygel-xml-utils.c"
				}
#line 42 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
				_tmp11_ = arg;
#line 42 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
				_tmp12_ = ret;
#line 42 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
				_tmp13_ = _tmp12_->name;
#line 42 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
				if (g_strcmp0 (_tmp11_, _tmp13_) == 0) {
#line 43 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
					break;
#line 175 "rygel-xml-utils.c"
				}
			}
		}
#line 45 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		_tmp14_ = ret;
#line 45 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		if (_tmp14_ == NULL) {
#line 46 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
			_g_free0 (arg);
#line 46 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
			break;
#line 187 "rygel-xml-utils.c"
		}
#line 36 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		_g_free0 (arg);
#line 191 "rygel-xml-utils.c"
	}
#line 49 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	_tmp15_ = ret;
#line 49 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	result = _tmp15_;
#line 49 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	va_end (list);
#line 49 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	return result;
#line 201 "rygel-xml-utils.c"
}


RygelXMLUtils* rygel_xml_utils_construct (GType object_type) {
	RygelXMLUtils* self = NULL;
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	self = (RygelXMLUtils*) g_type_create_instance (object_type);
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	return self;
#line 211 "rygel-xml-utils.c"
}


RygelXMLUtils* rygel_xml_utils_new (void) {
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	return rygel_xml_utils_construct (RYGEL_TYPE_XML_UTILS);
#line 218 "rygel-xml-utils.c"
}


static void rygel_value_xml_utils_init (GValue* value) {
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	value->data[0].v_pointer = NULL;
#line 225 "rygel-xml-utils.c"
}


static void rygel_value_xml_utils_free_value (GValue* value) {
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	if (value->data[0].v_pointer) {
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		rygel_xml_utils_unref (value->data[0].v_pointer);
#line 234 "rygel-xml-utils.c"
	}
}


static void rygel_value_xml_utils_copy_value (const GValue* src_value, GValue* dest_value) {
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	if (src_value->data[0].v_pointer) {
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		dest_value->data[0].v_pointer = rygel_xml_utils_ref (src_value->data[0].v_pointer);
#line 244 "rygel-xml-utils.c"
	} else {
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		dest_value->data[0].v_pointer = NULL;
#line 248 "rygel-xml-utils.c"
	}
}


static gpointer rygel_value_xml_utils_peek_pointer (const GValue* value) {
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	return value->data[0].v_pointer;
#line 256 "rygel-xml-utils.c"
}


static gchar* rygel_value_xml_utils_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	if (collect_values[0].v_pointer) {
#line 263 "rygel-xml-utils.c"
		RygelXMLUtils* object;
		object = collect_values[0].v_pointer;
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		if (object->parent_instance.g_class == NULL) {
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 270 "rygel-xml-utils.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.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 274 "rygel-xml-utils.c"
		}
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		value->data[0].v_pointer = rygel_xml_utils_ref (object);
#line 278 "rygel-xml-utils.c"
	} else {
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		value->data[0].v_pointer = NULL;
#line 282 "rygel-xml-utils.c"
	}
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	return NULL;
#line 286 "rygel-xml-utils.c"
}


static gchar* rygel_value_xml_utils_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	RygelXMLUtils** object_p;
	object_p = collect_values[0].v_pointer;
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	if (!object_p) {
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 297 "rygel-xml-utils.c"
	}
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	if (!value->data[0].v_pointer) {
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		*object_p = NULL;
#line 303 "rygel-xml-utils.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		*object_p = value->data[0].v_pointer;
#line 307 "rygel-xml-utils.c"
	} else {
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		*object_p = rygel_xml_utils_ref (value->data[0].v_pointer);
#line 311 "rygel-xml-utils.c"
	}
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	return NULL;
#line 315 "rygel-xml-utils.c"
}


GParamSpec* rygel_param_spec_xml_utils (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	RygelParamSpecXMLUtils* spec;
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	g_return_val_if_fail (g_type_is_a (object_type, RYGEL_TYPE_XML_UTILS), NULL);
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	return G_PARAM_SPEC (spec);
#line 329 "rygel-xml-utils.c"
}


gpointer rygel_value_get_xml_utils (const GValue* value) {
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, RYGEL_TYPE_XML_UTILS), NULL);
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	return value->data[0].v_pointer;
#line 338 "rygel-xml-utils.c"
}


void rygel_value_set_xml_utils (GValue* value, gpointer v_object) {
	RygelXMLUtils* old;
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, RYGEL_TYPE_XML_UTILS));
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	old = value->data[0].v_pointer;
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	if (v_object) {
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, RYGEL_TYPE_XML_UTILS));
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		value->data[0].v_pointer = v_object;
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		rygel_xml_utils_ref (value->data[0].v_pointer);
#line 358 "rygel-xml-utils.c"
	} else {
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		value->data[0].v_pointer = NULL;
#line 362 "rygel-xml-utils.c"
	}
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	if (old) {
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		rygel_xml_utils_unref (old);
#line 368 "rygel-xml-utils.c"
	}
}


void rygel_value_take_xml_utils (GValue* value, gpointer v_object) {
	RygelXMLUtils* old;
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, RYGEL_TYPE_XML_UTILS));
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	old = value->data[0].v_pointer;
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	if (v_object) {
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, RYGEL_TYPE_XML_UTILS));
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		value->data[0].v_pointer = v_object;
#line 387 "rygel-xml-utils.c"
	} else {
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		value->data[0].v_pointer = NULL;
#line 391 "rygel-xml-utils.c"
	}
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	if (old) {
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		rygel_xml_utils_unref (old);
#line 397 "rygel-xml-utils.c"
	}
}


static void rygel_xml_utils_class_init (RygelXMLUtilsClass * klass) {
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	rygel_xml_utils_parent_class = g_type_class_peek_parent (klass);
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	RYGEL_XML_UTILS_CLASS (klass)->finalize = rygel_xml_utils_finalize;
#line 407 "rygel-xml-utils.c"
}


static void rygel_xml_utils_instance_init (RygelXMLUtils * self) {
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	self->ref_count = 1;
#line 414 "rygel-xml-utils.c"
}


static void rygel_xml_utils_finalize (RygelXMLUtils* obj) {
	RygelXMLUtils * self;
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_TYPE_XML_UTILS, RygelXMLUtils);
#line 422 "rygel-xml-utils.c"
}


/**
 * XML utility API.
 */
GType rygel_xml_utils_get_type (void) {
	static volatile gsize rygel_xml_utils_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_xml_utils_type_id__volatile)) {
		static const GTypeValueTable g_define_type_value_table = { rygel_value_xml_utils_init, rygel_value_xml_utils_free_value, rygel_value_xml_utils_copy_value, rygel_value_xml_utils_peek_pointer, "p", rygel_value_xml_utils_collect_value, "p", rygel_value_xml_utils_lcopy_value };
		static const GTypeInfo g_define_type_info = { sizeof (RygelXMLUtilsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_xml_utils_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelXMLUtils), 0, (GInstanceInitFunc) rygel_xml_utils_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 rygel_xml_utils_type_id;
		rygel_xml_utils_type_id = g_type_register_fundamental (g_type_fundamental_next (), "RygelXMLUtils", &g_define_type_info, &g_define_type_fundamental_info, 0);
		g_once_init_leave (&rygel_xml_utils_type_id__volatile, rygel_xml_utils_type_id);
	}
	return rygel_xml_utils_type_id__volatile;
}


gpointer rygel_xml_utils_ref (gpointer instance) {
	RygelXMLUtils* self;
	self = instance;
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	g_atomic_int_inc (&self->ref_count);
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	return instance;
#line 450 "rygel-xml-utils.c"
}


void rygel_xml_utils_unref (gpointer instance) {
	RygelXMLUtils* self;
	self = instance;
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		RYGEL_XML_UTILS_GET_CLASS (self)->finalize (self);
#line 29 "/home/jens/Source/rygel/src/librygel-core/rygel-xml-utils.vala"
		g_type_free_instance ((GTypeInstance *) self);
#line 463 "rygel-xml-utils.c"
	}
}



