/* tracker-xml-cursor.c generated by valac 0.38.1, the Vala compiler
 * generated from tracker-xml-cursor.vala, do not modify */

/*
 * Copyright (C) 2016 Carlos Garnacho <carlosg@gnome.org>
 *
 * 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.
 *
 * Author: Carlos Garnacho <carlosg@gnome.org>
 */

#include <glib.h>
#include <glib-object.h>
#include "libtracker-sparql/tracker-sparql.h"
#include <libxml/tree.h>
#include <stdlib.h>
#include <string.h>
#include <gio/gio.h>
#include <libxml/parser.h>


#define TRACKER_REMOTE_TYPE_XML_CURSOR (tracker_remote_xml_cursor_get_type ())
#define TRACKER_REMOTE_XML_CURSOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_REMOTE_TYPE_XML_CURSOR, TrackerRemoteXmlCursor))
#define TRACKER_REMOTE_XML_CURSOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_REMOTE_TYPE_XML_CURSOR, TrackerRemoteXmlCursorClass))
#define TRACKER_REMOTE_IS_XML_CURSOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_REMOTE_TYPE_XML_CURSOR))
#define TRACKER_REMOTE_IS_XML_CURSOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_REMOTE_TYPE_XML_CURSOR))
#define TRACKER_REMOTE_XML_CURSOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_REMOTE_TYPE_XML_CURSOR, TrackerRemoteXmlCursorClass))

typedef struct _TrackerRemoteXmlCursor TrackerRemoteXmlCursor;
typedef struct _TrackerRemoteXmlCursorClass TrackerRemoteXmlCursorClass;
typedef struct _TrackerRemoteXmlCursorPrivate TrackerRemoteXmlCursorPrivate;
enum  {
	TRACKER_REMOTE_XML_CURSOR_DUMMY_PROPERTY,
	TRACKER_REMOTE_XML_CURSOR_N_COLUMNS_PROPERTY,
	TRACKER_REMOTE_XML_CURSOR_LAST_PROPERTY
};
static GParamSpec* tracker_remote_xml_cursor_properties[TRACKER_REMOTE_XML_CURSOR_LAST_PROPERTY];
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _TrackerRemoteXmlCursorNextAsyncData TrackerRemoteXmlCursorNextAsyncData;
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

struct _TrackerRemoteXmlCursor {
	TrackerSparqlCursor parent_instance;
	TrackerRemoteXmlCursorPrivate * priv;
};

struct _TrackerRemoteXmlCursorClass {
	TrackerSparqlCursorClass parent_class;
};

struct _TrackerRemoteXmlCursorPrivate {
	xmlNode* _results;
	xmlNode* _cur_row;
	GHashTable* _cur_row_map;
	gchar** _vars;
	gint _vars_length1;
	gint __vars_size_;
};

struct _TrackerRemoteXmlCursorNextAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	TrackerRemoteXmlCursor* self;
	GCancellable* cancellable;
	gboolean result;
	gboolean _tmp0_;
	GCancellable* _tmp1_;
	gboolean _tmp2_;
	GError * _inner_error_;
};


static gpointer tracker_remote_xml_cursor_parent_class = NULL;

GType tracker_remote_xml_cursor_get_type (void) G_GNUC_CONST;
#define TRACKER_REMOTE_XML_CURSOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TRACKER_REMOTE_TYPE_XML_CURSOR, TrackerRemoteXmlCursorPrivate))
#define TRACKER_REMOTE_XML_CURSOR_XSD_NS "http://www.w3.org/2001/XMLSchema#"
static xmlNode* tracker_remote_xml_cursor_find_first_child_node (TrackerRemoteXmlCursor* self, xmlNode* node);
static xmlNode* tracker_remote_xml_cursor_find_next_node (TrackerRemoteXmlCursor* self, xmlNode* node);
static xmlNode* tracker_remote_xml_cursor_lookup_child_node (TrackerRemoteXmlCursor* self, xmlNode* node, const gchar* name);
static xmlAttr* tracker_remote_xml_cursor_lookup_attribute (TrackerRemoteXmlCursor* self, xmlNode* node, const gchar* name);
static void tracker_remote_xml_cursor_parse_vars (TrackerRemoteXmlCursor* self, xmlNode* vars);
static void _vala_array_add1 (gchar** * array, int* length, int* size, gchar* value);
TrackerRemoteXmlCursor* tracker_remote_xml_cursor_new (const gchar* document, glong length, GError** error);
TrackerRemoteXmlCursor* tracker_remote_xml_cursor_construct (GType object_type, const gchar* document, glong length, GError** error);
static void _g_free0_ (gpointer var);
static TrackerSparqlValueType tracker_remote_xml_cursor_real_get_value_type (TrackerSparqlCursor* base, gint column);
static const gchar* tracker_remote_xml_cursor_real_get_variable_name (TrackerSparqlCursor* base, gint column);
static const gchar* tracker_remote_xml_cursor_real_get_string (TrackerSparqlCursor* base, gint column, glong* length);
static gboolean tracker_remote_xml_cursor_real_next (TrackerSparqlCursor* base, GCancellable* cancellable, GError** error);
static void tracker_remote_xml_cursor_real_next_async_data_free (gpointer _data);
static void tracker_remote_xml_cursor_real_next_async (TrackerSparqlCursor* base, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean tracker_remote_xml_cursor_real_next_async_co (TrackerRemoteXmlCursorNextAsyncData* _data_);
static void tracker_remote_xml_cursor_real_rewind (TrackerSparqlCursor* base);
static void tracker_remote_xml_cursor_real_close (TrackerSparqlCursor* base);
static void tracker_remote_xml_cursor_finalize (GObject * obj);
static void _vala_tracker_remote_xml_cursor_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);


static xmlNode* tracker_remote_xml_cursor_find_first_child_node (TrackerRemoteXmlCursor* self, xmlNode* node) {
	xmlNode* result = NULL;
#line 30 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 127 "tracker-xml-cursor.c"
	{
		xmlNode* iter = NULL;
		xmlNode* _tmp0_;
		xmlNode* _tmp1_;
#line 31 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp0_ = node;
#line 31 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp1_ = _tmp0_->children;
#line 31 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		iter = _tmp1_;
#line 138 "tracker-xml-cursor.c"
		{
			gboolean _tmp2_ = FALSE;
#line 31 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			_tmp2_ = TRUE;
#line 31 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			while (TRUE) {
#line 145 "tracker-xml-cursor.c"
				xmlNode* _tmp5_;
				xmlNode* _tmp6_;
				xmlElementType _tmp7_;
				xmlNode* _tmp8_;
#line 31 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (!_tmp2_) {
#line 152 "tracker-xml-cursor.c"
					xmlNode* _tmp3_;
					xmlNode* _tmp4_;
#line 31 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp3_ = iter;
#line 31 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp4_ = _tmp3_->next;
#line 31 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					iter = _tmp4_;
#line 161 "tracker-xml-cursor.c"
				}
#line 31 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp2_ = FALSE;
#line 31 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp5_ = iter;
#line 31 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (!(_tmp5_ != NULL)) {
#line 31 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					break;
#line 171 "tracker-xml-cursor.c"
				}
#line 32 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp6_ = iter;
#line 32 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp7_ = _tmp6_->type;
#line 32 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (_tmp7_ != XML_ELEMENT_NODE) {
#line 33 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					continue;
#line 181 "tracker-xml-cursor.c"
				}
#line 34 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp8_ = iter;
#line 34 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				result = _tmp8_;
#line 34 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				return result;
#line 189 "tracker-xml-cursor.c"
			}
		}
	}
#line 37 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	result = NULL;
#line 37 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	return result;
#line 197 "tracker-xml-cursor.c"
}


static xmlNode* tracker_remote_xml_cursor_find_next_node (TrackerRemoteXmlCursor* self, xmlNode* node) {
	xmlNode* result = NULL;
#line 40 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 205 "tracker-xml-cursor.c"
	{
		xmlNode* iter = NULL;
		xmlNode* _tmp0_;
		xmlNode* _tmp1_;
#line 41 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp0_ = node;
#line 41 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp1_ = _tmp0_->next;
#line 41 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		iter = _tmp1_;
#line 216 "tracker-xml-cursor.c"
		{
			gboolean _tmp2_ = FALSE;
#line 41 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			_tmp2_ = TRUE;
#line 41 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			while (TRUE) {
#line 223 "tracker-xml-cursor.c"
				xmlNode* _tmp5_;
				xmlNode* _tmp6_;
				xmlElementType _tmp7_;
				xmlNode* _tmp8_;
#line 41 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (!_tmp2_) {
#line 230 "tracker-xml-cursor.c"
					xmlNode* _tmp3_;
					xmlNode* _tmp4_;
#line 41 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp3_ = iter;
#line 41 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp4_ = _tmp3_->next;
#line 41 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					iter = _tmp4_;
#line 239 "tracker-xml-cursor.c"
				}
#line 41 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp2_ = FALSE;
#line 41 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp5_ = iter;
#line 41 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (!(_tmp5_ != NULL)) {
#line 41 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					break;
#line 249 "tracker-xml-cursor.c"
				}
#line 42 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp6_ = iter;
#line 42 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp7_ = _tmp6_->type;
#line 42 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (_tmp7_ != XML_ELEMENT_NODE) {
#line 43 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					continue;
#line 259 "tracker-xml-cursor.c"
				}
#line 44 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp8_ = iter;
#line 44 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				result = _tmp8_;
#line 44 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				return result;
#line 267 "tracker-xml-cursor.c"
			}
		}
	}
#line 47 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	result = NULL;
#line 47 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	return result;
#line 275 "tracker-xml-cursor.c"
}


static xmlNode* tracker_remote_xml_cursor_lookup_child_node (TrackerRemoteXmlCursor* self, xmlNode* node, const gchar* name) {
	xmlNode* result = NULL;
#line 50 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 50 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 285 "tracker-xml-cursor.c"
	{
		xmlNode* iter = NULL;
		xmlNode* _tmp0_;
		xmlNode* _tmp1_;
#line 51 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp0_ = node;
#line 51 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp1_ = _tmp0_->children;
#line 51 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		iter = _tmp1_;
#line 296 "tracker-xml-cursor.c"
		{
			gboolean _tmp2_ = FALSE;
#line 51 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			_tmp2_ = TRUE;
#line 51 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			while (TRUE) {
#line 303 "tracker-xml-cursor.c"
				xmlNode* _tmp5_;
				xmlNode* _tmp6_;
				xmlElementType _tmp7_;
				xmlNode* _tmp8_;
				const gchar* _tmp9_;
				const gchar* _tmp10_;
#line 51 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (!_tmp2_) {
#line 312 "tracker-xml-cursor.c"
					xmlNode* _tmp3_;
					xmlNode* _tmp4_;
#line 51 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp3_ = iter;
#line 51 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp4_ = _tmp3_->next;
#line 51 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					iter = _tmp4_;
#line 321 "tracker-xml-cursor.c"
				}
#line 51 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp2_ = FALSE;
#line 51 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp5_ = iter;
#line 51 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (!(_tmp5_ != NULL)) {
#line 51 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					break;
#line 331 "tracker-xml-cursor.c"
				}
#line 52 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp6_ = iter;
#line 52 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp7_ = _tmp6_->type;
#line 52 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (_tmp7_ != XML_ELEMENT_NODE) {
#line 53 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					continue;
#line 341 "tracker-xml-cursor.c"
				}
#line 54 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp8_ = iter;
#line 54 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp9_ = _tmp8_->name;
#line 54 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp10_ = name;
#line 54 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (g_strcmp0 (_tmp9_, _tmp10_) == 0) {
#line 351 "tracker-xml-cursor.c"
					xmlNode* _tmp11_;
#line 55 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp11_ = iter;
#line 55 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					result = _tmp11_;
#line 55 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					return result;
#line 359 "tracker-xml-cursor.c"
				}
			}
		}
	}
#line 58 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	result = NULL;
#line 58 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	return result;
#line 368 "tracker-xml-cursor.c"
}


static xmlAttr* tracker_remote_xml_cursor_lookup_attribute (TrackerRemoteXmlCursor* self, xmlNode* node, const gchar* name) {
	xmlAttr* result = NULL;
#line 61 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 61 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 378 "tracker-xml-cursor.c"
	{
		xmlAttr* iter = NULL;
		xmlNode* _tmp0_;
		xmlAttr* _tmp1_;
#line 62 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp0_ = node;
#line 62 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp1_ = _tmp0_->properties;
#line 62 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		iter = _tmp1_;
#line 389 "tracker-xml-cursor.c"
		{
			gboolean _tmp2_ = FALSE;
#line 62 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			_tmp2_ = TRUE;
#line 62 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			while (TRUE) {
#line 396 "tracker-xml-cursor.c"
				xmlAttr* _tmp5_;
				xmlAttr* _tmp6_;
				const gchar* _tmp7_;
				const gchar* _tmp8_;
#line 62 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (!_tmp2_) {
#line 403 "tracker-xml-cursor.c"
					xmlAttr* _tmp3_;
					xmlAttr* _tmp4_;
#line 62 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp3_ = iter;
#line 62 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp4_ = _tmp3_->next;
#line 62 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					iter = _tmp4_;
#line 412 "tracker-xml-cursor.c"
				}
#line 62 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp2_ = FALSE;
#line 62 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp5_ = iter;
#line 62 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (!(_tmp5_ != NULL)) {
#line 62 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					break;
#line 422 "tracker-xml-cursor.c"
				}
#line 63 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp6_ = iter;
#line 63 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp7_ = _tmp6_->name;
#line 63 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp8_ = name;
#line 63 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (g_strcmp0 (_tmp7_, _tmp8_) == 0) {
#line 432 "tracker-xml-cursor.c"
					xmlAttr* _tmp9_;
#line 64 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp9_ = iter;
#line 64 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					result = _tmp9_;
#line 64 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					return result;
#line 440 "tracker-xml-cursor.c"
				}
			}
		}
	}
#line 67 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	result = NULL;
#line 67 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	return result;
#line 449 "tracker-xml-cursor.c"
}


static void _vala_array_add1 (gchar** * array, int* length, int* size, gchar* value) {
#line 80 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	if ((*length) == (*size)) {
#line 80 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 80 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		*array = g_renew (gchar*, *array, (*size) + 1);
#line 460 "tracker-xml-cursor.c"
	}
#line 80 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	(*array)[(*length)++] = value;
#line 80 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	(*array)[*length] = NULL;
#line 466 "tracker-xml-cursor.c"
}


static void tracker_remote_xml_cursor_parse_vars (TrackerRemoteXmlCursor* self, xmlNode* vars) {
#line 70 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	g_return_if_fail (self != NULL);
#line 473 "tracker-xml-cursor.c"
	{
		xmlNode* iter = NULL;
		xmlNode* _tmp0_;
		xmlNode* _tmp1_;
#line 71 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp0_ = vars;
#line 71 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp1_ = _tmp0_->children;
#line 71 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		iter = _tmp1_;
#line 484 "tracker-xml-cursor.c"
		{
			gboolean _tmp2_ = FALSE;
#line 71 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			_tmp2_ = TRUE;
#line 71 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			while (TRUE) {
#line 491 "tracker-xml-cursor.c"
				xmlNode* _tmp5_;
				gboolean _tmp6_ = FALSE;
				xmlNode* _tmp7_;
				const gchar* _tmp8_;
				xmlAttr* attr = NULL;
				xmlNode* _tmp11_;
				xmlAttr* _tmp12_;
				xmlAttr* _tmp13_;
				gchar** _tmp14_;
				gint _tmp14__length1;
				xmlAttr* _tmp15_;
				xmlNode* _tmp16_;
				const gchar* _tmp17_;
				gchar* _tmp18_;
#line 71 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (!_tmp2_) {
#line 508 "tracker-xml-cursor.c"
					xmlNode* _tmp3_;
					xmlNode* _tmp4_;
#line 71 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp3_ = iter;
#line 71 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp4_ = _tmp3_->next;
#line 71 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					iter = _tmp4_;
#line 517 "tracker-xml-cursor.c"
				}
#line 71 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp2_ = FALSE;
#line 71 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp5_ = iter;
#line 71 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (!(_tmp5_ != NULL)) {
#line 71 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					break;
#line 527 "tracker-xml-cursor.c"
				}
#line 72 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp7_ = iter;
#line 72 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp8_ = _tmp7_->name;
#line 72 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (g_strcmp0 (_tmp8_, "variable") != 0) {
#line 72 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp6_ = TRUE;
#line 537 "tracker-xml-cursor.c"
				} else {
					xmlNode* _tmp9_;
					xmlElementType _tmp10_;
#line 73 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp9_ = iter;
#line 73 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp10_ = _tmp9_->type;
#line 73 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp6_ = _tmp10_ != XML_ELEMENT_NODE;
#line 547 "tracker-xml-cursor.c"
				}
#line 72 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (_tmp6_) {
#line 74 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					continue;
#line 553 "tracker-xml-cursor.c"
				}
#line 76 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp11_ = iter;
#line 76 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp12_ = tracker_remote_xml_cursor_lookup_attribute (self, _tmp11_, "name");
#line 76 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				attr = _tmp12_;
#line 77 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp13_ = attr;
#line 77 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (_tmp13_ == NULL) {
#line 78 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					continue;
#line 567 "tracker-xml-cursor.c"
				}
#line 80 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp14_ = self->priv->_vars;
#line 80 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp14__length1 = self->priv->_vars_length1;
#line 80 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp15_ = attr;
#line 80 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp16_ = _tmp15_->children;
#line 80 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp17_ = _tmp16_->content;
#line 80 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp18_ = g_strdup (_tmp17_);
#line 80 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_vala_array_add1 (&self->priv->_vars, &self->priv->_vars_length1, &self->priv->__vars_size_, _tmp18_);
#line 583 "tracker-xml-cursor.c"
			}
		}
	}
}


static void _g_free0_ (gpointer var) {
#line 98 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	var = (g_free (var), NULL);
#line 593 "tracker-xml-cursor.c"
}


TrackerRemoteXmlCursor* tracker_remote_xml_cursor_construct (GType object_type, const gchar* document, glong length, GError** error) {
	TrackerRemoteXmlCursor * self = NULL;
	xmlDoc* doc = NULL;
	const gchar* _tmp0_;
	glong _tmp1_;
	xmlDoc* _tmp2_;
	xmlDoc* _tmp3_;
	xmlNode* root = NULL;
	xmlDoc* _tmp5_;
	xmlNode* _tmp6_;
	xmlNode* _tmp7_;
	xmlNode* vars = NULL;
	xmlNode* _tmp8_;
	GHashFunc _tmp9_;
	GEqualFunc _tmp10_;
	GHashTable* _tmp11_;
	GError * _inner_error_ = NULL;
#line 84 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	g_return_val_if_fail (document != NULL, NULL);
#line 84 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	self = (TrackerRemoteXmlCursor*) tracker_sparql_cursor_construct (object_type);
#line 85 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	xmlInitParser ();
#line 86 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp0_ = document;
#line 86 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp1_ = length;
#line 86 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp2_ = xmlParseMemory (_tmp0_, (gint) _tmp1_);
#line 86 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	doc = _tmp2_;
#line 88 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp3_ = doc;
#line 88 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	if (_tmp3_ == NULL) {
#line 632 "tracker-xml-cursor.c"
		GError* _tmp4_;
#line 89 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp4_ = g_error_new_literal (TRACKER_SPARQL_ERROR, TRACKER_SPARQL_ERROR_INTERNAL, "Could not parse XML document");
#line 89 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_inner_error_ = _tmp4_;
#line 89 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 89 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			g_propagate_error (error, _inner_error_);
#line 89 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			_g_object_unref0 (self);
#line 89 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			return NULL;
#line 646 "tracker-xml-cursor.c"
		} else {
#line 89 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.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 89 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			g_clear_error (&_inner_error_);
#line 89 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			return NULL;
#line 654 "tracker-xml-cursor.c"
		}
	}
#line 91 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp5_ = doc;
#line 91 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp6_ = xmlDocGetRootElement (_tmp5_);
#line 91 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	root = _tmp6_;
#line 92 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp7_ = tracker_remote_xml_cursor_lookup_child_node (self, root, "results");
#line 92 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	self->priv->_results = _tmp7_;
#line 94 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp8_ = tracker_remote_xml_cursor_lookup_child_node (self, root, "head");
#line 94 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	vars = _tmp8_;
#line 95 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	tracker_remote_xml_cursor_parse_vars (self, vars);
#line 96 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	xmlCleanupParser ();
#line 98 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp9_ = g_str_hash;
#line 98 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp10_ = g_str_equal;
#line 98 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp11_ = g_hash_table_new_full (_tmp9_, _tmp10_, _g_free0_, NULL);
#line 98 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_g_hash_table_unref0 (self->priv->_cur_row_map);
#line 98 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	self->priv->_cur_row_map = _tmp11_;
#line 84 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	return self;
#line 687 "tracker-xml-cursor.c"
}


TrackerRemoteXmlCursor* tracker_remote_xml_cursor_new (const gchar* document, glong length, GError** error) {
#line 84 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	return tracker_remote_xml_cursor_construct (TRACKER_REMOTE_TYPE_XML_CURSOR, document, length, error);
#line 694 "tracker-xml-cursor.c"
}


static TrackerSparqlValueType tracker_remote_xml_cursor_real_get_value_type (TrackerSparqlCursor* base, gint column) {
	TrackerRemoteXmlCursor * self;
	TrackerSparqlValueType result = 0;
	xmlNode* _tmp0_;
	gchar* variable = NULL;
	gchar** _tmp1_;
	gint _tmp1__length1;
	gint _tmp2_;
	const gchar* _tmp3_;
	gchar* _tmp4_;
	xmlNode* node = NULL;
	GHashTable* _tmp5_;
	const gchar* _tmp6_;
	gconstpointer _tmp7_;
	xmlNode* _tmp8_;
	xmlNode* _tmp9_;
	xmlNode* _tmp10_;
	const gchar* _tmp11_;
	const gchar* _tmp12_;
	GQuark _tmp14_ = 0U;
#line 111 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	static GQuark _tmp13_label0 = 0;
#line 111 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	static GQuark _tmp13_label1 = 0;
#line 111 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	static GQuark _tmp13_label2 = 0;
#line 105 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	self = (TrackerRemoteXmlCursor*) base;
#line 105 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp0_ = self->priv->_cur_row;
#line 105 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_vala_return_val_if_fail (_tmp0_ != NULL, "_cur_row != null", 0);
#line 106 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp1_ = self->priv->_vars;
#line 106 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp1__length1 = self->priv->_vars_length1;
#line 106 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp2_ = column;
#line 106 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp3_ = _tmp1_[_tmp2_];
#line 106 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp4_ = g_strdup (_tmp3_);
#line 106 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	variable = _tmp4_;
#line 107 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp5_ = self->priv->_cur_row_map;
#line 107 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp6_ = variable;
#line 107 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp7_ = g_hash_table_lookup (_tmp5_, _tmp6_);
#line 107 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	node = (xmlNode*) _tmp7_;
#line 108 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp8_ = node;
#line 108 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	if (_tmp8_ == NULL) {
#line 109 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		result = TRACKER_SPARQL_VALUE_TYPE_UNBOUND;
#line 109 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_g_free0 (variable);
#line 109 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		return result;
#line 760 "tracker-xml-cursor.c"
	}
#line 111 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp9_ = node;
#line 111 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp10_ = _tmp9_->children;
#line 111 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp11_ = _tmp10_->name;
#line 111 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp12_ = _tmp11_;
#line 111 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp14_ = (NULL == _tmp12_) ? 0 : g_quark_from_string (_tmp12_);
#line 111 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	if (_tmp14_ == ((0 != _tmp13_label0) ? _tmp13_label0 : (_tmp13_label0 = g_quark_from_static_string ("uri")))) {
#line 111 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		switch (0) {
#line 776 "tracker-xml-cursor.c"
			default:
			{
#line 113 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				result = TRACKER_SPARQL_VALUE_TYPE_URI;
#line 113 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_g_free0 (variable);
#line 113 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				return result;
#line 785 "tracker-xml-cursor.c"
			}
		}
	} else if (_tmp14_ == ((0 != _tmp13_label1) ? _tmp13_label1 : (_tmp13_label1 = g_quark_from_static_string ("bnode")))) {
#line 111 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		switch (0) {
#line 791 "tracker-xml-cursor.c"
			default:
			{
#line 115 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				result = TRACKER_SPARQL_VALUE_TYPE_BLANK_NODE;
#line 115 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_g_free0 (variable);
#line 115 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				return result;
#line 800 "tracker-xml-cursor.c"
			}
		}
	} else if (_tmp14_ == ((0 != _tmp13_label2) ? _tmp13_label2 : (_tmp13_label2 = g_quark_from_static_string ("literal")))) {
#line 111 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		switch (0) {
#line 806 "tracker-xml-cursor.c"
			default:
			{
				xmlAttr* attr = NULL;
				xmlNode* _tmp15_;
				xmlAttr* _tmp16_;
				xmlAttr* _tmp17_;
				xmlAttr* _tmp18_;
				xmlNode* _tmp19_;
				const gchar* _tmp20_;
				const gchar* _tmp21_;
				GQuark _tmp23_ = 0U;
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				static GQuark _tmp22_label0 = 0;
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				static GQuark _tmp22_label1 = 0;
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				static GQuark _tmp22_label2 = 0;
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				static GQuark _tmp22_label3 = 0;
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				static GQuark _tmp22_label4 = 0;
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				static GQuark _tmp22_label5 = 0;
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				static GQuark _tmp22_label6 = 0;
#line 117 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp15_ = node;
#line 117 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp16_ = tracker_remote_xml_cursor_lookup_attribute (self, _tmp15_, "datatype");
#line 117 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				attr = _tmp16_;
#line 118 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp17_ = attr;
#line 118 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (_tmp17_ == NULL) {
#line 119 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					result = TRACKER_SPARQL_VALUE_TYPE_STRING;
#line 119 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_g_free0 (variable);
#line 119 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					return result;
#line 848 "tracker-xml-cursor.c"
				}
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp18_ = attr;
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp19_ = _tmp18_->children;
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp20_ = _tmp19_->content;
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp21_ = _tmp20_;
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp23_ = (NULL == _tmp21_) ? 0 : g_quark_from_string (_tmp21_);
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if ((((_tmp23_ == ((0 != _tmp22_label0) ? _tmp22_label0 : (_tmp22_label0 = g_quark_from_static_string (TRACKER_REMOTE_XML_CURSOR_XSD_NS "byte")))) || (_tmp23_ == ((0 != _tmp22_label1) ? _tmp22_label1 : (_tmp22_label1 = g_quark_from_static_string (TRACKER_REMOTE_XML_CURSOR_XSD_NS "int"))))) || (_tmp23_ == ((0 != _tmp22_label2) ? _tmp22_label2 : (_tmp22_label2 = g_quark_from_static_string (TRACKER_REMOTE_XML_CURSOR_XSD_NS "integer"))))) || (_tmp23_ == ((0 != _tmp22_label3) ? _tmp22_label3 : (_tmp22_label3 = g_quark_from_static_string (TRACKER_REMOTE_XML_CURSOR_XSD_NS "long"))))) {
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					switch (0) {
#line 864 "tracker-xml-cursor.c"
						default:
						{
#line 126 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
							result = TRACKER_SPARQL_VALUE_TYPE_INTEGER;
#line 126 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
							_g_free0 (variable);
#line 126 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
							return result;
#line 873 "tracker-xml-cursor.c"
						}
					}
				} else if ((_tmp23_ == ((0 != _tmp22_label4) ? _tmp22_label4 : (_tmp22_label4 = g_quark_from_static_string (TRACKER_REMOTE_XML_CURSOR_XSD_NS "decimal")))) || (_tmp23_ == ((0 != _tmp22_label5) ? _tmp22_label5 : (_tmp22_label5 = g_quark_from_static_string (TRACKER_REMOTE_XML_CURSOR_XSD_NS "double"))))) {
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					switch (0) {
#line 879 "tracker-xml-cursor.c"
						default:
						{
#line 129 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
							result = TRACKER_SPARQL_VALUE_TYPE_DOUBLE;
#line 129 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
							_g_free0 (variable);
#line 129 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
							return result;
#line 888 "tracker-xml-cursor.c"
						}
					}
				} else if (_tmp23_ == ((0 != _tmp22_label6) ? _tmp22_label6 : (_tmp22_label6 = g_quark_from_static_string (TRACKER_REMOTE_XML_CURSOR_XSD_NS "dateTime")))) {
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					switch (0) {
#line 894 "tracker-xml-cursor.c"
						default:
						{
#line 131 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
							result = TRACKER_SPARQL_VALUE_TYPE_DATETIME;
#line 131 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
							_g_free0 (variable);
#line 131 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
							return result;
#line 903 "tracker-xml-cursor.c"
						}
					}
				} else {
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					switch (0) {
#line 909 "tracker-xml-cursor.c"
						default:
						{
#line 133 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
							result = TRACKER_SPARQL_VALUE_TYPE_STRING;
#line 133 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
							_g_free0 (variable);
#line 133 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
							return result;
#line 918 "tracker-xml-cursor.c"
						}
					}
				}
			}
		}
	} else {
#line 111 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		switch (0) {
#line 927 "tracker-xml-cursor.c"
			default:
			{
#line 136 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				result = TRACKER_SPARQL_VALUE_TYPE_STRING;
#line 136 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_g_free0 (variable);
#line 136 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				return result;
#line 936 "tracker-xml-cursor.c"
			}
		}
	}
#line 105 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_g_free0 (variable);
#line 942 "tracker-xml-cursor.c"
}


static const gchar* tracker_remote_xml_cursor_real_get_variable_name (TrackerSparqlCursor* base, gint column) {
	TrackerRemoteXmlCursor * self;
	const gchar* result = NULL;
	gboolean _tmp0_ = FALSE;
	gint _tmp1_;
	gchar** _tmp4_;
	gint _tmp4__length1;
	gint _tmp5_;
	const gchar* _tmp6_;
#line 140 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	self = (TrackerRemoteXmlCursor*) base;
#line 141 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp1_ = column;
#line 141 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	if (_tmp1_ < 0) {
#line 141 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp0_ = TRUE;
#line 963 "tracker-xml-cursor.c"
	} else {
		gint _tmp2_;
		gchar** _tmp3_;
		gint _tmp3__length1;
#line 141 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp2_ = column;
#line 141 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp3_ = self->priv->_vars;
#line 141 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp3__length1 = self->priv->_vars_length1;
#line 141 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp0_ = _tmp2_ > _tmp3__length1;
#line 976 "tracker-xml-cursor.c"
	}
#line 141 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	if (_tmp0_) {
#line 142 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		result = NULL;
#line 142 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		return result;
#line 984 "tracker-xml-cursor.c"
	}
#line 143 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp4_ = self->priv->_vars;
#line 143 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp4__length1 = self->priv->_vars_length1;
#line 143 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp5_ = column;
#line 143 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp6_ = _tmp4_[_tmp5_];
#line 143 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	result = _tmp6_;
#line 143 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	return result;
#line 998 "tracker-xml-cursor.c"
}


static const gchar* tracker_remote_xml_cursor_real_get_string (TrackerSparqlCursor* base, gint column, glong* length) {
	TrackerRemoteXmlCursor * self;
	glong _vala_length = 0L;
	const gchar* result = NULL;
	xmlNode* _tmp0_;
	gchar* variable = NULL;
	gchar** _tmp1_;
	gint _tmp1__length1;
	gint _tmp2_;
	const gchar* _tmp3_;
	gchar* _tmp4_;
	xmlNode* node = NULL;
	GHashTable* _tmp5_;
	const gchar* _tmp6_;
	gconstpointer _tmp7_;
	xmlNode* _tmp8_;
	xmlNode* child = NULL;
	xmlNode* _tmp9_;
	xmlNode* _tmp10_;
	xmlNode* _tmp11_;
	xmlNode* text = NULL;
	xmlNode* _tmp12_;
	xmlNode* _tmp13_;
	gboolean _tmp14_ = FALSE;
	xmlNode* _tmp15_;
	xmlNode* _tmp18_;
	const gchar* _tmp19_;
	gint _tmp20_;
	gint _tmp21_;
	xmlNode* _tmp22_;
	const gchar* _tmp23_;
#line 146 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	self = (TrackerRemoteXmlCursor*) base;
#line 146 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp0_ = self->priv->_cur_row;
#line 146 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_vala_return_val_if_fail (_tmp0_ != NULL, "_cur_row != null", NULL);
#line 147 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_vala_length = (glong) 0;
#line 149 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp1_ = self->priv->_vars;
#line 149 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp1__length1 = self->priv->_vars_length1;
#line 149 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp2_ = column;
#line 149 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp3_ = _tmp1_[_tmp2_];
#line 149 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp4_ = g_strdup (_tmp3_);
#line 149 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	variable = _tmp4_;
#line 150 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp5_ = self->priv->_cur_row_map;
#line 150 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp6_ = variable;
#line 150 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp7_ = g_hash_table_lookup (_tmp5_, _tmp6_);
#line 150 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	node = (xmlNode*) _tmp7_;
#line 151 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp8_ = node;
#line 151 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	if (_tmp8_ == NULL) {
#line 152 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		result = NULL;
#line 152 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_g_free0 (variable);
#line 152 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		if (length) {
#line 152 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			*length = _vala_length;
#line 1073 "tracker-xml-cursor.c"
		}
#line 152 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		return result;
#line 1077 "tracker-xml-cursor.c"
	}
#line 154 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp9_ = node;
#line 154 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp10_ = tracker_remote_xml_cursor_find_first_child_node (self, _tmp9_);
#line 154 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	child = _tmp10_;
#line 155 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp11_ = child;
#line 155 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	if (_tmp11_ == NULL) {
#line 156 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		result = NULL;
#line 156 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_g_free0 (variable);
#line 156 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		if (length) {
#line 156 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			*length = _vala_length;
#line 1097 "tracker-xml-cursor.c"
		}
#line 156 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		return result;
#line 1101 "tracker-xml-cursor.c"
	}
#line 158 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp12_ = child;
#line 158 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp13_ = _tmp12_->children;
#line 158 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	text = _tmp13_;
#line 159 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp15_ = text;
#line 159 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	if (_tmp15_ == NULL) {
#line 159 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp14_ = TRUE;
#line 1115 "tracker-xml-cursor.c"
	} else {
		xmlNode* _tmp16_;
		xmlElementType _tmp17_;
#line 160 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp16_ = text;
#line 160 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp17_ = _tmp16_->type;
#line 160 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp14_ = _tmp17_ != XML_TEXT_NODE;
#line 1125 "tracker-xml-cursor.c"
	}
#line 159 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	if (_tmp14_) {
#line 161 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		result = NULL;
#line 161 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_g_free0 (variable);
#line 161 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		if (length) {
#line 161 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			*length = _vala_length;
#line 1137 "tracker-xml-cursor.c"
		}
#line 161 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		return result;
#line 1141 "tracker-xml-cursor.c"
	}
#line 163 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp18_ = text;
#line 163 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp19_ = _tmp18_->content;
#line 163 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp20_ = strlen (_tmp19_);
#line 163 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp21_ = _tmp20_;
#line 163 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_vala_length = (glong) _tmp21_;
#line 164 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp22_ = text;
#line 164 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp23_ = _tmp22_->content;
#line 164 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	result = _tmp23_;
#line 164 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_g_free0 (variable);
#line 164 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	if (length) {
#line 164 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		*length = _vala_length;
#line 1165 "tracker-xml-cursor.c"
	}
#line 164 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	return result;
#line 1169 "tracker-xml-cursor.c"
}


static gboolean tracker_remote_xml_cursor_real_next (TrackerSparqlCursor* base, GCancellable* cancellable, GError** error) {
	TrackerRemoteXmlCursor * self;
	gboolean result = FALSE;
	xmlNode* _tmp0_;
	GHashTable* _tmp5_;
	xmlNode* _tmp6_;
#line 167 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	self = (TrackerRemoteXmlCursor*) base;
#line 168 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp0_ = self->priv->_cur_row;
#line 168 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	if (_tmp0_ == NULL) {
#line 1185 "tracker-xml-cursor.c"
		xmlNode* _tmp1_;
		xmlNode* _tmp2_;
#line 169 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp1_ = self->priv->_results;
#line 169 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp2_ = tracker_remote_xml_cursor_find_first_child_node (self, _tmp1_);
#line 169 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		self->priv->_cur_row = _tmp2_;
#line 1194 "tracker-xml-cursor.c"
	} else {
		xmlNode* _tmp3_;
		xmlNode* _tmp4_;
#line 171 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp3_ = self->priv->_cur_row;
#line 171 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp4_ = tracker_remote_xml_cursor_find_next_node (self, _tmp3_);
#line 171 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		self->priv->_cur_row = _tmp4_;
#line 1204 "tracker-xml-cursor.c"
	}
#line 173 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp5_ = self->priv->_cur_row_map;
#line 173 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	g_hash_table_remove_all (_tmp5_);
#line 175 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp6_ = self->priv->_cur_row;
#line 175 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	if (_tmp6_ == NULL) {
#line 176 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		result = FALSE;
#line 176 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		return result;
#line 1218 "tracker-xml-cursor.c"
	}
	{
		xmlNode* iter = NULL;
		xmlNode* _tmp7_;
		xmlNode* _tmp8_;
#line 178 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp7_ = self->priv->_cur_row;
#line 178 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp8_ = _tmp7_->children;
#line 178 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		iter = _tmp8_;
#line 1230 "tracker-xml-cursor.c"
		{
			gboolean _tmp9_ = FALSE;
#line 178 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			_tmp9_ = TRUE;
#line 178 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			while (TRUE) {
#line 1237 "tracker-xml-cursor.c"
				xmlNode* _tmp12_;
				xmlNode* _tmp13_;
				const gchar* _tmp14_;
				xmlAttr* attr = NULL;
				xmlNode* _tmp15_;
				xmlAttr* _tmp16_;
				xmlAttr* _tmp17_;
				gchar* binding_name = NULL;
				xmlAttr* _tmp18_;
				xmlNode* _tmp19_;
				const gchar* _tmp20_;
				gchar* _tmp21_;
				GHashTable* _tmp22_;
				const gchar* _tmp23_;
				gchar* _tmp24_;
				xmlNode* _tmp25_;
#line 178 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (!_tmp9_) {
#line 1256 "tracker-xml-cursor.c"
					xmlNode* _tmp10_;
					xmlNode* _tmp11_;
#line 178 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp10_ = iter;
#line 178 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp11_ = _tmp10_->next;
#line 178 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					iter = _tmp11_;
#line 1265 "tracker-xml-cursor.c"
				}
#line 178 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp9_ = FALSE;
#line 178 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp12_ = iter;
#line 178 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (!(_tmp12_ != NULL)) {
#line 178 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					break;
#line 1275 "tracker-xml-cursor.c"
				}
#line 179 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp13_ = iter;
#line 179 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp14_ = _tmp13_->name;
#line 179 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (g_strcmp0 (_tmp14_, "binding") != 0) {
#line 180 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					continue;
#line 1285 "tracker-xml-cursor.c"
				}
#line 182 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp15_ = iter;
#line 182 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp16_ = tracker_remote_xml_cursor_lookup_attribute (self, _tmp15_, "name");
#line 182 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				attr = _tmp16_;
#line 183 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp17_ = attr;
#line 183 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (_tmp17_ == NULL) {
#line 184 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					continue;
#line 1299 "tracker-xml-cursor.c"
				}
#line 186 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp18_ = attr;
#line 186 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp19_ = _tmp18_->children;
#line 186 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp20_ = _tmp19_->content;
#line 186 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp21_ = g_strdup (_tmp20_);
#line 186 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				binding_name = _tmp21_;
#line 187 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp22_ = self->priv->_cur_row_map;
#line 187 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp23_ = binding_name;
#line 187 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp24_ = g_strdup (_tmp23_);
#line 187 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp25_ = iter;
#line 187 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				g_hash_table_insert (_tmp22_, _tmp24_, _tmp25_);
#line 178 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_g_free0 (binding_name);
#line 1323 "tracker-xml-cursor.c"
			}
		}
	}
#line 190 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	result = TRUE;
#line 190 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	return result;
#line 1331 "tracker-xml-cursor.c"
}


static void tracker_remote_xml_cursor_real_next_async_data_free (gpointer _data) {
	TrackerRemoteXmlCursorNextAsyncData* _data_;
	_data_ = _data;
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_g_object_unref0 (_data_->cancellable);
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_g_object_unref0 (_data_->self);
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	g_slice_free (TrackerRemoteXmlCursorNextAsyncData, _data_);
#line 1344 "tracker-xml-cursor.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	return self ? g_object_ref (self) : NULL;
#line 1351 "tracker-xml-cursor.c"
}


static void tracker_remote_xml_cursor_real_next_async (TrackerSparqlCursor* base, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	TrackerRemoteXmlCursor * self;
	TrackerRemoteXmlCursorNextAsyncData* _data_;
	TrackerRemoteXmlCursor* _tmp0_;
	GCancellable* _tmp1_;
	GCancellable* _tmp2_;
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	self = (TrackerRemoteXmlCursor*) base;
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_data_ = g_slice_new0 (TrackerRemoteXmlCursorNextAsyncData);
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), cancellable, _callback_, _user_data_);
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	g_task_set_task_data (_data_->_async_result, _data_, tracker_remote_xml_cursor_real_next_async_data_free);
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_data_->self = _tmp0_;
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp1_ = cancellable;
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_g_object_unref0 (_data_->cancellable);
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_data_->cancellable = _tmp2_;
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	tracker_remote_xml_cursor_real_next_async_co (_data_);
#line 1383 "tracker-xml-cursor.c"
}


static gboolean tracker_remote_xml_cursor_real_next_finish (TrackerSparqlCursor* base, GAsyncResult* _res_, GError** error) {
	gboolean result;
	TrackerRemoteXmlCursorNextAsyncData* _data_;
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_data_ = g_task_propagate_pointer (G_TASK (_res_), error);
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	if (NULL == _data_) {
#line 1394 "tracker-xml-cursor.c"
		gboolean _tmp0_ = FALSE;
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		return _tmp0_;
#line 1398 "tracker-xml-cursor.c"
	}
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	result = _data_->result;
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	return result;
#line 1404 "tracker-xml-cursor.c"
}


static gboolean tracker_remote_xml_cursor_real_next_async_co (TrackerRemoteXmlCursorNextAsyncData* _data_) {
#line 193 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	switch (_data_->_state_) {
#line 193 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		case 0:
#line 1413 "tracker-xml-cursor.c"
		goto _state_0;
		default:
#line 193 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		g_assert_not_reached ();
#line 1418 "tracker-xml-cursor.c"
	}
	_state_0:
#line 194 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_data_->_tmp1_ = _data_->cancellable;
#line 194 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_data_->_tmp2_ = tracker_sparql_cursor_next ((TrackerSparqlCursor*) _data_->self, _data_->_tmp1_, &_data_->_inner_error_);
#line 194 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_data_->_tmp0_ = _data_->_tmp2_;
#line 194 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 194 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		g_task_return_error (_data_->_async_result, _data_->_inner_error_);
#line 194 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		g_object_unref (_data_->_async_result);
#line 194 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		return FALSE;
#line 1435 "tracker-xml-cursor.c"
	}
#line 194 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_data_->result = _data_->_tmp0_;
#line 194 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 194 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	if (_data_->_state_ != 0) {
#line 194 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		while (g_task_get_completed (_data_->_async_result) != TRUE) {
#line 194 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 1447 "tracker-xml-cursor.c"
		}
	}
#line 194 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	g_object_unref (_data_->_async_result);
#line 194 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	return FALSE;
#line 1454 "tracker-xml-cursor.c"
}


static void tracker_remote_xml_cursor_real_rewind (TrackerSparqlCursor* base) {
	TrackerRemoteXmlCursor * self;
#line 197 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	self = (TrackerRemoteXmlCursor*) base;
#line 198 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	self->priv->_cur_row = NULL;
#line 1464 "tracker-xml-cursor.c"
}


static void tracker_remote_xml_cursor_real_close (TrackerSparqlCursor* base) {
	TrackerRemoteXmlCursor * self;
#line 201 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	self = (TrackerRemoteXmlCursor*) base;
#line 1472 "tracker-xml-cursor.c"
}


static gint tracker_remote_xml_cursor_real_get_n_columns (TrackerSparqlCursor* base) {
	gint result;
	TrackerRemoteXmlCursor* self;
	gchar** _tmp0_;
	gint _tmp0__length1;
#line 102 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	self = (TrackerRemoteXmlCursor*) base;
#line 102 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp0_ = self->priv->_vars;
#line 102 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp0__length1 = self->priv->_vars_length1;
#line 102 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	result = (gint) _tmp0__length1;
#line 102 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	return result;
#line 1491 "tracker-xml-cursor.c"
}


static void tracker_remote_xml_cursor_class_init (TrackerRemoteXmlCursorClass * klass) {
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	tracker_remote_xml_cursor_parent_class = g_type_class_peek_parent (klass);
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	g_type_class_add_private (klass, sizeof (TrackerRemoteXmlCursorPrivate));
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	((TrackerSparqlCursorClass *) klass)->get_value_type = (TrackerSparqlValueType (*) (TrackerSparqlCursor *, gint)) tracker_remote_xml_cursor_real_get_value_type;
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	((TrackerSparqlCursorClass *) klass)->get_variable_name = (const gchar* (*) (TrackerSparqlCursor *, gint)) tracker_remote_xml_cursor_real_get_variable_name;
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	((TrackerSparqlCursorClass *) klass)->get_string = (const gchar* (*) (TrackerSparqlCursor *, gint, glong*)) tracker_remote_xml_cursor_real_get_string;
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	((TrackerSparqlCursorClass *) klass)->next = (gboolean (*) (TrackerSparqlCursor *, GCancellable*, GError**)) tracker_remote_xml_cursor_real_next;
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	((TrackerSparqlCursorClass *) klass)->next_async = (void (*) (TrackerSparqlCursor *, GCancellable*, GAsyncReadyCallback, gpointer)) tracker_remote_xml_cursor_real_next_async;
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	((TrackerSparqlCursorClass *) klass)->next_finish = (gboolean (*) (TrackerSparqlCursor *, GAsyncResult*, GError**)) tracker_remote_xml_cursor_real_next_finish;
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	((TrackerSparqlCursorClass *) klass)->rewind = (void (*) (TrackerSparqlCursor *)) tracker_remote_xml_cursor_real_rewind;
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	((TrackerSparqlCursorClass *) klass)->close = (void (*) (TrackerSparqlCursor *)) tracker_remote_xml_cursor_real_close;
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	TRACKER_SPARQL_CURSOR_CLASS (klass)->get_n_columns = tracker_remote_xml_cursor_real_get_n_columns;
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_tracker_remote_xml_cursor_get_property;
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	G_OBJECT_CLASS (klass)->finalize = tracker_remote_xml_cursor_finalize;
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), TRACKER_REMOTE_XML_CURSOR_N_COLUMNS_PROPERTY, tracker_remote_xml_cursor_properties[TRACKER_REMOTE_XML_CURSOR_N_COLUMNS_PROPERTY] = g_param_spec_int ("n-columns", "n-columns", "n-columns", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 1524 "tracker-xml-cursor.c"
}


static void tracker_remote_xml_cursor_instance_init (TrackerRemoteXmlCursor * self) {
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	self->priv = TRACKER_REMOTE_XML_CURSOR_GET_PRIVATE (self);
#line 1531 "tracker-xml-cursor.c"
}


static void tracker_remote_xml_cursor_finalize (GObject * obj) {
	TrackerRemoteXmlCursor * self;
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TRACKER_REMOTE_TYPE_XML_CURSOR, TrackerRemoteXmlCursor);
#line 25 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_g_hash_table_unref0 (self->priv->_cur_row_map);
#line 26 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	self->priv->_vars = (_vala_array_free (self->priv->_vars, self->priv->_vars_length1, (GDestroyNotify) g_free), NULL);
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	G_OBJECT_CLASS (tracker_remote_xml_cursor_parent_class)->finalize (obj);
#line 1545 "tracker-xml-cursor.c"
}


GType tracker_remote_xml_cursor_get_type (void) {
	static volatile gsize tracker_remote_xml_cursor_type_id__volatile = 0;
	if (g_once_init_enter (&tracker_remote_xml_cursor_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (TrackerRemoteXmlCursorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tracker_remote_xml_cursor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrackerRemoteXmlCursor), 0, (GInstanceInitFunc) tracker_remote_xml_cursor_instance_init, NULL };
		GType tracker_remote_xml_cursor_type_id;
		tracker_remote_xml_cursor_type_id = g_type_register_static (TRACKER_SPARQL_TYPE_CURSOR, "TrackerRemoteXmlCursor", &g_define_type_info, 0);
		g_once_init_leave (&tracker_remote_xml_cursor_type_id__volatile, tracker_remote_xml_cursor_type_id);
	}
	return tracker_remote_xml_cursor_type_id__volatile;
}


static void _vala_tracker_remote_xml_cursor_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	TrackerRemoteXmlCursor * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, TRACKER_REMOTE_TYPE_XML_CURSOR, TrackerRemoteXmlCursor);
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	switch (property_id) {
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		case TRACKER_REMOTE_XML_CURSOR_N_COLUMNS_PROPERTY:
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		g_value_set_int (value, tracker_sparql_cursor_get_n_columns ((TrackerSparqlCursor*) self));
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		break;
#line 1572 "tracker-xml-cursor.c"
		default:
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		break;
#line 1578 "tracker-xml-cursor.c"
	}
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	if ((array != NULL) && (destroy_func != NULL)) {
		int i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}



