/* tracker-xml-cursor.c generated by valac 0.40.6, 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_0_PROPERTY,
	TRACKER_REMOTE_XML_CURSOR_N_COLUMNS_PROPERTY,
	TRACKER_REMOTE_XML_CURSOR_NUM_PROPERTIES
};
static GParamSpec* tracker_remote_xml_cursor_properties[TRACKER_REMOTE_XML_CURSOR_NUM_PROPERTIES];
#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_;
	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 160 "tracker-xml-cursor.c"
	{
		xmlNode* iter = NULL;
		xmlNode* _tmp0_;
#line 31 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp0_ = node->children;
#line 31 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		iter = _tmp0_;
#line 168 "tracker-xml-cursor.c"
		{
			gboolean _tmp1_ = FALSE;
#line 31 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			_tmp1_ = TRUE;
#line 31 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			while (TRUE) {
#line 175 "tracker-xml-cursor.c"
				xmlNode* _tmp4_;
				xmlNode* _tmp5_;
				xmlElementType _tmp6_;
				xmlNode* _tmp7_;
#line 31 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (!_tmp1_) {
#line 182 "tracker-xml-cursor.c"
					xmlNode* _tmp2_;
					xmlNode* _tmp3_;
#line 31 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp2_ = iter;
#line 31 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp3_ = _tmp2_->next;
#line 31 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					iter = _tmp3_;
#line 191 "tracker-xml-cursor.c"
				}
#line 31 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp1_ = FALSE;
#line 31 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp4_ = iter;
#line 31 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (!(_tmp4_ != NULL)) {
#line 31 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					break;
#line 201 "tracker-xml-cursor.c"
				}
#line 32 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp5_ = iter;
#line 32 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp6_ = _tmp5_->type;
#line 32 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (_tmp6_ != XML_ELEMENT_NODE) {
#line 33 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					continue;
#line 211 "tracker-xml-cursor.c"
				}
#line 34 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp7_ = iter;
#line 34 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				result = _tmp7_;
#line 34 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				return result;
#line 219 "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 227 "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 238 "tracker-xml-cursor.c"
	{
		xmlNode* iter = NULL;
		xmlNode* _tmp0_;
#line 41 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp0_ = node->next;
#line 41 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		iter = _tmp0_;
#line 246 "tracker-xml-cursor.c"
		{
			gboolean _tmp1_ = FALSE;
#line 41 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			_tmp1_ = TRUE;
#line 41 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			while (TRUE) {
#line 253 "tracker-xml-cursor.c"
				xmlNode* _tmp4_;
				xmlNode* _tmp5_;
				xmlElementType _tmp6_;
				xmlNode* _tmp7_;
#line 41 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (!_tmp1_) {
#line 260 "tracker-xml-cursor.c"
					xmlNode* _tmp2_;
					xmlNode* _tmp3_;
#line 41 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp2_ = iter;
#line 41 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp3_ = _tmp2_->next;
#line 41 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					iter = _tmp3_;
#line 269 "tracker-xml-cursor.c"
				}
#line 41 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp1_ = FALSE;
#line 41 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp4_ = iter;
#line 41 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (!(_tmp4_ != NULL)) {
#line 41 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					break;
#line 279 "tracker-xml-cursor.c"
				}
#line 42 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp5_ = iter;
#line 42 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp6_ = _tmp5_->type;
#line 42 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (_tmp6_ != XML_ELEMENT_NODE) {
#line 43 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					continue;
#line 289 "tracker-xml-cursor.c"
				}
#line 44 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp7_ = iter;
#line 44 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				result = _tmp7_;
#line 44 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				return result;
#line 297 "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 305 "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 319 "tracker-xml-cursor.c"
	{
		xmlNode* iter = NULL;
		xmlNode* _tmp0_;
#line 51 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp0_ = node->children;
#line 51 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		iter = _tmp0_;
#line 327 "tracker-xml-cursor.c"
		{
			gboolean _tmp1_ = FALSE;
#line 51 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			_tmp1_ = TRUE;
#line 51 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			while (TRUE) {
#line 334 "tracker-xml-cursor.c"
				xmlNode* _tmp4_;
				xmlNode* _tmp5_;
				xmlElementType _tmp6_;
				xmlNode* _tmp7_;
				const gchar* _tmp8_;
#line 51 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (!_tmp1_) {
#line 342 "tracker-xml-cursor.c"
					xmlNode* _tmp2_;
					xmlNode* _tmp3_;
#line 51 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp2_ = iter;
#line 51 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp3_ = _tmp2_->next;
#line 51 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					iter = _tmp3_;
#line 351 "tracker-xml-cursor.c"
				}
#line 51 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp1_ = FALSE;
#line 51 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp4_ = iter;
#line 51 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (!(_tmp4_ != NULL)) {
#line 51 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					break;
#line 361 "tracker-xml-cursor.c"
				}
#line 52 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp5_ = iter;
#line 52 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp6_ = _tmp5_->type;
#line 52 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (_tmp6_ != XML_ELEMENT_NODE) {
#line 53 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					continue;
#line 371 "tracker-xml-cursor.c"
				}
#line 54 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp7_ = iter;
#line 54 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp8_ = _tmp7_->name;
#line 54 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (g_strcmp0 (_tmp8_, name) == 0) {
#line 379 "tracker-xml-cursor.c"
					xmlNode* _tmp9_;
#line 55 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp9_ = iter;
#line 55 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					result = _tmp9_;
#line 55 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					return result;
#line 387 "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 396 "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 410 "tracker-xml-cursor.c"
	{
		xmlAttr* iter = NULL;
		xmlAttr* _tmp0_;
#line 62 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp0_ = node->properties;
#line 62 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		iter = _tmp0_;
#line 418 "tracker-xml-cursor.c"
		{
			gboolean _tmp1_ = FALSE;
#line 62 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			_tmp1_ = TRUE;
#line 62 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			while (TRUE) {
#line 425 "tracker-xml-cursor.c"
				xmlAttr* _tmp4_;
				xmlAttr* _tmp5_;
				const gchar* _tmp6_;
#line 62 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (!_tmp1_) {
#line 431 "tracker-xml-cursor.c"
					xmlAttr* _tmp2_;
					xmlAttr* _tmp3_;
#line 62 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp2_ = iter;
#line 62 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp3_ = _tmp2_->next;
#line 62 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					iter = _tmp3_;
#line 440 "tracker-xml-cursor.c"
				}
#line 62 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp1_ = FALSE;
#line 62 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp4_ = iter;
#line 62 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (!(_tmp4_ != NULL)) {
#line 62 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					break;
#line 450 "tracker-xml-cursor.c"
				}
#line 63 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp5_ = iter;
#line 63 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp6_ = _tmp5_->name;
#line 63 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (g_strcmp0 (_tmp6_, name) == 0) {
#line 458 "tracker-xml-cursor.c"
					xmlAttr* _tmp7_;
#line 64 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp7_ = iter;
#line 64 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					result = _tmp7_;
#line 64 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					return result;
#line 466 "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 475 "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 491 "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 497 "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 507 "tracker-xml-cursor.c"
	{
		xmlNode* iter = NULL;
		xmlNode* _tmp0_;
#line 71 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp0_ = vars->children;
#line 71 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		iter = _tmp0_;
#line 515 "tracker-xml-cursor.c"
		{
			gboolean _tmp1_ = FALSE;
#line 71 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			_tmp1_ = TRUE;
#line 71 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
			while (TRUE) {
#line 522 "tracker-xml-cursor.c"
				xmlNode* _tmp4_;
				gboolean _tmp5_ = FALSE;
				xmlNode* _tmp6_;
				const gchar* _tmp7_;
				xmlAttr* attr = NULL;
				xmlNode* _tmp10_;
				xmlAttr* _tmp11_;
				xmlAttr* _tmp12_;
				gchar** _tmp13_;
				gint _tmp13__length1;
				xmlAttr* _tmp14_;
				xmlNode* _tmp15_;
				const gchar* _tmp16_;
				gchar* _tmp17_;
#line 71 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (!_tmp1_) {
#line 539 "tracker-xml-cursor.c"
					xmlNode* _tmp2_;
					xmlNode* _tmp3_;
#line 71 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp2_ = iter;
#line 71 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp3_ = _tmp2_->next;
#line 71 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					iter = _tmp3_;
#line 548 "tracker-xml-cursor.c"
				}
#line 71 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp1_ = FALSE;
#line 71 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp4_ = iter;
#line 71 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (!(_tmp4_ != NULL)) {
#line 71 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					break;
#line 558 "tracker-xml-cursor.c"
				}
#line 72 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp6_ = iter;
#line 72 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp7_ = _tmp6_->name;
#line 72 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (g_strcmp0 (_tmp7_, "variable") != 0) {
#line 72 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp5_ = TRUE;
#line 568 "tracker-xml-cursor.c"
				} else {
					xmlNode* _tmp8_;
					xmlElementType _tmp9_;
#line 73 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp8_ = iter;
#line 73 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp9_ = _tmp8_->type;
#line 73 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					_tmp5_ = _tmp9_ != XML_ELEMENT_NODE;
#line 578 "tracker-xml-cursor.c"
				}
#line 72 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (_tmp5_) {
#line 74 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					continue;
#line 584 "tracker-xml-cursor.c"
				}
#line 76 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp10_ = iter;
#line 76 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp11_ = tracker_remote_xml_cursor_lookup_attribute (self, _tmp10_, "name");
#line 76 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				attr = _tmp11_;
#line 77 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp12_ = attr;
#line 77 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (_tmp12_ == NULL) {
#line 78 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					continue;
#line 598 "tracker-xml-cursor.c"
				}
#line 80 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp13_ = self->priv->_vars;
#line 80 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp13__length1 = self->priv->_vars_length1;
#line 80 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp14_ = attr;
#line 80 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp15_ = _tmp14_->children;
#line 80 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp16_ = _tmp15_->content;
#line 80 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp17_ = g_strdup (_tmp16_);
#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_, _tmp17_);
#line 614 "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 626 "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;
	xmlDoc* _tmp0_;
	xmlDoc* _tmp1_;
	xmlNode* root = NULL;
	xmlDoc* _tmp3_;
	xmlNode* _tmp4_;
	xmlNode* _tmp5_;
	xmlNode* vars = NULL;
	xmlNode* _tmp6_;
	GHashFunc _tmp7_;
	GEqualFunc _tmp8_;
	GHashTable* _tmp9_;
	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_ = xmlParseMemory (document, (gint) length);
#line 86 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	doc = _tmp0_;
#line 88 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp1_ = doc;
#line 88 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	if (_tmp1_ == NULL) {
#line 664 "tracker-xml-cursor.c"
		GError* _tmp2_;
#line 89 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp2_ = 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_ = _tmp2_;
#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 678 "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 686 "tracker-xml-cursor.c"
		}
	}
#line 91 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp3_ = doc;
#line 91 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp4_ = xmlDocGetRootElement (_tmp3_);
#line 91 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	root = _tmp4_;
#line 92 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp5_ = 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 = _tmp5_;
#line 94 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp6_ = 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 = _tmp6_;
#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"
	_tmp7_ = g_str_hash;
#line 98 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp8_ = g_str_equal;
#line 98 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp9_ = g_hash_table_new_full (_tmp7_, _tmp8_, _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 = _tmp9_;
#line 84 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	return self;
#line 719 "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 730 "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;
	const gchar* _tmp2_;
	gchar* _tmp3_;
	xmlNode* node = NULL;
	GHashTable* _tmp4_;
	const gchar* _tmp5_;
	gconstpointer _tmp6_;
	xmlNode* _tmp7_;
	xmlNode* _tmp8_;
	xmlNode* _tmp9_;
	const gchar* _tmp10_;
	const gchar* _tmp11_;
	GQuark _tmp13_ = 0U;
#line 111 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	static GQuark _tmp12_label0 = 0;
#line 111 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	static GQuark _tmp12_label1 = 0;
#line 111 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	static GQuark _tmp12_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_ = _tmp1_[column];
#line 106 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 106 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	variable = _tmp3_;
#line 107 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp4_ = self->priv->_cur_row_map;
#line 107 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp5_ = variable;
#line 107 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp6_ = g_hash_table_lookup (_tmp4_, _tmp5_);
#line 107 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	node = (xmlNode*) _tmp6_;
#line 108 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp7_ = node;
#line 108 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	if (_tmp7_ == 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 796 "tracker-xml-cursor.c"
	}
#line 111 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp8_ = node;
#line 111 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp9_ = _tmp8_->children;
#line 111 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp10_ = _tmp9_->name;
#line 111 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp11_ = _tmp10_;
#line 111 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp13_ = (NULL == _tmp11_) ? 0 : g_quark_from_string (_tmp11_);
#line 111 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	if (_tmp13_ == ((0 != _tmp12_label0) ? _tmp12_label0 : (_tmp12_label0 = g_quark_from_static_string ("uri")))) {
#line 111 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		switch (0) {
#line 812 "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 821 "tracker-xml-cursor.c"
			}
		}
	} else if (_tmp13_ == ((0 != _tmp12_label1) ? _tmp12_label1 : (_tmp12_label1 = g_quark_from_static_string ("bnode")))) {
#line 111 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		switch (0) {
#line 827 "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 836 "tracker-xml-cursor.c"
			}
		}
	} else if (_tmp13_ == ((0 != _tmp12_label2) ? _tmp12_label2 : (_tmp12_label2 = g_quark_from_static_string ("literal")))) {
#line 111 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		switch (0) {
#line 842 "tracker-xml-cursor.c"
			default:
			{
				xmlAttr* attr = NULL;
				xmlNode* _tmp14_;
				xmlAttr* _tmp15_;
				xmlAttr* _tmp16_;
				xmlAttr* _tmp17_;
				xmlNode* _tmp18_;
				const gchar* _tmp19_;
				const gchar* _tmp20_;
				GQuark _tmp22_ = 0U;
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				static GQuark _tmp21_label0 = 0;
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				static GQuark _tmp21_label1 = 0;
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				static GQuark _tmp21_label2 = 0;
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				static GQuark _tmp21_label3 = 0;
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				static GQuark _tmp21_label4 = 0;
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				static GQuark _tmp21_label5 = 0;
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				static GQuark _tmp21_label6 = 0;
#line 117 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp14_ = node;
#line 117 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp15_ = tracker_remote_xml_cursor_lookup_attribute (self, _tmp14_, "datatype");
#line 117 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				attr = _tmp15_;
#line 118 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp16_ = attr;
#line 118 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if (_tmp16_ == 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 884 "tracker-xml-cursor.c"
				}
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp17_ = attr;
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp18_ = _tmp17_->children;
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp19_ = _tmp18_->content;
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp20_ = _tmp19_;
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				_tmp22_ = (NULL == _tmp20_) ? 0 : g_quark_from_string (_tmp20_);
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
				if ((((_tmp22_ == ((0 != _tmp21_label0) ? _tmp21_label0 : (_tmp21_label0 = g_quark_from_static_string (TRACKER_REMOTE_XML_CURSOR_XSD_NS "byte")))) || (_tmp22_ == ((0 != _tmp21_label1) ? _tmp21_label1 : (_tmp21_label1 = g_quark_from_static_string (TRACKER_REMOTE_XML_CURSOR_XSD_NS "int"))))) || (_tmp22_ == ((0 != _tmp21_label2) ? _tmp21_label2 : (_tmp21_label2 = g_quark_from_static_string (TRACKER_REMOTE_XML_CURSOR_XSD_NS "integer"))))) || (_tmp22_ == ((0 != _tmp21_label3) ? _tmp21_label3 : (_tmp21_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 900 "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 909 "tracker-xml-cursor.c"
						}
					}
				} else if ((_tmp22_ == ((0 != _tmp21_label4) ? _tmp21_label4 : (_tmp21_label4 = g_quark_from_static_string (TRACKER_REMOTE_XML_CURSOR_XSD_NS "decimal")))) || (_tmp22_ == ((0 != _tmp21_label5) ? _tmp21_label5 : (_tmp21_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 915 "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 924 "tracker-xml-cursor.c"
						}
					}
				} else if (_tmp22_ == ((0 != _tmp21_label6) ? _tmp21_label6 : (_tmp21_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 930 "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 939 "tracker-xml-cursor.c"
						}
					}
				} else {
#line 121 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
					switch (0) {
#line 945 "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 954 "tracker-xml-cursor.c"
						}
					}
				}
			}
		}
	} else {
#line 111 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		switch (0) {
#line 963 "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 972 "tracker-xml-cursor.c"
			}
		}
	}
#line 105 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_g_free0 (variable);
#line 978 "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;
	gchar** _tmp2_;
	gint _tmp2__length1;
	const gchar* _tmp3_;
#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"
	if (column < 0) {
#line 141 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp0_ = TRUE;
#line 998 "tracker-xml-cursor.c"
	} else {
		gchar** _tmp1_;
		gint _tmp1__length1;
#line 141 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp1_ = self->priv->_vars;
#line 141 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp1__length1 = self->priv->_vars_length1;
#line 141 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp0_ = column > _tmp1__length1;
#line 1008 "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 1016 "tracker-xml-cursor.c"
	}
#line 143 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp2_ = self->priv->_vars;
#line 143 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp2__length1 = self->priv->_vars_length1;
#line 143 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp3_ = _tmp2_[column];
#line 143 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	result = _tmp3_;
#line 143 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	return result;
#line 1028 "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;
	const gchar* _tmp2_;
	gchar* _tmp3_;
	xmlNode* node = NULL;
	GHashTable* _tmp4_;
	const gchar* _tmp5_;
	gconstpointer _tmp6_;
	xmlNode* _tmp7_;
	xmlNode* child = NULL;
	xmlNode* _tmp8_;
	xmlNode* _tmp9_;
	xmlNode* _tmp10_;
	xmlNode* text = NULL;
	xmlNode* _tmp11_;
	xmlNode* _tmp12_;
	gboolean _tmp13_ = FALSE;
	xmlNode* _tmp14_;
	xmlNode* _tmp17_;
	const gchar* _tmp18_;
	gint _tmp19_;
	gint _tmp20_;
	xmlNode* _tmp21_;
	const gchar* _tmp22_;
#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_ = _tmp1_[column];
#line 149 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 149 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	variable = _tmp3_;
#line 150 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp4_ = self->priv->_cur_row_map;
#line 150 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp5_ = variable;
#line 150 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp6_ = g_hash_table_lookup (_tmp4_, _tmp5_);
#line 150 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	node = (xmlNode*) _tmp6_;
#line 151 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp7_ = node;
#line 151 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	if (_tmp7_ == 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 1104 "tracker-xml-cursor.c"
		}
#line 152 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		return result;
#line 1108 "tracker-xml-cursor.c"
	}
#line 154 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp8_ = node;
#line 154 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp9_ = tracker_remote_xml_cursor_find_first_child_node (self, _tmp8_);
#line 154 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	child = _tmp9_;
#line 155 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp10_ = child;
#line 155 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	if (_tmp10_ == 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 1128 "tracker-xml-cursor.c"
		}
#line 156 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		return result;
#line 1132 "tracker-xml-cursor.c"
	}
#line 158 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp11_ = child;
#line 158 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp12_ = _tmp11_->children;
#line 158 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	text = _tmp12_;
#line 159 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp14_ = text;
#line 159 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	if (_tmp14_ == NULL) {
#line 159 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp13_ = TRUE;
#line 1146 "tracker-xml-cursor.c"
	} else {
		xmlNode* _tmp15_;
		xmlElementType _tmp16_;
#line 160 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp15_ = text;
#line 160 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp16_ = _tmp15_->type;
#line 160 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		_tmp13_ = _tmp16_ != XML_TEXT_NODE;
#line 1156 "tracker-xml-cursor.c"
	}
#line 159 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	if (_tmp13_) {
#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 1168 "tracker-xml-cursor.c"
		}
#line 161 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		return result;
#line 1172 "tracker-xml-cursor.c"
	}
#line 163 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp17_ = text;
#line 163 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp18_ = _tmp17_->content;
#line 163 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp19_ = strlen (_tmp18_);
#line 163 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp20_ = _tmp19_;
#line 163 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_vala_length = (glong) _tmp20_;
#line 164 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp21_ = text;
#line 164 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_tmp22_ = _tmp21_->content;
#line 164 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	result = _tmp22_;
#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 1196 "tracker-xml-cursor.c"
	}
#line 164 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	return result;
#line 1200 "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 1220 "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 1229 "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 1239 "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 1253 "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 1265 "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 1272 "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 1291 "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 1300 "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 1310 "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 1320 "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 1334 "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 1358 "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 1366 "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 1381 "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 1390 "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_;
#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_ = _g_object_ref0 (cancellable);
#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 = _tmp1_;
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	tracker_remote_xml_cursor_real_next_async_co (_data_);
#line 1424 "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 1439 "tracker-xml-cursor.c"
		gboolean _tmp0_ = FALSE;
#line 22 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
		return _tmp0_;
#line 1443 "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 1449 "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 1460 "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 1465 "tracker-xml-cursor.c"
	}
	_state_0:
#line 194 "/home/carlos/Source/gnome/tracker/src/libtracker-remote/tracker-xml-cursor.vala"
	_data_->_tmp0_ = tracker_sparql_cursor_next ((TrackerSparqlCursor*) _data_->self, _data_->cancellable, &_data_->_inner_error_);
#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 1478 "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 1490 "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 1497 "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 1509 "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 1519 "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 1540 "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_STRINGS | G_PARAM_READABLE));
#line 1575 "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 1584 "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 1600 "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 1634 "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 1640 "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);
}



