tracker-0.16.2/src/libtracker-bus/tracker-bus-fd-cursor.c

Location Tool Test ID Function Issue
tracker-bus-fd-cursor.c:132:10 gcc unused-but-set-variable tracker_bus_fd_cursor_construct variable '_tmp4_' set but not used
tracker-bus-fd-cursor.c:161:2 clang-analyzer Value stored to '_tmp4_' is never read
tracker-bus-fd-cursor.c:238:7 gcc unused-but-set-variable tracker_bus_fd_cursor_real_get_variable_name variable '_tmp1__length1' set but not used
tracker-bus-fd-cursor.c:246:2 clang-analyzer Value stored to '_tmp0__length1' is never read
tracker-bus-fd-cursor.c:252:2 clang-analyzer Value stored to '_tmp1__length1' is never read
  1 /* tracker-bus-fd-cursor.c generated by valac 0.18.1, the Vala compiler
  2  * generated from tracker-bus-fd-cursor.vala, do not modify */
  3 
  4 /*
  5  * Copyright (C) 2010, Nokia <ivan.frade@nokia.com>
  6  *
  7  * This library is free software; you can redistribute it and/or
  8  * modify it under the terms of the GNU Lesser General Public
  9  * License as published by the Free Software Foundation; either
 10  * version 2.1 of the License, or (at your option) any later version.
 11  *
 12  * This library is distributed in the hope that it will be useful,
 13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 15  * Lesser General Public License for more details.
 16  *
 17  * You should have received a copy of the GNU Lesser General Public
 18  * License along with this library; if not, write to the
 19  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 20  * Boston, MA  02110-1301, USA.
 21  */
 22 
 23 #include <glib.h>
 24 #include <glib-object.h>
 25 #include "libtracker-sparql/tracker-sparql.h"
 26 #include <stdlib.h>
 27 #include <string.h>
 28 #include <gio/gio.h>
 29 
 30 
 31 #define TRACKER_BUS_TYPE_FD_CURSOR (tracker_bus_fd_cursor_get_type ())
 32 #define TRACKER_BUS_FD_CURSOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_BUS_TYPE_FD_CURSOR, TrackerBusFDCursor))
 33 #define TRACKER_BUS_FD_CURSOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_BUS_TYPE_FD_CURSOR, TrackerBusFDCursorClass))
 34 #define TRACKER_BUS_IS_FD_CURSOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_BUS_TYPE_FD_CURSOR))
 35 #define TRACKER_BUS_IS_FD_CURSOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_BUS_TYPE_FD_CURSOR))
 36 #define TRACKER_BUS_FD_CURSOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_BUS_TYPE_FD_CURSOR, TrackerBusFDCursorClass))
 37 
 38 typedef struct _TrackerBusFDCursor TrackerBusFDCursor;
 39 typedef struct _TrackerBusFDCursorClass TrackerBusFDCursorClass;
 40 typedef struct _TrackerBusFDCursorPrivate TrackerBusFDCursorPrivate;
 41 #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
 42 typedef struct _TrackerBusFdCursorNextAsyncData TrackerBusFdCursorNextAsyncData;
 43 
 44 struct _TrackerBusFDCursor {
 45 	TrackerSparqlCursor parent_instance;
 46 	TrackerBusFDCursorPrivate * priv;
 47 	gchar* buffer;
 48 	gulong buffer_index;
 49 	gulong buffer_size;
 50 	gint _n_columns;
 51 	gint* offsets;
 52 	gint* types;
 53 	gchar* data;
 54 	gchar** variable_names;
 55 	gint variable_names_length1;
 56 	gint _variable_names_size_;
 57 };
 58 
 59 struct _TrackerBusFDCursorClass {
 60 	TrackerSparqlCursorClass parent_class;
 61 };
 62 
 63 struct _TrackerBusFdCursorNextAsyncData {
 64 	int _state_;
 65 	GObject* _source_object_;
 66 	GAsyncResult* _res_;
 67 	GSimpleAsyncResult* _async_result;
 68 	TrackerBusFDCursor* self;
 69 	GCancellable* cancellable;
 70 	gboolean result;
 71 	GCancellable* _tmp0_;
 72 	gboolean _tmp1_;
 73 	gboolean _tmp2_;
 74 	GError * _inner_error_;
 75 };
 76 
 77 
 78 static gpointer tracker_bus_fd_cursor_parent_class = NULL;
 79 
 80 GType tracker_bus_fd_cursor_get_type (void) G_GNUC_CONST;
 81 enum  {
 82 	TRACKER_BUS_FD_CURSOR_DUMMY_PROPERTY,
 83 	TRACKER_BUS_FD_CURSOR_N_COLUMNS
 84 };
 85 TrackerBusFDCursor* tracker_bus_fd_cursor_new (gchar* buffer, gulong buffer_size, gchar** variable_names, int variable_names_length1);
 86 TrackerBusFDCursor* tracker_bus_fd_cursor_construct (GType object_type, gchar* buffer, gulong buffer_size, gchar** variable_names, int variable_names_length1);
 87 static gchar** _vala_array_dup3 (gchar** self, int length);
 88 static inline gint tracker_bus_fd_cursor_buffer_read_int (TrackerBusFDCursor* self);
 89 static TrackerSparqlValueType tracker_bus_fd_cursor_real_get_value_type (TrackerSparqlCursor* base, gint column);
 90 static const gchar* tracker_bus_fd_cursor_real_get_variable_name (TrackerSparqlCursor* base, gint column);
 91 static const gchar* tracker_bus_fd_cursor_real_get_string (TrackerSparqlCursor* base, gint column, glong* length);
 92 static gboolean tracker_bus_fd_cursor_real_next (TrackerSparqlCursor* base, GCancellable* cancellable, GError** error);
 93 static void tracker_bus_fd_cursor_real_next_async_data_free (gpointer _data);
 94 static void tracker_bus_fd_cursor_real_next_async (TrackerSparqlCursor* base, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
 95 static gboolean tracker_bus_fd_cursor_real_next_async_co (TrackerBusFdCursorNextAsyncData* _data_);
 96 static void tracker_bus_fd_cursor_real_rewind (TrackerSparqlCursor* base);
 97 static void tracker_bus_fd_cursor_finalize (GObject* obj);
 98 static void _vala_tracker_bus_fd_cursor_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
 99 static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
100 static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
101 
102 
103 static gchar** _vala_array_dup3 (gchar** self, int length) {
104 	gchar** result;
105 	int i;
106 #line 34 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala"
107 	result = g_new0 (gchar*, length + 1);
108 #line 34 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala"
109 	for (i = 0; i < length; i++) {
110 #line 111 "tracker-bus-fd-cursor.c"
111 		gchar* _tmp0_;
112 #line 34 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala"
113 		_tmp0_ = g_strdup (self[i]);
114 #line 34 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala"
115 		result[i] = _tmp0_;
116 #line 117 "tracker-bus-fd-cursor.c"
117 	}
118 #line 34 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala"
119 	return result;
120 #line 121 "tracker-bus-fd-cursor.c"
121 }
122 
123 
124 TrackerBusFDCursor* tracker_bus_fd_cursor_construct (GType object_type, gchar* buffer, gulong buffer_size, gchar** variable_names, int variable_names_length1) {
125 	TrackerBusFDCursor * self = NULL;
126 	gchar* _tmp0_;
127 	gulong _tmp1_;
128 	gchar** _tmp2_;
129 	gint _tmp2__length1;
130 	gchar** _tmp3_;
131 	gint _tmp3__length1;
132 	gchar** _tmp4_;
variable '_tmp4_' set but not used
(emitted by gcc)
133 gint _tmp4__length1; 134 #line 31 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 135 self = (TrackerBusFDCursor*) tracker_sparql_cursor_construct (object_type); 136 #line 32 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 137 _tmp0_ = buffer; 138 #line 32 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 139 self->buffer = _tmp0_; 140 #line 33 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 141 _tmp1_ = buffer_size; 142 #line 33 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 143 self->buffer_size = _tmp1_; 144 #line 34 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 145 _tmp2_ = variable_names; 146 #line 34 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 147 _tmp2__length1 = variable_names_length1; 148 #line 34 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 149 _tmp3_ = (_tmp2_ != NULL) ? _vala_array_dup3 (_tmp2_, _tmp2__length1) : ((gpointer) _tmp2_); 150 #line 34 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 151 _tmp3__length1 = _tmp2__length1; 152 #line 34 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 153 self->variable_names = (_vala_array_free (self->variable_names, self->variable_names_length1, (GDestroyNotify) g_free), NULL); 154 #line 34 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 155 self->variable_names = _tmp3_; 156 #line 34 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 157 self->variable_names_length1 = _tmp3__length1; 158 #line 34 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 159 self->_variable_names_size_ = self->variable_names_length1; 160 #line 35 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 161 _tmp4_ = variable_names;
Value stored to '_tmp4_' is never read
(emitted by clang-analyzer)

TODO: a detailed trace is available in the data model (not yet rendered in this report)

162 #line 35 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 163 _tmp4__length1 = variable_names_length1; 164 #line 35 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 165 self->_n_columns = _tmp4__length1; 166 #line 31 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 167 return self; 168 #line 169 "tracker-bus-fd-cursor.c" 169 } 170 171 172 TrackerBusFDCursor* tracker_bus_fd_cursor_new (gchar* buffer, gulong buffer_size, gchar** variable_names, int variable_names_length1) { 173 #line 31 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 174 return tracker_bus_fd_cursor_construct (TRACKER_BUS_TYPE_FD_CURSOR, buffer, buffer_size, variable_names, variable_names_length1); 175 #line 176 "tracker-bus-fd-cursor.c" 176 } 177 178 179 static inline gint tracker_bus_fd_cursor_buffer_read_int (TrackerBusFDCursor* self) { 180 gint result = 0; 181 gchar* _tmp0_; 182 gulong _tmp1_; 183 gint v; 184 gulong _tmp2_; 185 #line 42 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 186 g_return_val_if_fail (self != NULL, 0); 187 #line 43 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 188 _tmp0_ = self->buffer; 189 #line 43 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 190 _tmp1_ = self->buffer_index; 191 #line 43 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 192 v = *((gint*) (_tmp0_ + _tmp1_)); 193 #line 45 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 194 _tmp2_ = self->buffer_index; 195 #line 45 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 196 self->buffer_index = _tmp2_ + 4; 197 #line 47 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 198 result = v; 199 #line 47 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 200 return result; 201 #line 202 "tracker-bus-fd-cursor.c" 202 } 203 204 205 static TrackerSparqlValueType tracker_bus_fd_cursor_real_get_value_type (TrackerSparqlCursor* base, gint column) { 206 TrackerBusFDCursor * self; 207 TrackerSparqlValueType result = 0; 208 gint* _tmp0_; 209 gint* _tmp1_; 210 gint _tmp2_; 211 gint _tmp3_; 212 #line 54 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 213 self = (TrackerBusFDCursor*) base; 214 #line 54 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 215 _tmp0_ = self->types; 216 #line 54 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 217 g_return_val_if_fail (_tmp0_ != NULL, 0); 218 #line 57 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 219 _tmp1_ = self->types; 220 #line 57 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 221 _tmp2_ = column; 222 #line 57 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 223 _tmp3_ = _tmp1_[_tmp2_]; 224 #line 57 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 225 result = (TrackerSparqlValueType) _tmp3_; 226 #line 57 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 227 return result; 228 #line 229 "tracker-bus-fd-cursor.c" 229 } 230 231 232 static const gchar* tracker_bus_fd_cursor_real_get_variable_name (TrackerSparqlCursor* base, gint column) { 233 TrackerBusFDCursor * self; 234 const gchar* result = NULL; 235 gchar** _tmp0_; 236 gint _tmp0__length1; 237 gchar** _tmp1_; 238 gint _tmp1__length1;
variable '_tmp1__length1' set but not used
(emitted by gcc)
239 gint _tmp2_; 240 const gchar* _tmp3_; 241 #line 60 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 242 self = (TrackerBusFDCursor*) base; 243 #line 60 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 244 _tmp0_ = self->variable_names; 245 #line 60 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 246 _tmp0__length1 = self->variable_names_length1;
Value stored to '_tmp0__length1' is never read
(emitted by clang-analyzer)

TODO: a detailed trace is available in the data model (not yet rendered in this report)

247 #line 60 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 248 g_return_val_if_fail (_tmp0_ != NULL, NULL); 249 #line 62 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 250 _tmp1_ = self->variable_names; 251 #line 62 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 252 _tmp1__length1 = self->variable_names_length1;
Value stored to '_tmp1__length1' is never read
(emitted by clang-analyzer)

TODO: a detailed trace is available in the data model (not yet rendered in this report)

253 #line 62 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 254 _tmp2_ = column; 255 #line 62 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 256 _tmp3_ = _tmp1_[_tmp2_]; 257 #line 62 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 258 result = _tmp3_; 259 #line 62 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 260 return result; 261 #line 262 "tracker-bus-fd-cursor.c" 262 } 263 264 265 static const gchar* tracker_bus_fd_cursor_real_get_string (TrackerSparqlCursor* base, gint column, glong* length) { 266 TrackerBusFDCursor * self; 267 glong _vala_length = 0L; 268 const gchar* result = NULL; 269 gint _tmp0_; 270 gint _tmp1_; 271 gint _tmp2_; 272 gchar* _tmp3_; 273 const gchar* str; 274 gint* _tmp4_; 275 gint _tmp5_; 276 gint _tmp6_; 277 gint _tmp7_; 278 const gchar* _tmp13_; 279 gint _tmp14_; 280 gint _tmp15_; 281 const gchar* _tmp16_; 282 #line 65 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 283 self = (TrackerBusFDCursor*) base; 284 #line 65 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 285 _tmp0_ = column; 286 #line 65 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 287 _tmp1_ = tracker_sparql_cursor_get_n_columns ((TrackerSparqlCursor*) self); 288 #line 65 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 289 _tmp2_ = _tmp1_; 290 #line 65 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 291 _tmp3_ = self->data; 292 #line 65 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 293 g_return_val_if_fail ((_tmp0_ < _tmp2_) && (_tmp3_ != NULL), NULL); 294 #line 67 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 295 str = NULL; 296 #line 70 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 297 _tmp4_ = self->types; 298 #line 70 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 299 _tmp5_ = column; 300 #line 70 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 301 _tmp6_ = _tmp4_[_tmp5_]; 302 #line 70 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 303 if (_tmp6_ == ((gint) TRACKER_SPARQL_VALUE_TYPE_UNBOUND)) { 304 #line 71 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 305 _vala_length = (glong) 0; 306 #line 72 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 307 result = NULL; 308 #line 72 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 309 if (length) { 310 #line 72 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 311 *length = _vala_length; 312 #line 313 "tracker-bus-fd-cursor.c" 313 } 314 #line 72 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 315 return result; 316 #line 317 "tracker-bus-fd-cursor.c" 317 } 318 #line 75 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 319 _tmp7_ = column; 320 #line 75 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 321 if (_tmp7_ == 0) { 322 #line 323 "tracker-bus-fd-cursor.c" 323 gchar* _tmp8_; 324 #line 76 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 325 _tmp8_ = self->data; 326 #line 76 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 327 str = (const gchar*) _tmp8_; 328 #line 329 "tracker-bus-fd-cursor.c" 329 } else { 330 gchar* _tmp9_; 331 gint* _tmp10_; 332 gint _tmp11_; 333 gint _tmp12_; 334 #line 78 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 335 _tmp9_ = self->data; 336 #line 78 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 337 _tmp10_ = self->offsets; 338 #line 78 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 339 _tmp11_ = column; 340 #line 78 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 341 _tmp12_ = _tmp10_[_tmp11_ - 1]; 342 #line 78 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 343 str = (const gchar*) ((_tmp9_ + _tmp12_) + 1); 344 #line 345 "tracker-bus-fd-cursor.c" 345 } 346 #line 81 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 347 _tmp13_ = str; 348 #line 81 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 349 _tmp14_ = strlen (_tmp13_); 350 #line 81 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 351 _tmp15_ = _tmp14_; 352 #line 81 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 353 _vala_length = (glong) _tmp15_; 354 #line 83 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 355 _tmp16_ = str; 356 #line 83 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 357 result = _tmp16_; 358 #line 83 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 359 if (length) { 360 #line 83 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 361 *length = _vala_length; 362 #line 363 "tracker-bus-fd-cursor.c" 363 } 364 #line 83 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 365 return result; 366 #line 367 "tracker-bus-fd-cursor.c" 367 } 368 369 370 static gboolean tracker_bus_fd_cursor_real_next (TrackerSparqlCursor* base, GCancellable* cancellable, GError** error) { 371 TrackerBusFDCursor * self; 372 gboolean result = FALSE; 373 gint last_offset = 0; 374 gulong _tmp0_; 375 gulong _tmp1_; 376 gint _tmp2_ = 0; 377 gchar* _tmp3_; 378 gulong _tmp4_; 379 gulong _tmp5_; 380 gint _tmp6_; 381 gint _tmp7_; 382 gchar* _tmp8_; 383 gulong _tmp9_; 384 gulong _tmp10_; 385 gint _tmp11_; 386 gint _tmp12_; 387 gint _tmp13_ = 0; 388 gchar* _tmp14_; 389 gulong _tmp15_; 390 gulong _tmp16_; 391 gint _tmp17_; 392 #line 86 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 393 self = (TrackerBusFDCursor*) base; 394 #line 89 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 395 _tmp0_ = self->buffer_index; 396 #line 89 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 397 _tmp1_ = self->buffer_size; 398 #line 89 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 399 if (_tmp0_ >= _tmp1_) { 400 #line 90 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 401 result = FALSE; 402 #line 90 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 403 return result; 404 #line 405 "tracker-bus-fd-cursor.c" 405 } 406 #line 100 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 407 _tmp2_ = tracker_bus_fd_cursor_buffer_read_int (self); 408 #line 100 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 409 self->_n_columns = _tmp2_; 410 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 411 _tmp3_ = self->buffer; 412 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 413 _tmp4_ = self->buffer_index; 414 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 415 self->types = (gint*) (_tmp3_ + _tmp4_); 416 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 417 _tmp5_ = self->buffer_index; 418 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 419 _tmp6_ = tracker_sparql_cursor_get_n_columns ((TrackerSparqlCursor*) self); 420 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 421 _tmp7_ = _tmp6_; 422 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 423 self->buffer_index = _tmp5_ + (sizeof (gint) * _tmp7_); 424 #line 107 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 425 _tmp8_ = self->buffer; 426 #line 107 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 427 _tmp9_ = self->buffer_index; 428 #line 107 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 429 self->offsets = (gint*) (_tmp8_ + _tmp9_); 430 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 431 _tmp10_ = self->buffer_index; 432 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 433 _tmp11_ = tracker_sparql_cursor_get_n_columns ((TrackerSparqlCursor*) self); 434 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 435 _tmp12_ = _tmp11_; 436 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 437 self->buffer_index = _tmp10_ + (sizeof (gint) * (_tmp12_ - 1)); 438 #line 109 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 439 _tmp13_ = tracker_bus_fd_cursor_buffer_read_int (self); 440 #line 109 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 441 last_offset = _tmp13_; 442 #line 111 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 443 _tmp14_ = self->buffer; 444 #line 111 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 445 _tmp15_ = self->buffer_index; 446 #line 111 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 447 self->data = _tmp14_ + _tmp15_; 448 #line 113 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 449 _tmp16_ = self->buffer_index; 450 #line 113 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 451 _tmp17_ = last_offset; 452 #line 113 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 453 self->buffer_index = _tmp16_ + (_tmp17_ + 1); 454 #line 115 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 455 result = TRUE; 456 #line 115 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 457 return result; 458 #line 459 "tracker-bus-fd-cursor.c" 459 } 460 461 462 static void tracker_bus_fd_cursor_real_next_async_data_free (gpointer _data) { 463 TrackerBusFdCursorNextAsyncData* _data_; 464 _data_ = _data; 465 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 466 _g_object_unref0 (_data_->cancellable); 467 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 468 _g_object_unref0 (_data_->self); 469 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 470 g_slice_free (TrackerBusFdCursorNextAsyncData, _data_); 471 #line 472 "tracker-bus-fd-cursor.c" 472 } 473 474 475 static gpointer _g_object_ref0 (gpointer self) { 476 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 477 return self ? g_object_ref (self) : NULL; 478 #line 479 "tracker-bus-fd-cursor.c" 479 } 480 481 482 static void tracker_bus_fd_cursor_real_next_async (TrackerSparqlCursor* base, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) { 483 TrackerBusFDCursor * self; 484 TrackerBusFdCursorNextAsyncData* _data_; 485 TrackerBusFDCursor* _tmp0_; 486 GCancellable* _tmp1_; 487 GCancellable* _tmp2_; 488 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 489 self = (TrackerBusFDCursor*) base; 490 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 491 _data_ = g_slice_new0 (TrackerBusFdCursorNextAsyncData); 492 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 493 _data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, tracker_bus_fd_cursor_real_next_async); 494 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 495 g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, tracker_bus_fd_cursor_real_next_async_data_free); 496 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 497 _tmp0_ = _g_object_ref0 (self); 498 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 499 _data_->self = _tmp0_; 500 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 501 _tmp1_ = cancellable; 502 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 503 _tmp2_ = _g_object_ref0 (_tmp1_); 504 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 505 _g_object_unref0 (_data_->cancellable); 506 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 507 _data_->cancellable = _tmp2_; 508 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 509 tracker_bus_fd_cursor_real_next_async_co (_data_); 510 #line 511 "tracker-bus-fd-cursor.c" 511 } 512 513 514 static gboolean tracker_bus_fd_cursor_real_next_finish (TrackerSparqlCursor* base, GAsyncResult* _res_, GError** error) { 515 gboolean result; 516 TrackerBusFdCursorNextAsyncData* _data_; 517 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 518 if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) { 519 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 520 return FALSE; 521 #line 522 "tracker-bus-fd-cursor.c" 522 } 523 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 524 _data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_)); 525 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 526 result = _data_->result; 527 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 528 return result; 529 #line 530 "tracker-bus-fd-cursor.c" 530 } 531 532 533 static gboolean tracker_bus_fd_cursor_real_next_async_co (TrackerBusFdCursorNextAsyncData* _data_) { 534 #line 118 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 535 switch (_data_->_state_) { 536 #line 118 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 537 case 0: 538 #line 539 "tracker-bus-fd-cursor.c" 539 goto _state_0; 540 default: 541 #line 118 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 542 g_assert_not_reached (); 543 #line 544 "tracker-bus-fd-cursor.c" 544 } 545 _state_0: 546 #line 120 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 547 _data_->_tmp0_ = _data_->cancellable; 548 #line 120 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 549 _data_->_tmp1_ = FALSE; 550 #line 120 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 551 _data_->_tmp1_ = tracker_sparql_cursor_next ((TrackerSparqlCursor*) _data_->self, _data_->_tmp0_, &_data_->_inner_error_); 552 #line 120 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 553 _data_->_tmp2_ = _data_->_tmp1_; 554 #line 120 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 555 if (_data_->_inner_error_ != NULL) { 556 #line 120 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 557 g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_); 558 #line 120 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 559 g_error_free (_data_->_inner_error_); 560 #line 120 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 561 if (_data_->_state_ == 0) { 562 #line 120 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 563 g_simple_async_result_complete_in_idle (_data_->_async_result); 564 #line 565 "tracker-bus-fd-cursor.c" 565 } else { 566 #line 120 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 567 g_simple_async_result_complete (_data_->_async_result); 568 #line 569 "tracker-bus-fd-cursor.c" 569 } 570 #line 120 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 571 g_object_unref (_data_->_async_result); 572 #line 120 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 573 return FALSE; 574 #line 575 "tracker-bus-fd-cursor.c" 575 } 576 #line 120 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 577 _data_->result = _data_->_tmp2_; 578 #line 120 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 579 if (_data_->_state_ == 0) { 580 #line 120 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 581 g_simple_async_result_complete_in_idle (_data_->_async_result); 582 #line 583 "tracker-bus-fd-cursor.c" 583 } else { 584 #line 120 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 585 g_simple_async_result_complete (_data_->_async_result); 586 #line 587 "tracker-bus-fd-cursor.c" 587 } 588 #line 120 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 589 g_object_unref (_data_->_async_result); 590 #line 120 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 591 return FALSE; 592 #line 118 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 593 if (_data_->_state_ == 0) { 594 #line 118 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 595 g_simple_async_result_complete_in_idle (_data_->_async_result); 596 #line 597 "tracker-bus-fd-cursor.c" 597 } else { 598 #line 118 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 599 g_simple_async_result_complete (_data_->_async_result); 600 #line 601 "tracker-bus-fd-cursor.c" 601 } 602 #line 118 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 603 g_object_unref (_data_->_async_result); 604 #line 118 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 605 return FALSE; 606 #line 607 "tracker-bus-fd-cursor.c" 607 } 608 609 610 static void tracker_bus_fd_cursor_real_rewind (TrackerSparqlCursor* base) { 611 TrackerBusFDCursor * self; 612 gchar* _tmp0_; 613 #line 123 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 614 self = (TrackerBusFDCursor*) base; 615 #line 124 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 616 self->buffer_index = (gulong) 0; 617 #line 125 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 618 _tmp0_ = self->buffer; 619 #line 125 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 620 self->data = _tmp0_; 621 #line 622 "tracker-bus-fd-cursor.c" 622 } 623 624 625 static gint tracker_bus_fd_cursor_real_get_n_columns (TrackerSparqlCursor* base) { 626 gint result; 627 TrackerBusFDCursor* self; 628 gint _tmp0_; 629 #line 51 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 630 self = (TrackerBusFDCursor*) base; 631 #line 51 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 632 _tmp0_ = self->_n_columns; 633 #line 51 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 634 result = _tmp0_; 635 #line 51 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 636 return result; 637 #line 638 "tracker-bus-fd-cursor.c" 638 } 639 640 641 static void tracker_bus_fd_cursor_class_init (TrackerBusFDCursorClass * klass) { 642 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 643 tracker_bus_fd_cursor_parent_class = g_type_class_peek_parent (klass); 644 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 645 TRACKER_SPARQL_CURSOR_CLASS (klass)->get_value_type = tracker_bus_fd_cursor_real_get_value_type; 646 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 647 TRACKER_SPARQL_CURSOR_CLASS (klass)->get_variable_name = tracker_bus_fd_cursor_real_get_variable_name; 648 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 649 TRACKER_SPARQL_CURSOR_CLASS (klass)->get_string = tracker_bus_fd_cursor_real_get_string; 650 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 651 TRACKER_SPARQL_CURSOR_CLASS (klass)->next = tracker_bus_fd_cursor_real_next; 652 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 653 TRACKER_SPARQL_CURSOR_CLASS (klass)->next_async = tracker_bus_fd_cursor_real_next_async; 654 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 655 TRACKER_SPARQL_CURSOR_CLASS (klass)->next_finish = tracker_bus_fd_cursor_real_next_finish; 656 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 657 TRACKER_SPARQL_CURSOR_CLASS (klass)->rewind = tracker_bus_fd_cursor_real_rewind; 658 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 659 TRACKER_SPARQL_CURSOR_CLASS (klass)->get_n_columns = tracker_bus_fd_cursor_real_get_n_columns; 660 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 661 G_OBJECT_CLASS (klass)->get_property = _vala_tracker_bus_fd_cursor_get_property; 662 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 663 G_OBJECT_CLASS (klass)->finalize = tracker_bus_fd_cursor_finalize; 664 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 665 g_object_class_install_property (G_OBJECT_CLASS (klass), TRACKER_BUS_FD_CURSOR_N_COLUMNS, 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)); 666 #line 667 "tracker-bus-fd-cursor.c" 667 } 668 669 670 static void tracker_bus_fd_cursor_instance_init (TrackerBusFDCursor * self) { 671 } 672 673 674 static void tracker_bus_fd_cursor_finalize (GObject* obj) { 675 TrackerBusFDCursor * self; 676 gchar* _tmp0_; 677 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 678 self = G_TYPE_CHECK_INSTANCE_CAST (obj, TRACKER_BUS_TYPE_FD_CURSOR, TrackerBusFDCursor); 679 #line 39 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 680 _tmp0_ = self->buffer; 681 #line 39 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 682 g_free (_tmp0_); 683 #line 29 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 684 self->variable_names = (_vala_array_free (self->variable_names, self->variable_names_length1, (GDestroyNotify) g_free), NULL); 685 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 686 G_OBJECT_CLASS (tracker_bus_fd_cursor_parent_class)->finalize (obj); 687 #line 688 "tracker-bus-fd-cursor.c" 688 } 689 690 691 GType tracker_bus_fd_cursor_get_type (void) { 692 static volatile gsize tracker_bus_fd_cursor_type_id__volatile = 0; 693 if (g_once_init_enter (&tracker_bus_fd_cursor_type_id__volatile)) { 694 static const GTypeInfo g_define_type_info = { sizeof (TrackerBusFDCursorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tracker_bus_fd_cursor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrackerBusFDCursor), 0, (GInstanceInitFunc) tracker_bus_fd_cursor_instance_init, NULL }; 695 GType tracker_bus_fd_cursor_type_id; 696 tracker_bus_fd_cursor_type_id = g_type_register_static (TRACKER_SPARQL_TYPE_CURSOR, "TrackerBusFDCursor", &g_define_type_info, 0); 697 g_once_init_leave (&tracker_bus_fd_cursor_type_id__volatile, tracker_bus_fd_cursor_type_id); 698 } 699 return tracker_bus_fd_cursor_type_id__volatile; 700 } 701 702 703 static void _vala_tracker_bus_fd_cursor_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) { 704 TrackerBusFDCursor * self; 705 self = G_TYPE_CHECK_INSTANCE_CAST (object, TRACKER_BUS_TYPE_FD_CURSOR, TrackerBusFDCursor); 706 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 707 switch (property_id) { 708 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 709 case TRACKER_BUS_FD_CURSOR_N_COLUMNS: 710 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 711 g_value_set_int (value, tracker_sparql_cursor_get_n_columns ((TrackerSparqlCursor*) self)); 712 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 713 break; 714 #line 715 "tracker-bus-fd-cursor.c" 715 default: 716 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 717 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); 718 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala" 719 break; 720 #line 721 "tracker-bus-fd-cursor.c" 721 } 722 } 723 724 725 static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) { 726 if ((array != NULL) && (destroy_func != NULL)) { 727 int i; 728 for (i = 0; i < array_length; i = i + 1) { 729 if (((gpointer*) array)[i] != NULL) { 730 destroy_func (((gpointer*) array)[i]); 731 } 732 } 733 } 734 } 735 736 737 static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) { 738 _vala_array_destroy (array, array_length, destroy_func); 739 g_free (array); 740 }