/* GXmlTest.c generated by valac 0.28.1, the Vala compiler
 * generated from GXmlTest.vala, do not modify */

/* -*- Mode: vala; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 2 -*- */
/* GXmlTest.vala
 *
 * Copyright (C) 2011-2013  Richard Schwarting <aquarichy@gmail.com>
 * Copyright (C) 2011-2015  Daniel Espinosa <esodan@gmail.com>
 *
 * 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, see <http://www.gnu.org/licenses/>.
 *
 * Authors:
 *      Richard Schwarting <aquarichy@gmail.com>
 *      Daniel Espinosa <esodan@gmail.com>
 */

#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <gxml/gxml.h>
#include <stdio.h>
#include <gobject/gvaluecollector.h>


#define TYPE_GXML_TEST (gxml_test_get_type ())
#define GXML_TEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GXML_TEST, GXmlTest))
#define GXML_TEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GXML_TEST, GXmlTestClass))
#define IS_GXML_TEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GXML_TEST))
#define IS_GXML_TEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GXML_TEST))
#define GXML_TEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GXML_TEST, GXmlTestClass))

typedef struct _GXmlTest GXmlTest;
typedef struct _GXmlTestClass GXmlTestClass;
typedef struct _GXmlTestPrivate GXmlTestPrivate;
#define _g_free0(var) (var = (g_free (var), NULL))
#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)))
typedef struct _ParamSpecGXmlTest ParamSpecGXmlTest;

struct _GXmlTest {
	GTypeInstance parent_instance;
	volatile int ref_count;
	GXmlTestPrivate * priv;
};

struct _GXmlTestClass {
	GTypeClass parent_class;
	void (*finalize) (GXmlTest *self);
};

struct _ParamSpecGXmlTest {
	GParamSpec parent_instance;
};


static gpointer gxml_test_parent_class = NULL;

gpointer gxml_test_ref (gpointer instance);
void gxml_test_unref (gpointer instance);
GParamSpec* param_spec_gxml_test (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_gxml_test (GValue* value, gpointer v_object);
void value_take_gxml_test (GValue* value, gpointer v_object);
gpointer value_get_gxml_test (const GValue* value);
GType gxml_test_get_type (void) G_GNUC_CONST;
enum  {
	GXML_TEST_DUMMY_PROPERTY
};
void gxml_test_GXmlLogFunc (const gchar* log_domain, GLogLevelFlags log_levels, const gchar* message);
void gxml_test_test_error (GXmlDomException expected);
const gchar* gxml_dom_exception_to_string (GXmlDomException self);
gint gxml_test_main (gchar** args, int args_length1);
static void _gxml_test_GXmlLogFunc_glog_func (const gchar* log_domain, GLogLevelFlags log_levels, const gchar* message, gpointer self);
void document_test_add_tests (void);
void node_test_add_tests (void);
void element_test_add_tests (void);
void attr_test_add_tests (void);
void namespace_test_add_tests (void);
void node_list_test_add_tests (void);
void text_test_add_tests (void);
void character_data_test_add_tests (void);
void vala_libxml2_test_add_tests (void);
void serializable_test_add_tests (void);
void serializable_object_model_test_add_tests (void);
void serializable_object_model_tdocument_test_add_tests (void);
void serializable_gee_tree_map_test_add_tests (void);
void serializable_gee_hash_map_test_add_tests (void);
void serializable_gee_dual_key_map_test_add_tests (void);
void serializable_gee_array_list_test_add_tests (void);
void serializable_gee_collections_test_add_tests (void);
void serializable_gee_collections_tdocument_test_add_tests (void);
void serializable_basic_type_test_add_tests (void);
void serializable_enumeration_test_add_tests (void);
void performance_add_tests (void);
void telement_test_add_tests (void);
void tcdata_test_add_tests (void);
void tcomment_test_add_tests (void);
void tdocument_test_add_tests (void);
void tprocessing_instruction_test_add_tests (void);
void serializable_property_bool_test_add_tests (void);
void serializable_property_double_test_add_tests (void);
void serializable_property_float_test_add_tests (void);
void serializable_property_int_test_add_tests (void);
void serializable_property_value_list_test_add_tests (void);
void serializable_property_enum_test_add_tests (void);
void gdocument_test_add_tests (void);
void gelement_test_add_tests (void);
void gattribute_test_add_tests (void);
void html_document_test_add_tests (void);
GXmlxDocument* gxml_test_get_doc (const gchar* path);
gchar* gxml_test_get_test_dir (void);
GXmlxDocument* gxml_test_get_doc_with_ns (void);
GXmlxAttr* gxml_test_get_attr (const gchar* name, const gchar* value, GXmlxDocument* doc);
GXmlxElement* gxml_test_get_elem_new_doc (const gchar* name, GXmlxDocument** doc);
GXmlxElement* gxml_test_get_elem (const gchar* name, GXmlxDocument* doc);
GXmlxText* gxml_test_get_text_new_doc (const gchar* data, GXmlxDocument** doc);
GXmlxText* gxml_test_get_text (const gchar* data, GXmlxDocument* doc);
GXmlTest* gxml_test_new (void);
GXmlTest* gxml_test_construct (GType object_type);
static void gxml_test_finalize (GXmlTest* obj);


void gxml_test_GXmlLogFunc (const gchar* log_domain, GLogLevelFlags log_levels, const gchar* message) {
#line 27 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	g_return_if_fail (message != NULL);
#line 138 "GXmlTest.c"
}


void gxml_test_test_error (GXmlDomException expected) {
	GXmlDomException _tmp0_ = 0;
	GXmlDomException _tmp1_ = 0;
#line 32 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_tmp0_ = expected;
#line 32 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_tmp1_ = gxml_last_error;
#line 32 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	if (_tmp0_ != _tmp1_) {
#line 151 "GXmlTest.c"
		FILE* _tmp2_ = NULL;
		GXmlDomException _tmp3_ = 0;
		GEnumValue* _tmp4_;
		GXmlDomException _tmp5_ = 0;
		GEnumValue* _tmp6_;
		GXmlDomException _tmp7_ = 0;
		GEnumValue* _tmp8_;
		GXmlDomException _tmp9_ = 0;
		GEnumValue* _tmp10_;
#line 33 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		_tmp2_ = stderr;
#line 33 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		_tmp3_ = expected;
#line 33 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		_tmp4_ = g_enum_get_value (g_type_class_ref (GXML_TYPE_DOM_EXCEPTION), _tmp3_);
#line 33 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		_tmp5_ = gxml_last_error;
#line 33 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		_tmp6_ = g_enum_get_value (g_type_class_ref (GXML_TYPE_DOM_EXCEPTION), _tmp5_);
#line 33 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		fprintf (_tmp2_, "Expected last error [%s] but found [%s]", (_tmp4_ != NULL) ? _tmp4_->value_name : NULL, (_tmp6_ != NULL) ? _tmp6_->value_name : NULL);
#line 34 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		_tmp7_ = expected;
#line 34 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		_tmp8_ = g_enum_get_value (g_type_class_ref (GXML_TYPE_DOM_EXCEPTION), _tmp7_);
#line 34 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		_tmp9_ = gxml_last_error;
#line 34 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		_tmp10_ = g_enum_get_value (g_type_class_ref (GXML_TYPE_DOM_EXCEPTION), _tmp9_);
#line 34 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		g_test_message ("Expected last error [%s] but found [%s]", (_tmp8_ != NULL) ? _tmp8_->value_name : NULL, (_tmp10_ != NULL) ? _tmp10_->value_name : NULL);
#line 35 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		g_test_fail ();
#line 185 "GXmlTest.c"
	}
#line 39 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	gxml_last_error = GXML_DOM_EXCEPTION_NONE;
#line 189 "GXmlTest.c"
}


static void _gxml_test_GXmlLogFunc_glog_func (const gchar* log_domain, GLogLevelFlags log_levels, const gchar* message, gpointer self) {
#line 49 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	gxml_test_GXmlLogFunc (log_domain, log_levels, message);
#line 196 "GXmlTest.c"
}


gint gxml_test_main (gchar** args, int args_length1) {
	gint result = 0;
#line 46 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	g_test_init (&args_length1, &args, NULL);
#line 49 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	g_log_set_handler ("gxml", G_LOG_LEVEL_WARNING, _gxml_test_GXmlLogFunc_glog_func, NULL);
#line 50 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	g_log_set_always_fatal ((G_LOG_FLAG_RECURSION | G_LOG_LEVEL_ERROR) | G_LOG_LEVEL_CRITICAL);
#line 52 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	document_test_add_tests ();
#line 53 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	node_test_add_tests ();
#line 54 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	element_test_add_tests ();
#line 55 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	attr_test_add_tests ();
#line 56 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	namespace_test_add_tests ();
#line 57 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	node_list_test_add_tests ();
#line 58 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	text_test_add_tests ();
#line 59 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	character_data_test_add_tests ();
#line 60 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	vala_libxml2_test_add_tests ();
#line 61 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	serializable_test_add_tests ();
#line 62 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	serializable_object_model_test_add_tests ();
#line 63 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	serializable_object_model_tdocument_test_add_tests ();
#line 64 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	serializable_gee_tree_map_test_add_tests ();
#line 65 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	serializable_gee_hash_map_test_add_tests ();
#line 66 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	serializable_gee_dual_key_map_test_add_tests ();
#line 67 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	serializable_gee_array_list_test_add_tests ();
#line 68 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	serializable_gee_collections_test_add_tests ();
#line 69 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	serializable_gee_collections_tdocument_test_add_tests ();
#line 70 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	serializable_basic_type_test_add_tests ();
#line 71 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	serializable_enumeration_test_add_tests ();
#line 72 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	performance_add_tests ();
#line 73 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	telement_test_add_tests ();
#line 74 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	tcdata_test_add_tests ();
#line 75 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	tcomment_test_add_tests ();
#line 76 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	tdocument_test_add_tests ();
#line 77 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	tprocessing_instruction_test_add_tests ();
#line 78 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	serializable_property_bool_test_add_tests ();
#line 79 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	serializable_property_double_test_add_tests ();
#line 80 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	serializable_property_float_test_add_tests ();
#line 81 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	serializable_property_int_test_add_tests ();
#line 82 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	serializable_property_value_list_test_add_tests ();
#line 83 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	serializable_property_enum_test_add_tests ();
#line 84 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	gdocument_test_add_tests ();
#line 85 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	gelement_test_add_tests ();
#line 86 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	gattribute_test_add_tests ();
#line 87 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	html_document_test_add_tests ();
#line 89 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	g_test_run ();
#line 91 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	result = 0;
#line 91 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	return result;
#line 286 "GXmlTest.c"
}


int main (int argc, char ** argv) {
#if !GLIB_CHECK_VERSION (2,35,0)
	g_type_init ();
#endif
#line 42 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	return gxml_test_main (argv, argc);
#line 296 "GXmlTest.c"
}


GXmlxDocument* gxml_test_get_doc (const gchar* path) {
	GXmlxDocument* result = NULL;
	GXmlxDocument* doc = NULL;
	GError * _inner_error_ = NULL;
#line 95 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	doc = NULL;
#line 306 "GXmlTest.c"
	{
		gchar* _tmp0_ = NULL;
		const gchar* _tmp1_ = NULL;
		GXmlxDocument* _tmp7_ = NULL;
		GXmlxDocument* _tmp8_ = NULL;
		GXmlxDocument* _tmp9_ = NULL;
#line 97 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		_tmp1_ = path;
#line 97 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		if (_tmp1_ != NULL) {
#line 317 "GXmlTest.c"
			const gchar* _tmp2_ = NULL;
			gchar* _tmp3_ = NULL;
#line 97 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
			_tmp2_ = path;
#line 97 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
			_tmp3_ = g_strdup (_tmp2_);
#line 97 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
			_g_free0 (_tmp0_);
#line 97 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
			_tmp0_ = _tmp3_;
#line 328 "GXmlTest.c"
		} else {
			gchar* _tmp4_ = NULL;
			gchar* _tmp5_ = NULL;
			gchar* _tmp6_ = NULL;
#line 98 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
			_tmp4_ = gxml_test_get_test_dir ();
#line 98 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
			_tmp5_ = _tmp4_;
#line 98 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
			_tmp6_ = g_strconcat (_tmp5_, "/test.xml", NULL);
#line 98 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
			_g_free0 (_tmp0_);
#line 98 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
			_tmp0_ = _tmp6_;
#line 98 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
			_g_free0 (_tmp5_);
#line 345 "GXmlTest.c"
		}
#line 97 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		_tmp8_ = gxml_xdocument_new_from_path (_tmp0_, &_inner_error_);
#line 97 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		_tmp7_ = _tmp8_;
#line 97 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 97 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
			_g_free0 (_tmp0_);
#line 97 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
			if (_inner_error_->domain == GXML_ERROR) {
#line 357 "GXmlTest.c"
				goto __catch12_gxml_error;
			}
#line 97 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
			_g_free0 (_tmp0_);
#line 97 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
			_g_object_unref0 (doc);
#line 97 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 97 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
			g_clear_error (&_inner_error_);
#line 97 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
			return NULL;
#line 370 "GXmlTest.c"
		}
#line 97 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		_tmp9_ = _tmp7_;
#line 97 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		_tmp7_ = NULL;
#line 97 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		_g_object_unref0 (doc);
#line 97 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		doc = _tmp9_;
#line 96 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		_g_object_unref0 (_tmp7_);
#line 96 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		_g_free0 (_tmp0_);
#line 384 "GXmlTest.c"
	}
	goto __finally12;
	__catch12_gxml_error:
	{
		GError* e = NULL;
		const gchar* _tmp10_ = NULL;
#line 96 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		e = _inner_error_;
#line 96 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		_inner_error_ = NULL;
#line 100 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		_tmp10_ = e->message;
#line 100 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		g_warning ("GXmlTest.vala:100: %s", _tmp10_);
#line 101 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		g_assert_not_reached ();
#line 96 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		_g_error_free0 (e);
#line 403 "GXmlTest.c"
	}
	__finally12:
#line 96 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 96 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		_g_object_unref0 (doc);
#line 96 "/home/despinosa/Proyectos/gxml/test/GXmlTest.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 96 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		g_clear_error (&_inner_error_);
#line 96 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		return NULL;
#line 416 "GXmlTest.c"
	}
#line 103 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	result = doc;
#line 103 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	return result;
#line 422 "GXmlTest.c"
}


GXmlxDocument* gxml_test_get_doc_with_ns (void) {
	GXmlxDocument* result = NULL;
	gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	GXmlxDocument* _tmp4_ = NULL;
	GXmlxDocument* _tmp5_ = NULL;
#line 107 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_tmp0_ = gxml_test_get_test_dir ();
#line 107 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_tmp1_ = _tmp0_;
#line 107 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_tmp2_ = g_strconcat (_tmp1_, "/test_with_ns.xml", NULL);
#line 107 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_tmp3_ = _tmp2_;
#line 107 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_tmp4_ = gxml_test_get_doc (_tmp3_);
#line 107 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_tmp5_ = _tmp4_;
#line 107 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_g_free0 (_tmp3_);
#line 107 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_g_free0 (_tmp1_);
#line 107 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	result = _tmp5_;
#line 107 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	return result;
#line 454 "GXmlTest.c"
}


gchar* gxml_test_get_test_dir (void) {
	gchar* result = NULL;
	gboolean _tmp0_ = FALSE;
#line 111 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	if (TEST_DIR == NULL) {
#line 111 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		_tmp0_ = TRUE;
#line 465 "GXmlTest.c"
	} else {
#line 111 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		_tmp0_ = g_strcmp0 (TEST_DIR, "") == 0;
#line 469 "GXmlTest.c"
	}
#line 111 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	if (_tmp0_) {
#line 473 "GXmlTest.c"
		gchar* _tmp1_ = NULL;
#line 112 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		_tmp1_ = g_strdup (".");
#line 112 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		result = _tmp1_;
#line 112 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		return result;
#line 481 "GXmlTest.c"
	} else {
		gchar* _tmp2_ = NULL;
#line 114 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		_tmp2_ = g_strdup (TEST_DIR);
#line 114 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		result = _tmp2_;
#line 114 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		return result;
#line 490 "GXmlTest.c"
	}
}


GXmlxAttr* gxml_test_get_attr (const gchar* name, const gchar* value, GXmlxDocument* doc) {
	GXmlxAttr* result = NULL;
	GXmlxAttr* attr = NULL;
	GXmlxDocument* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	GXmlxAttr* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
#line 122 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 122 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	g_return_val_if_fail (value != NULL, NULL);
#line 122 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	g_return_val_if_fail (doc != NULL, NULL);
#line 123 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_tmp0_ = doc;
#line 123 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_tmp1_ = name;
#line 123 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_tmp2_ = gxml_xdocument_create_attribute (_tmp0_, _tmp1_);
#line 123 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	attr = _tmp2_;
#line 124 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_tmp3_ = value;
#line 124 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	gxml_xnode_set_value ((GXmlxNode*) attr, _tmp3_);
#line 125 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	result = attr;
#line 125 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	return result;
#line 524 "GXmlTest.c"
}


GXmlxElement* gxml_test_get_elem_new_doc (const gchar* name, GXmlxDocument** doc) {
	GXmlxDocument* _vala_doc = NULL;
	GXmlxElement* result = NULL;
	const gchar* _tmp0_ = NULL;
	GXmlxDocument* _tmp1_ = NULL;
	GXmlxElement* _tmp2_ = NULL;
#line 128 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 129 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_tmp0_ = name;
#line 129 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_tmp1_ = gxml_test_get_doc (NULL);
#line 129 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_g_object_unref0 (_vala_doc);
#line 129 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_vala_doc = _tmp1_;
#line 129 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_tmp2_ = gxml_test_get_elem (_tmp0_, _vala_doc);
#line 129 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	result = _tmp2_;
#line 129 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	if (doc) {
#line 129 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		*doc = _vala_doc;
#line 552 "GXmlTest.c"
	} else {
#line 129 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		_g_object_unref0 (_vala_doc);
#line 556 "GXmlTest.c"
	}
#line 129 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	return result;
#line 560 "GXmlTest.c"
}


GXmlxElement* gxml_test_get_elem (const gchar* name, GXmlxDocument* doc) {
	GXmlxElement* result = NULL;
	GXmlNode* _tmp0_ = NULL;
	GXmlxDocument* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	GXmlNode* _tmp3_ = NULL;
	GXmlxElement* elem = NULL;
	GXmlNode* _tmp4_ = NULL;
	GError * _inner_error_ = NULL;
#line 132 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 132 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	g_return_val_if_fail (doc != NULL, NULL);
#line 133 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_tmp1_ = doc;
#line 133 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_tmp2_ = name;
#line 133 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_tmp3_ = gxml_document_create_element ((GXmlDocument*) _tmp1_, _tmp2_, &_inner_error_);
#line 133 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_tmp0_ = _tmp3_;
#line 133 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 133 "/home/despinosa/Proyectos/gxml/test/GXmlTest.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 133 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		g_clear_error (&_inner_error_);
#line 133 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		return NULL;
#line 593 "GXmlTest.c"
	}
#line 133 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_tmp4_ = _tmp0_;
#line 133 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_tmp0_ = NULL;
#line 133 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	elem = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GXML_TYPE_XELEMENT, GXmlxElement);
#line 134 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	result = elem;
#line 134 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_g_object_unref0 (_tmp0_);
#line 134 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	return result;
#line 607 "GXmlTest.c"
}


GXmlxText* gxml_test_get_text_new_doc (const gchar* data, GXmlxDocument** doc) {
	GXmlxDocument* _vala_doc = NULL;
	GXmlxText* result = NULL;
	const gchar* _tmp0_ = NULL;
	GXmlxDocument* _tmp1_ = NULL;
	GXmlxText* _tmp2_ = NULL;
#line 137 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	g_return_val_if_fail (data != NULL, NULL);
#line 138 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_tmp0_ = data;
#line 138 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_tmp1_ = gxml_test_get_doc (NULL);
#line 138 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_g_object_unref0 (_vala_doc);
#line 138 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_vala_doc = _tmp1_;
#line 138 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_tmp2_ = gxml_test_get_text (_tmp0_, _vala_doc);
#line 138 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	result = _tmp2_;
#line 138 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	if (doc) {
#line 138 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		*doc = _vala_doc;
#line 635 "GXmlTest.c"
	} else {
#line 138 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		_g_object_unref0 (_vala_doc);
#line 639 "GXmlTest.c"
	}
#line 138 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	return result;
#line 643 "GXmlTest.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 142 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	return self ? g_object_ref (self) : NULL;
#line 650 "GXmlTest.c"
}


GXmlxText* gxml_test_get_text (const gchar* data, GXmlxDocument* doc) {
	GXmlxText* result = NULL;
	GXmlxText* txt = NULL;
	GXmlxDocument* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	GXmlxText* _tmp2_ = NULL;
	GXmlxText* _tmp3_ = NULL;
#line 141 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	g_return_val_if_fail (data != NULL, NULL);
#line 141 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	g_return_val_if_fail (doc != NULL, NULL);
#line 142 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_tmp0_ = doc;
#line 142 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_tmp1_ = data;
#line 142 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_tmp2_ = gxml_xdocument_create_text_node (_tmp0_, _tmp1_);
#line 142 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 142 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	txt = _tmp3_;
#line 143 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	result = txt;
#line 143 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	return result;
#line 679 "GXmlTest.c"
}


GXmlTest* gxml_test_construct (GType object_type) {
	GXmlTest* self = NULL;
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	self = (GXmlTest*) g_type_create_instance (object_type);
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	return self;
#line 689 "GXmlTest.c"
}


GXmlTest* gxml_test_new (void) {
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	return gxml_test_construct (TYPE_GXML_TEST);
#line 696 "GXmlTest.c"
}


static void value_gxml_test_init (GValue* value) {
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	value->data[0].v_pointer = NULL;
#line 703 "GXmlTest.c"
}


static void value_gxml_test_free_value (GValue* value) {
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	if (value->data[0].v_pointer) {
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		gxml_test_unref (value->data[0].v_pointer);
#line 712 "GXmlTest.c"
	}
}


static void value_gxml_test_copy_value (const GValue* src_value, GValue* dest_value) {
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	if (src_value->data[0].v_pointer) {
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		dest_value->data[0].v_pointer = gxml_test_ref (src_value->data[0].v_pointer);
#line 722 "GXmlTest.c"
	} else {
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		dest_value->data[0].v_pointer = NULL;
#line 726 "GXmlTest.c"
	}
}


static gpointer value_gxml_test_peek_pointer (const GValue* value) {
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	return value->data[0].v_pointer;
#line 734 "GXmlTest.c"
}


static gchar* value_gxml_test_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	if (collect_values[0].v_pointer) {
#line 741 "GXmlTest.c"
		GXmlTest* object;
		object = collect_values[0].v_pointer;
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		if (object->parent_instance.g_class == NULL) {
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 748 "GXmlTest.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.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 752 "GXmlTest.c"
		}
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		value->data[0].v_pointer = gxml_test_ref (object);
#line 756 "GXmlTest.c"
	} else {
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		value->data[0].v_pointer = NULL;
#line 760 "GXmlTest.c"
	}
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	return NULL;
#line 764 "GXmlTest.c"
}


static gchar* value_gxml_test_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	GXmlTest** object_p;
	object_p = collect_values[0].v_pointer;
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	if (!object_p) {
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 775 "GXmlTest.c"
	}
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	if (!value->data[0].v_pointer) {
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		*object_p = NULL;
#line 781 "GXmlTest.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		*object_p = value->data[0].v_pointer;
#line 785 "GXmlTest.c"
	} else {
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		*object_p = gxml_test_ref (value->data[0].v_pointer);
#line 789 "GXmlTest.c"
	}
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	return NULL;
#line 793 "GXmlTest.c"
}


GParamSpec* param_spec_gxml_test (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	ParamSpecGXmlTest* spec;
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	g_return_val_if_fail (g_type_is_a (object_type, TYPE_GXML_TEST), NULL);
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	return G_PARAM_SPEC (spec);
#line 807 "GXmlTest.c"
}


gpointer value_get_gxml_test (const GValue* value) {
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_GXML_TEST), NULL);
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	return value->data[0].v_pointer;
#line 816 "GXmlTest.c"
}


void value_set_gxml_test (GValue* value, gpointer v_object) {
	GXmlTest* old;
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_GXML_TEST));
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	old = value->data[0].v_pointer;
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	if (v_object) {
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_GXML_TEST));
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		value->data[0].v_pointer = v_object;
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		gxml_test_ref (value->data[0].v_pointer);
#line 836 "GXmlTest.c"
	} else {
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		value->data[0].v_pointer = NULL;
#line 840 "GXmlTest.c"
	}
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	if (old) {
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		gxml_test_unref (old);
#line 846 "GXmlTest.c"
	}
}


void value_take_gxml_test (GValue* value, gpointer v_object) {
	GXmlTest* old;
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_GXML_TEST));
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	old = value->data[0].v_pointer;
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	if (v_object) {
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_GXML_TEST));
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		value->data[0].v_pointer = v_object;
#line 865 "GXmlTest.c"
	} else {
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		value->data[0].v_pointer = NULL;
#line 869 "GXmlTest.c"
	}
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	if (old) {
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		gxml_test_unref (old);
#line 875 "GXmlTest.c"
	}
}


static void gxml_test_class_init (GXmlTestClass * klass) {
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	gxml_test_parent_class = g_type_class_peek_parent (klass);
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	((GXmlTestClass *) klass)->finalize = gxml_test_finalize;
#line 885 "GXmlTest.c"
}


static void gxml_test_instance_init (GXmlTest * self) {
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	self->ref_count = 1;
#line 892 "GXmlTest.c"
}


static void gxml_test_finalize (GXmlTest* obj) {
	GXmlTest * self;
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_GXML_TEST, GXmlTest);
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	g_signal_handlers_destroy (self);
#line 902 "GXmlTest.c"
}


GType gxml_test_get_type (void) {
	static volatile gsize gxml_test_type_id__volatile = 0;
	if (g_once_init_enter (&gxml_test_type_id__volatile)) {
		static const GTypeValueTable g_define_type_value_table = { value_gxml_test_init, value_gxml_test_free_value, value_gxml_test_copy_value, value_gxml_test_peek_pointer, "p", value_gxml_test_collect_value, "p", value_gxml_test_lcopy_value };
		static const GTypeInfo g_define_type_info = { sizeof (GXmlTestClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gxml_test_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GXmlTest), 0, (GInstanceInitFunc) gxml_test_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 gxml_test_type_id;
		gxml_test_type_id = g_type_register_fundamental (g_type_fundamental_next (), "GXmlTest", &g_define_type_info, &g_define_type_fundamental_info, 0);
		g_once_init_leave (&gxml_test_type_id__volatile, gxml_test_type_id);
	}
	return gxml_test_type_id__volatile;
}


gpointer gxml_test_ref (gpointer instance) {
	GXmlTest* self;
	self = instance;
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	g_atomic_int_inc (&self->ref_count);
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	return instance;
#line 927 "GXmlTest.c"
}


void gxml_test_unref (gpointer instance) {
	GXmlTest* self;
	self = instance;
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		GXML_TEST_GET_CLASS (self)->finalize (self);
#line 26 "/home/despinosa/Proyectos/gxml/test/GXmlTest.vala"
		g_type_free_instance ((GTypeInstance *) self);
#line 940 "GXmlTest.c"
	}
}



