tracker-0.16.2/src/tracker-store/tracker-steroids.c

Location Tool Test ID Function Issue
tracker-steroids.c:632:21 gcc unused-but-set-variable block6_data_unref variable 'self' set but not used
tracker-steroids.c:634:3 clang-analyzer Value stored to 'self' is never read
tracker-steroids.c:683:2 clang-analyzer Value stored to 'self' is never read
tracker-steroids.c:721:2 clang-analyzer Value stored to '_column_sizes_size_' is never read
tracker-steroids.c:731:2 clang-analyzer Value stored to '_column_offsets_size_' is never read
tracker-steroids.c:741:2 clang-analyzer Value stored to '_column_data_size_' is never read
tracker-steroids.c:775:12 gcc unused-but-set-variable ___lambda7_ variable '_tmp27_' set but not used
tracker-steroids.c:815:5 clang-analyzer Value stored to '_tmp27_' is never read
tracker-steroids.c:959:6 clang-analyzer Value stored to '_tmp44__length1' is never read
tracker-steroids.c:967:6 clang-analyzer Value stored to '_tmp47_' is never read
tracker-steroids.c:971:6 clang-analyzer Value stored to '_tmp48__length1' is never read
tracker-steroids.c:983:6 clang-analyzer Value stored to '_tmp52_' is never read
tracker-steroids.c:989:6 clang-analyzer Value stored to '_tmp54__length1' is never read
tracker-steroids.c:999:6 clang-analyzer Value stored to '_tmp57__length1' is never read
tracker-steroids.c:1007:6 clang-analyzer Value stored to '_tmp60_' is never read
tracker-steroids.c:1155:6 clang-analyzer Value stored to '_tmp78__length1' is never read
tracker-steroids.c:1231:6 clang-analyzer Value stored to '_tmp87__length1' is never read
tracker-steroids.c:1246:7 clang-analyzer Value stored to '_tmp90__length1' is never read
tracker-steroids.c:2101:29 gcc unused-but-set-variable tracker_steroids_update_finish variable '_data_' set but not used
tracker-steroids.c:2109:2 clang-analyzer Value stored to '_data_' is never read
tracker-steroids.c:2260:34 gcc unused-but-set-variable tracker_steroids_batch_update_finish variable '_data_' set but not used
tracker-steroids.c:2268:2 clang-analyzer Value stored to '_data_' is never read
tracker-steroids.c:3713:11 gcc unused-but-set-variable tracker_steroids_dbus_interface_get_property variable 'object' set but not used
tracker-steroids.c:3715:2 clang-analyzer Value stored to 'object' is never read
tracker-steroids.c:3722:11 gcc unused-but-set-variable tracker_steroids_dbus_interface_set_property variable 'object' set but not used
tracker-steroids.c:3724:2 clang-analyzer Value stored to 'object' is never read
   1 /* tracker-steroids.c generated by valac 0.18.1, the Vala compiler
   2  * generated from tracker-steroids.vala, do not modify */
   3 
   4 /*
   5  * Copyright (C) 2010, Codeminded BVBA <abustany@gnome.org>
   6  * Copyright (C) 2011, Nokia <ivan.frade@nokia.com>
   7  *
   8  * This library is free software; you can redistribute it and/or
   9  * modify it under the terms of the GNU Lesser General Public
  10  * License as published by the Free Software Foundation; either
  11  * version 2.1 of the License, or (at your option) any later version.
  12  *
  13  * This library is distributed in the hope that it will be useful,
  14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16  * Lesser General Public License for more details.
  17  *
  18  * You should have received a copy of the GNU Lesser General Public
  19  * License along with this library; if not, write to the
  20  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  21  * Boston, MA  02110-1301, USA.
  22  */
  23 
  24 #include <glib.h>
  25 #include <glib-object.h>
  26 #include <gio/gio.h>
  27 #include <stdlib.h>
  28 #include <string.h>
  29 #include <gio/gunixoutputstream.h>
  30 #include "libtracker-common/tracker-common.h"
  31 #include "libtracker-data/tracker-db-interface.h"
  32 #include "libtracker-sparql/tracker-sparql.h"
  33 #include <gio/gunixinputstream.h>
  34 #include <gio/gunixfdlist.h>
  35 
  36 
  37 #define TRACKER_TYPE_STEROIDS (tracker_steroids_get_type ())
  38 #define TRACKER_STEROIDS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_TYPE_STEROIDS, TrackerSteroids))
  39 #define TRACKER_STEROIDS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_TYPE_STEROIDS, TrackerSteroidsClass))
  40 #define TRACKER_IS_STEROIDS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_TYPE_STEROIDS))
  41 #define TRACKER_IS_STEROIDS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_TYPE_STEROIDS))
  42 #define TRACKER_STEROIDS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_TYPE_STEROIDS, TrackerSteroidsClass))
  43 
  44 typedef struct _TrackerSteroids TrackerSteroids;
  45 typedef struct _TrackerSteroidsClass TrackerSteroidsClass;
  46 typedef struct _TrackerSteroidsPrivate TrackerSteroidsPrivate;
  47 #define _g_free0(var) (var = (g_free (var), NULL))
  48 #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
  49 typedef struct _Block5Data Block5Data;
  50 typedef struct _Block6Data Block6Data;
  51 
  52 #define TRACKER_STORE_TYPE_PRIORITY (tracker_store_priority_get_type ())
  53 #define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
  54 typedef struct _TrackerSteroidsQueryData TrackerSteroidsQueryData;
  55 #define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))
  56 typedef struct _TrackerSteroidsUpdateInternalData TrackerSteroidsUpdateInternalData;
  57 typedef struct _TrackerSteroidsUpdateData TrackerSteroidsUpdateData;
  58 typedef struct _TrackerSteroidsBatchUpdateData TrackerSteroidsBatchUpdateData;
  59 typedef struct _TrackerSteroidsUpdateBlankData TrackerSteroidsUpdateBlankData;
  60 typedef struct _TrackerSteroidsBatchUpdateBlankData TrackerSteroidsBatchUpdateBlankData;
  61 #define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))
  62 #define _g_variant_builder_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_builder_unref (var), NULL)))
  63 typedef struct _TrackerSteroidsUpdateArrayData TrackerSteroidsUpdateArrayData;
  64 
  65 struct _TrackerSteroids {
  66 	GObject parent_instance;
  67 	TrackerSteroidsPrivate * priv;
  68 };
  69 
  70 struct _TrackerSteroidsClass {
  71 	GObjectClass parent_class;
  72 };
  73 
  74 struct _Block5Data {
  75 	int _ref_count_;
  76 	TrackerSteroids * self;
  77 	GUnixOutputStream* output_stream;
  78 	gpointer _async_data_;
  79 };
  80 
  81 struct _Block6Data {
  82 	int _ref_count_;
  83 	Block5Data * _data5_;
  84 	gchar** variable_names;
  85 	gint variable_names_length1;
  86 	gint _variable_names_size_;
  87 };
  88 
  89 typedef enum  {
  90 	TRACKER_STORE_PRIORITY_HIGH,
  91 	TRACKER_STORE_PRIORITY_LOW,
  92 	TRACKER_STORE_PRIORITY_TURTLE,
  93 	TRACKER_STORE_PRIORITY_N_PRIORITIES
  94 } TrackerStorePriority;
  95 
  96 typedef void (*TrackerStoreSparqlQueryInThread) (TrackerDBCursor* cursor, void* user_data, GError** error);
  97 struct _TrackerSteroidsQueryData {
  98 	int _state_;
  99 	GObject* _source_object_;
 100 	GAsyncResult* _res_;
 101 	GSimpleAsyncResult* _async_result;
 102 	TrackerSteroids* self;
 103 	char* sender;
 104 	gchar* query;
 105 	GUnixOutputStream* output_stream;
 106 	gchar** result;
 107 	gint result_length1;
 108 	Block5Data* _data5_;
 109 	GUnixOutputStream* _tmp0_;
 110 	const char* _tmp1_;
 111 	TrackerDBusRequest* _tmp2_;
 112 	TrackerDBusRequest* request;
 113 	const gchar* _tmp3_;
 114 	Block6Data* _data6_;
 115 	const gchar* _tmp4_;
 116 	const char* _tmp5_;
 117 	gchar** _tmp6_;
 118 	gint _tmp6__length1;
 119 	gchar** _tmp7_;
 120 	gint _tmp7__length1;
 121 	GError* e;
 122 	GError* _tmp8_;
 123 	GError* _tmp9_;
 124 	GError* _tmp10_;
 125 	GError* _tmp11_;
 126 	GError* _tmp12_;
 127 	const gchar* _tmp13_;
 128 	GError* _tmp14_;
 129 	GError * _inner_error_;
 130 };
 131 
 132 struct _TrackerSteroidsUpdateInternalData {
 133 	int _state_;
 134 	GObject* _source_object_;
 135 	GAsyncResult* _res_;
 136 	GSimpleAsyncResult* _async_result;
 137 	TrackerSteroids* self;
 138 	char* sender;
 139 	TrackerStorePriority priority;
 140 	gboolean blank;
 141 	GUnixInputStream* input_stream;
 142 	GVariant* result;
 143 	const gchar* _tmp0_;
 144 	TrackerStorePriority _tmp1_;
 145 	const gchar* _tmp2_;
 146 	gboolean _tmp3_;
 147 	const char* _tmp4_;
 148 	const gchar* _tmp5_;
 149 	const gchar* _tmp6_;
 150 	TrackerDBusRequest* _tmp7_;
 151 	TrackerDBusRequest* request;
 152 	gsize bytes_read;
 153 	GUnixInputStream* _tmp8_;
 154 	GDataInputStream* _tmp9_;
 155 	GDataInputStream* data_input_stream;
 156 	GDataInputStream* _tmp10_;
 157 	GDataInputStream* _tmp11_;
 158 	GDataInputStream* _tmp12_;
 159 	gint32 _tmp13_;
 160 	gint query_size;
 161 	gint _tmp14_;
 162 	guint8* _tmp15_;
 163 	guint8* query;
 164 	gint query_length1;
 165 	gint _query_size_;
 166 	GDataInputStream* _tmp16_;
 167 	guint8* _tmp17_;
 168 	gint _tmp17__length1;
 169 	gint _tmp18_;
 170 	gsize _tmp19_;
 171 	TrackerDBusRequest* _tmp20_;
 172 	guint8* _tmp21_;
 173 	gint _tmp21__length1;
 174 	gboolean _tmp22_;
 175 	guint8* _tmp23_;
 176 	gint _tmp23__length1;
 177 	TrackerStorePriority _tmp24_;
 178 	const char* _tmp25_;
 179 	TrackerDBusRequest* _tmp26_;
 180 	guint8* _tmp27_;
 181 	gint _tmp27__length1;
 182 	TrackerStorePriority _tmp28_;
 183 	const char* _tmp29_;
 184 	GVariant* _tmp30_;
 185 	GVariant* variant;
 186 	TrackerDBusRequest* _tmp31_;
 187 	GError* ie;
 188 	GError* _tmp32_;
 189 	const gchar* _tmp33_;
 190 	GError* _tmp34_;
 191 	GError* e;
 192 	TrackerDBusRequest* _tmp35_;
 193 	GError* _tmp36_;
 194 	GError* _tmp37_;
 195 	GError* _tmp38_;
 196 	GError* _tmp39_;
 197 	GError* _tmp40_;
 198 	const gchar* _tmp41_;
 199 	GError* _tmp42_;
 200 	GError * _inner_error_;
 201 };
 202 
 203 struct _TrackerSteroidsUpdateData {
 204 	int _state_;
 205 	GObject* _source_object_;
 206 	GAsyncResult* _res_;
 207 	GSimpleAsyncResult* _async_result;
 208 	TrackerSteroids* self;
 209 	char* sender;
 210 	GUnixInputStream* input_stream;
 211 	const char* _tmp0_;
 212 	GUnixInputStream* _tmp1_;
 213 	GVariant* _tmp2_;
 214 	GVariant* _tmp3_;
 215 	GError * _inner_error_;
 216 };
 217 
 218 struct _TrackerSteroidsBatchUpdateData {
 219 	int _state_;
 220 	GObject* _source_object_;
 221 	GAsyncResult* _res_;
 222 	GSimpleAsyncResult* _async_result;
 223 	TrackerSteroids* self;
 224 	char* sender;
 225 	GUnixInputStream* input_stream;
 226 	const char* _tmp0_;
 227 	GUnixInputStream* _tmp1_;
 228 	GVariant* _tmp2_;
 229 	GVariant* _tmp3_;
 230 	GError * _inner_error_;
 231 };
 232 
 233 struct _TrackerSteroidsUpdateBlankData {
 234 	int _state_;
 235 	GObject* _source_object_;
 236 	GAsyncResult* _res_;
 237 	GSimpleAsyncResult* _async_result;
 238 	TrackerSteroids* self;
 239 	char* sender;
 240 	GUnixInputStream* input_stream;
 241 	GVariant* result;
 242 	const char* _tmp0_;
 243 	GUnixInputStream* _tmp1_;
 244 	GVariant* _tmp2_;
 245 	GVariant* _tmp3_;
 246 	GError * _inner_error_;
 247 };
 248 
 249 struct _TrackerSteroidsBatchUpdateBlankData {
 250 	int _state_;
 251 	GObject* _source_object_;
 252 	GAsyncResult* _res_;
 253 	GSimpleAsyncResult* _async_result;
 254 	TrackerSteroids* self;
 255 	char* sender;
 256 	GUnixInputStream* input_stream;
 257 	GVariant* result;
 258 	const char* _tmp0_;
 259 	GUnixInputStream* _tmp1_;
 260 	GVariant* _tmp2_;
 261 	GVariant* _tmp3_;
 262 	GError * _inner_error_;
 263 };
 264 
 265 struct _TrackerSteroidsUpdateArrayData {
 266 	int _state_;
 267 	GObject* _source_object_;
 268 	GAsyncResult* _res_;
 269 	GSimpleAsyncResult* _async_result;
 270 	TrackerSteroids* self;
 271 	char* sender;
 272 	GUnixInputStream* input_stream;
 273 	GVariant* result;
 274 	const char* _tmp0_;
 275 	TrackerDBusRequest* _tmp1_;
 276 	TrackerDBusRequest* request;
 277 	GUnixInputStream* _tmp2_;
 278 	GDataInputStream* _tmp3_;
 279 	GDataInputStream* data_input_stream;
 280 	GDataInputStream* _tmp4_;
 281 	GDataInputStream* _tmp5_;
 282 	GDataInputStream* _tmp6_;
 283 	gint32 _tmp7_;
 284 	gint query_count;
 285 	GString* _tmp8_;
 286 	GString* combined_query;
 287 	gint _tmp9_;
 288 	gchar** _tmp10_;
 289 	gchar** query_array;
 290 	gint query_array_length1;
 291 	gint _query_array_size_;
 292 	gint i;
 293 	gboolean _tmp11_;
 294 	gboolean _tmp12_;
 295 	gint _tmp13_;
 296 	gint _tmp14_;
 297 	gint _tmp15_;
 298 	gsize bytes_read;
 299 	GDataInputStream* _tmp16_;
 300 	gint32 _tmp17_;
 301 	gint query_size;
 302 	gchar** _tmp18_;
 303 	gint _tmp18__length1;
 304 	gint _tmp19_;
 305 	gint _tmp20_;
 306 	guint8* _tmp21_;
 307 	gchar* _tmp22_;
 308 	GDataInputStream* _tmp23_;
 309 	gchar** _tmp24_;
 310 	gint _tmp24__length1;
 311 	gint _tmp25_;
 312 	const gchar* _tmp26_;
 313 	gint _tmp27_;
 314 	gsize _tmp28_;
 315 	TrackerDBusRequest* _tmp29_;
 316 	gchar** _tmp30_;
 317 	gint _tmp30__length1;
 318 	gint _tmp31_;
 319 	const gchar* _tmp32_;
 320 	GString* _tmp33_;
 321 	gchar** _tmp34_;
 322 	gint _tmp34__length1;
 323 	gint _tmp35_;
 324 	const gchar* _tmp36_;
 325 	GVariantBuilder* _tmp37_;
 326 	GVariantBuilder* builder;
 327 	GString* _tmp38_;
 328 	const gchar* _tmp39_;
 329 	const char* _tmp40_;
 330 	gboolean _tmp41_;
 331 	gboolean _tmp42_;
 332 	gint _tmp43_;
 333 	gint _tmp44_;
 334 	gint _tmp45_;
 335 	GVariantBuilder* _tmp46_;
 336 	GVariantBuilder* _tmp47_;
 337 	TrackerDBusRequest* _tmp48_;
 338 	GVariantBuilder* _tmp49_;
 339 	GVariant* _tmp50_;
 340 	gboolean _tmp51_;
 341 	gboolean _tmp52_;
 342 	gint _tmp53_;
 343 	gint _tmp54_;
 344 	gint _tmp55_;
 345 	TrackerDBusRequest* _tmp56_;
 346 	gchar** _tmp57_;
 347 	gint _tmp57__length1;
 348 	gint _tmp58_;
 349 	const gchar* _tmp59_;
 350 	gchar** _tmp60_;
 351 	gint _tmp60__length1;
 352 	gint _tmp61_;
 353 	const gchar* _tmp62_;
 354 	const char* _tmp63_;
 355 	GVariantBuilder* _tmp64_;
 356 	GVariantBuilder* _tmp65_;
 357 	GError* e1;
 358 	GVariantBuilder* _tmp66_;
 359 	GVariantBuilder* _tmp67_;
 360 	GError* _tmp68_;
 361 	const gchar* _tmp69_;
 362 	TrackerDBusRequest* _tmp70_;
 363 	GVariantBuilder* _tmp71_;
 364 	GVariant* _tmp72_;
 365 	GError* e;
 366 	TrackerDBusRequest* _tmp73_;
 367 	GError* _tmp74_;
 368 	GError* _tmp75_;
 369 	GError* _tmp76_;
 370 	GError* _tmp77_;
 371 	GError* _tmp78_;
 372 	const gchar* _tmp79_;
 373 	GError* _tmp80_;
 374 	GError * _inner_error_;
 375 };
 376 
 377 
 378 static gpointer tracker_steroids_parent_class = NULL;
 379 
 380 GType tracker_steroids_get_type (void) G_GNUC_CONST;
 381 guint tracker_steroids_register_object (void* object, GDBusConnection* connection, const gchar* path, GError** error);
 382 enum  {
 383 	TRACKER_STEROIDS_DUMMY_PROPERTY
 384 };
 385 #define TRACKER_STEROIDS_PATH "/org/freedesktop/Tracker1/Steroids"
 386 #define TRACKER_STEROIDS_BUFFER_SIZE 65536
 387 static void tracker_steroids_query_data_free (gpointer _data);
 388 void tracker_steroids_query (TrackerSteroids* self, const char* sender, const gchar* query, GUnixOutputStream* output_stream, GAsyncReadyCallback _callback_, gpointer _user_data_);
 389 gchar** tracker_steroids_query_finish (TrackerSteroids* self, GAsyncResult* _res_, int* result_length1, GError** error);
 390 static gboolean tracker_steroids_query_co (TrackerSteroidsQueryData* _data_);
 391 static Block5Data* block5_data_ref (Block5Data* _data5_);
 392 static void block5_data_unref (void * _userdata_);
 393 static Block6Data* block6_data_ref (Block6Data* _data6_);
 394 static void block6_data_unref (void * _userdata_);
 395 GType tracker_store_priority_get_type (void) G_GNUC_CONST;
 396 void tracker_store_sparql_query (const gchar* sparql, TrackerStorePriority priority, TrackerStoreSparqlQueryInThread in_thread, void* in_thread_target, const gchar* client_id, GAsyncReadyCallback _callback_, gpointer _user_data_);
 397 void tracker_store_sparql_query_finish (GAsyncResult* _res_, GError** error);
 398 static void ___lambda7_ (Block6Data* _data6_, TrackerDBCursor* cursor, GError** error);
 399 static void ____lambda7__tracker_store_sparql_query_in_thread (TrackerDBCursor* cursor, gpointer self, GError** error);
 400 static void tracker_steroids_query_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
 401 static gchar** _vala_array_dup1 (gchar** self, int length);
 402 static void tracker_steroids_update_internal_data_free (gpointer _data);
 403 static void tracker_steroids_update_internal (TrackerSteroids* self, const char* sender, TrackerStorePriority priority, gboolean blank, GUnixInputStream* input_stream, GAsyncReadyCallback _callback_, gpointer _user_data_);
 404 static GVariant* tracker_steroids_update_internal_finish (TrackerSteroids* self, GAsyncResult* _res_, GError** error);
 405 static gboolean tracker_steroids_update_internal_co (TrackerSteroidsUpdateInternalData* _data_);
 406 void tracker_store_sparql_update (const gchar* sparql, TrackerStorePriority priority, const gchar* client_id, GAsyncReadyCallback _callback_, gpointer _user_data_);
 407 void tracker_store_sparql_update_finish (GAsyncResult* _res_, GError** error);
 408 static void tracker_steroids_update_internal_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
 409 void tracker_store_sparql_update_blank (const gchar* sparql, TrackerStorePriority priority, const gchar* client_id, GAsyncReadyCallback _callback_, gpointer _user_data_);
 410 GVariant* tracker_store_sparql_update_blank_finish (GAsyncResult* _res_, GError** error);
 411 static void tracker_steroids_update_data_free (gpointer _data);
 412 void tracker_steroids_update (TrackerSteroids* self, const char* sender, GUnixInputStream* input_stream, GAsyncReadyCallback _callback_, gpointer _user_data_);
 413 void tracker_steroids_update_finish (TrackerSteroids* self, GAsyncResult* _res_, GError** error);
 414 static gboolean tracker_steroids_update_co (TrackerSteroidsUpdateData* _data_);
 415 static void tracker_steroids_update_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
 416 static void tracker_steroids_batch_update_data_free (gpointer _data);
 417 void tracker_steroids_batch_update (TrackerSteroids* self, const char* sender, GUnixInputStream* input_stream, GAsyncReadyCallback _callback_, gpointer _user_data_);
 418 void tracker_steroids_batch_update_finish (TrackerSteroids* self, GAsyncResult* _res_, GError** error);
 419 static gboolean tracker_steroids_batch_update_co (TrackerSteroidsBatchUpdateData* _data_);
 420 static void tracker_steroids_batch_update_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
 421 static void tracker_steroids_update_blank_data_free (gpointer _data);
 422 void tracker_steroids_update_blank (TrackerSteroids* self, const char* sender, GUnixInputStream* input_stream, GAsyncReadyCallback _callback_, gpointer _user_data_);
 423 GVariant* tracker_steroids_update_blank_finish (TrackerSteroids* self, GAsyncResult* _res_, GError** error);
 424 static gboolean tracker_steroids_update_blank_co (TrackerSteroidsUpdateBlankData* _data_);
 425 static void tracker_steroids_update_blank_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
 426 static void tracker_steroids_batch_update_blank_data_free (gpointer _data);
 427 void tracker_steroids_batch_update_blank (TrackerSteroids* self, const char* sender, GUnixInputStream* input_stream, GAsyncReadyCallback _callback_, gpointer _user_data_);
 428 GVariant* tracker_steroids_batch_update_blank_finish (TrackerSteroids* self, GAsyncResult* _res_, GError** error);
 429 static gboolean tracker_steroids_batch_update_blank_co (TrackerSteroidsBatchUpdateBlankData* _data_);
 430 static void tracker_steroids_batch_update_blank_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
 431 static void tracker_steroids_update_array_data_free (gpointer _data);
 432 void tracker_steroids_update_array (TrackerSteroids* self, const char* sender, GUnixInputStream* input_stream, GAsyncReadyCallback _callback_, gpointer _user_data_);
 433 GVariant* tracker_steroids_update_array_finish (TrackerSteroids* self, GAsyncResult* _res_, GError** error);
 434 static gboolean tracker_steroids_update_array_co (TrackerSteroidsUpdateArrayData* _data_);
 435 static void tracker_steroids_update_array_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
 436 TrackerSteroids* tracker_steroids_new (void);
 437 TrackerSteroids* tracker_steroids_construct (GType object_type);
 438 static void _dbus_tracker_steroids_query (TrackerSteroids* self, GVariant* parameters, GDBusMethodInvocation* invocation);
 439 static void _dbus_tracker_steroids_query_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
 440 static void _dbus_tracker_steroids_update (TrackerSteroids* self, GVariant* parameters, GDBusMethodInvocation* invocation);
 441 static void _dbus_tracker_steroids_update_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
 442 static void _dbus_tracker_steroids_batch_update (TrackerSteroids* self, GVariant* parameters, GDBusMethodInvocation* invocation);
 443 static void _dbus_tracker_steroids_batch_update_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
 444 static void _dbus_tracker_steroids_update_blank (TrackerSteroids* self, GVariant* parameters, GDBusMethodInvocation* invocation);
 445 static void _dbus_tracker_steroids_update_blank_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
 446 static void _dbus_tracker_steroids_batch_update_blank (TrackerSteroids* self, GVariant* parameters, GDBusMethodInvocation* invocation);
 447 static void _dbus_tracker_steroids_batch_update_blank_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
 448 static void _dbus_tracker_steroids_update_array (TrackerSteroids* self, GVariant* parameters, GDBusMethodInvocation* invocation);
 449 static void _dbus_tracker_steroids_update_array_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
 450 static void tracker_steroids_dbus_interface_method_call (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* method_name, GVariant* parameters, GDBusMethodInvocation* invocation, gpointer user_data);
 451 static GVariant* tracker_steroids_dbus_interface_get_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GError** error, gpointer user_data);
 452 static gboolean tracker_steroids_dbus_interface_set_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GVariant* value, GError** error, gpointer user_data);
 453 static void _tracker_steroids_unregister_object (gpointer user_data);
 454 static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
 455 static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
 456 
 457 static const GDBusArgInfo _tracker_steroids_dbus_arg_info_query_query = {-1, "query", "s"};
 458 static const GDBusArgInfo _tracker_steroids_dbus_arg_info_query_output_stream = {-1, "output_stream", "h"};
 459 static const GDBusArgInfo _tracker_steroids_dbus_arg_info_query_result = {-1, "result", "as"};
 460 static const GDBusArgInfo * const _tracker_steroids_dbus_arg_info_query_in[] = {&_tracker_steroids_dbus_arg_info_query_query, &_tracker_steroids_dbus_arg_info_query_output_stream, NULL};
 461 static const GDBusArgInfo * const _tracker_steroids_dbus_arg_info_query_out[] = {&_tracker_steroids_dbus_arg_info_query_result, NULL};
 462 static const GDBusMethodInfo _tracker_steroids_dbus_method_info_query = {-1, "Query", (GDBusArgInfo **) (&_tracker_steroids_dbus_arg_info_query_in), (GDBusArgInfo **) (&_tracker_steroids_dbus_arg_info_query_out)};
 463 static const GDBusArgInfo _tracker_steroids_dbus_arg_info_update_input_stream = {-1, "input_stream", "h"};
 464 static const GDBusArgInfo * const _tracker_steroids_dbus_arg_info_update_in[] = {&_tracker_steroids_dbus_arg_info_update_input_stream, NULL};
 465 static const GDBusArgInfo * const _tracker_steroids_dbus_arg_info_update_out[] = {NULL};
 466 static const GDBusMethodInfo _tracker_steroids_dbus_method_info_update = {-1, "Update", (GDBusArgInfo **) (&_tracker_steroids_dbus_arg_info_update_in), (GDBusArgInfo **) (&_tracker_steroids_dbus_arg_info_update_out)};
 467 static const GDBusArgInfo _tracker_steroids_dbus_arg_info_batch_update_input_stream = {-1, "input_stream", "h"};
 468 static const GDBusArgInfo * const _tracker_steroids_dbus_arg_info_batch_update_in[] = {&_tracker_steroids_dbus_arg_info_batch_update_input_stream, NULL};
 469 static const GDBusArgInfo * const _tracker_steroids_dbus_arg_info_batch_update_out[] = {NULL};
 470 static const GDBusMethodInfo _tracker_steroids_dbus_method_info_batch_update = {-1, "BatchUpdate", (GDBusArgInfo **) (&_tracker_steroids_dbus_arg_info_batch_update_in), (GDBusArgInfo **) (&_tracker_steroids_dbus_arg_info_batch_update_out)};
 471 static const GDBusArgInfo _tracker_steroids_dbus_arg_info_update_blank_input_stream = {-1, "input_stream", "h"};
 472 static const GDBusArgInfo _tracker_steroids_dbus_arg_info_update_blank_result = {-1, "result", "aaa{ss}"};
 473 static const GDBusArgInfo * const _tracker_steroids_dbus_arg_info_update_blank_in[] = {&_tracker_steroids_dbus_arg_info_update_blank_input_stream, NULL};
 474 static const GDBusArgInfo * const _tracker_steroids_dbus_arg_info_update_blank_out[] = {&_tracker_steroids_dbus_arg_info_update_blank_result, NULL};
 475 static const GDBusMethodInfo _tracker_steroids_dbus_method_info_update_blank = {-1, "UpdateBlank", (GDBusArgInfo **) (&_tracker_steroids_dbus_arg_info_update_blank_in), (GDBusArgInfo **) (&_tracker_steroids_dbus_arg_info_update_blank_out)};
 476 static const GDBusArgInfo _tracker_steroids_dbus_arg_info_batch_update_blank_input_stream = {-1, "input_stream", "h"};
 477 static const GDBusArgInfo _tracker_steroids_dbus_arg_info_batch_update_blank_result = {-1, "result", "aaa{ss}"};
 478 static const GDBusArgInfo * const _tracker_steroids_dbus_arg_info_batch_update_blank_in[] = {&_tracker_steroids_dbus_arg_info_batch_update_blank_input_stream, NULL};
 479 static const GDBusArgInfo * const _tracker_steroids_dbus_arg_info_batch_update_blank_out[] = {&_tracker_steroids_dbus_arg_info_batch_update_blank_result, NULL};
 480 static const GDBusMethodInfo _tracker_steroids_dbus_method_info_batch_update_blank = {-1, "BatchUpdateBlank", (GDBusArgInfo **) (&_tracker_steroids_dbus_arg_info_batch_update_blank_in), (GDBusArgInfo **) (&_tracker_steroids_dbus_arg_info_batch_update_blank_out)};
 481 static const GDBusArgInfo _tracker_steroids_dbus_arg_info_update_array_input_stream = {-1, "input_stream", "h"};
 482 static const GDBusArgInfo _tracker_steroids_dbus_arg_info_update_array_result = {-1, "result", "as"};
 483 static const GDBusArgInfo * const _tracker_steroids_dbus_arg_info_update_array_in[] = {&_tracker_steroids_dbus_arg_info_update_array_input_stream, NULL};
 484 static const GDBusArgInfo * const _tracker_steroids_dbus_arg_info_update_array_out[] = {&_tracker_steroids_dbus_arg_info_update_array_result, NULL};
 485 static const GDBusMethodInfo _tracker_steroids_dbus_method_info_update_array = {-1, "UpdateArray", (GDBusArgInfo **) (&_tracker_steroids_dbus_arg_info_update_array_in), (GDBusArgInfo **) (&_tracker_steroids_dbus_arg_info_update_array_out)};
 486 static const GDBusMethodInfo * const _tracker_steroids_dbus_method_info[] = {&_tracker_steroids_dbus_method_info_query, &_tracker_steroids_dbus_method_info_update, &_tracker_steroids_dbus_method_info_batch_update, &_tracker_steroids_dbus_method_info_update_blank, &_tracker_steroids_dbus_method_info_batch_update_blank, &_tracker_steroids_dbus_method_info_update_array, NULL};
 487 static const GDBusSignalInfo * const _tracker_steroids_dbus_signal_info[] = {NULL};
 488 static const GDBusPropertyInfo * const _tracker_steroids_dbus_property_info[] = {NULL};
 489 static const GDBusInterfaceInfo _tracker_steroids_dbus_interface_info = {-1, "org.freedesktop.Tracker1.Steroids", (GDBusMethodInfo **) (&_tracker_steroids_dbus_method_info), (GDBusSignalInfo **) (&_tracker_steroids_dbus_signal_info), (GDBusPropertyInfo **) (&_tracker_steroids_dbus_property_info)};
 490 static const GDBusInterfaceVTable _tracker_steroids_dbus_interface_vtable = {tracker_steroids_dbus_interface_method_call, tracker_steroids_dbus_interface_get_property, tracker_steroids_dbus_interface_set_property};
 491 
 492 static void tracker_steroids_query_data_free (gpointer _data) {
 493 	TrackerSteroidsQueryData* _data_;
 494 	_data_ = _data;
 495 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 496 	_g_free0 (_data_->sender);
 497 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 498 	_g_free0 (_data_->query);
 499 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 500 	_data_->result = (_vala_array_free (_data_->result, _data_->result_length1, (GDestroyNotify) g_free), NULL);
 501 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 502 	_g_object_unref0 (_data_->self);
 503 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 504 	g_slice_free (TrackerSteroidsQueryData, _data_);
 505 #line 506 "tracker-steroids.c"
 506 }
 507 
 508 
 509 static gpointer _g_object_ref0 (gpointer self) {
 510 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 511 	return self ? g_object_ref (self) : NULL;
 512 #line 513 "tracker-steroids.c"
 513 }
 514 
 515 
 516 void tracker_steroids_query (TrackerSteroids* self, const char* sender, const gchar* query, GUnixOutputStream* output_stream, GAsyncReadyCallback _callback_, gpointer _user_data_) {
 517 	TrackerSteroidsQueryData* _data_;
 518 	TrackerSteroids* _tmp0_;
 519 	const char* _tmp1_;
 520 	char* _tmp2_;
 521 	const gchar* _tmp3_;
 522 	gchar* _tmp4_;
 523 	GUnixOutputStream* _tmp5_;
 524 	GUnixOutputStream* _tmp6_;
 525 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 526 	_data_ = g_slice_new0 (TrackerSteroidsQueryData);
 527 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 528 	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, tracker_steroids_query);
 529 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 530 	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, tracker_steroids_query_data_free);
 531 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 532 	_tmp0_ = _g_object_ref0 (self);
 533 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 534 	_data_->self = _tmp0_;
 535 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 536 	_tmp1_ = sender;
 537 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 538 	_tmp2_ = g_strdup (_tmp1_);
 539 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 540 	_g_free0 (_data_->sender);
 541 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 542 	_data_->sender = _tmp2_;
 543 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 544 	_tmp3_ = query;
 545 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 546 	_tmp4_ = g_strdup (_tmp3_);
 547 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 548 	_g_free0 (_data_->query);
 549 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 550 	_data_->query = _tmp4_;
 551 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 552 	_tmp5_ = output_stream;
 553 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 554 	_tmp6_ = _g_object_ref0 (_tmp5_);
 555 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 556 	_g_object_unref0 (_data_->output_stream);
 557 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 558 	_data_->output_stream = _tmp6_;
 559 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 560 	tracker_steroids_query_co (_data_);
 561 #line 562 "tracker-steroids.c"
 562 }
 563 
 564 
 565 gchar** tracker_steroids_query_finish (TrackerSteroids* self, GAsyncResult* _res_, int* result_length1, GError** error) {
 566 	gchar** result;
 567 	TrackerSteroidsQueryData* _data_;
 568 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 569 	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
 570 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 571 		return NULL;
 572 #line 573 "tracker-steroids.c"
 573 	}
 574 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 575 	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
 576 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 577 	result = _data_->result;
 578 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 579 	*result_length1 = _data_->result_length1;
 580 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 581 	_data_->result = NULL;
 582 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 583 	return result;
 584 #line 585 "tracker-steroids.c"
 585 }
 586 
 587 
 588 static Block5Data* block5_data_ref (Block5Data* _data5_) {
 589 #line 27 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 590 	g_atomic_int_inc (&_data5_->_ref_count_);
 591 #line 27 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 592 	return _data5_;
 593 #line 594 "tracker-steroids.c"
 594 }
 595 
 596 
 597 static void block5_data_unref (void * _userdata_) {
 598 	Block5Data* _data5_;
 599 	_data5_ = (Block5Data*) _userdata_;
 600 #line 27 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 601 	if (g_atomic_int_dec_and_test (&_data5_->_ref_count_)) {
 602 #line 603 "tracker-steroids.c"
 603 		TrackerSteroids * self;
 604 #line 27 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 605 		self = _data5_->self;
 606 #line 27 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 607 		_g_object_unref0 (_data5_->output_stream);
 608 #line 27 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 609 		_g_object_unref0 (self);
 610 #line 27 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 611 		g_slice_free (Block5Data, _data5_);
 612 #line 613 "tracker-steroids.c"
 613 	}
 614 }
 615 
 616 
 617 static Block6Data* block6_data_ref (Block6Data* _data6_) {
 618 #line 30 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 619 	g_atomic_int_inc (&_data6_->_ref_count_);
 620 #line 30 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 621 	return _data6_;
 622 #line 623 "tracker-steroids.c"
 623 }
 624 
 625 
 626 static void block6_data_unref (void * _userdata_) {
 627 	Block6Data* _data6_;
 628 	_data6_ = (Block6Data*) _userdata_;
 629 #line 30 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala"
 630 	if (g_atomic_int_dec_and_test (&_data6_->_ref_count_)) {
 631 #line 632 "tracker-steroids.c"
 632 		TrackerSteroids * self;
variable 'self' set but not used
(emitted by gcc)
633 #line 30 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 634 self = _data6_->_data5_->self;
Value stored to 'self' is never read
(emitted by clang-analyzer)

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

635 #line 30 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 636 _data6_->variable_names = (_vala_array_free (_data6_->variable_names, _data6_->variable_names_length1, (GDestroyNotify) g_free), NULL); 637 #line 30 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 638 block5_data_unref (_data6_->_data5_); 639 #line 30 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 640 _data6_->_data5_ = NULL; 641 #line 30 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 642 g_slice_free (Block6Data, _data6_); 643 #line 644 "tracker-steroids.c" 644 } 645 } 646 647 648 static void ___lambda7_ (Block6Data* _data6_, TrackerDBCursor* cursor, GError** error) { 649 Block5Data* _data5_; 650 TrackerSteroids * self; 651 GUnixOutputStream* _tmp0_; 652 GBufferedOutputStream* _tmp1_; 653 GBufferedOutputStream* _tmp2_; 654 GDataOutputStream* _tmp3_; 655 GDataOutputStream* _tmp4_; 656 GDataOutputStream* data_output_stream; 657 GDataOutputStream* _tmp5_; 658 TrackerDBCursor* _tmp6_; 659 gint _tmp7_; 660 gint _tmp8_; 661 gint n_columns; 662 gint _tmp9_; 663 gint* _tmp10_ = NULL; 664 gint* column_sizes; 665 gint column_sizes_length1; 666 gint _column_sizes_size_; 667 gint _tmp11_; 668 gint* _tmp12_ = NULL; 669 gint* column_offsets; 670 gint column_offsets_length1; 671 gint _column_offsets_size_; 672 gint _tmp13_; 673 gchar** _tmp14_ = NULL; 674 gchar** column_data; 675 gint column_data_length1; 676 gint _column_data_size_; 677 gint _tmp15_; 678 gchar** _tmp16_ = NULL; 679 GError * _inner_error_ = NULL; 680 #line 33 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 681 _data5_ = _data6_->_data5_; 682 #line 33 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 683 self = _data5_->self;
Value stored to 'self' is never read
(emitted by clang-analyzer)

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

684 #line 33 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 685 g_return_if_fail (cursor != NULL); 686 #line 34 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 687 _tmp0_ = _data5_->output_stream; 688 #line 34 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 689 _tmp1_ = (GBufferedOutputStream*) g_buffered_output_stream_new_sized ((GOutputStream*) _tmp0_, (gsize) TRACKER_STEROIDS_BUFFER_SIZE); 690 #line 34 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 691 _tmp2_ = _tmp1_; 692 #line 34 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 693 _tmp3_ = g_data_output_stream_new ((GOutputStream*) _tmp2_); 694 #line 34 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 695 _tmp4_ = _tmp3_; 696 #line 34 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 697 _g_object_unref0 (_tmp2_); 698 #line 34 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 699 data_output_stream = _tmp4_; 700 #line 35 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 701 _tmp5_ = data_output_stream; 702 #line 35 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 703 g_data_output_stream_set_byte_order (_tmp5_, G_DATA_STREAM_BYTE_ORDER_HOST_ENDIAN); 704 #line 37 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 705 _tmp6_ = cursor; 706 #line 37 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 707 _tmp7_ = tracker_sparql_cursor_get_n_columns ((TrackerSparqlCursor*) _tmp6_); 708 #line 37 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 709 _tmp8_ = _tmp7_; 710 #line 37 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 711 n_columns = _tmp8_; 712 #line 39 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 713 _tmp9_ = n_columns; 714 #line 39 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 715 _tmp10_ = g_new0 (gint, _tmp9_); 716 #line 39 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 717 column_sizes = _tmp10_; 718 #line 39 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 719 column_sizes_length1 = _tmp9_; 720 #line 39 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 721 _column_sizes_size_ = column_sizes_length1;
Value stored to '_column_sizes_size_' is never read
(emitted by clang-analyzer)

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

722 #line 40 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 723 _tmp11_ = n_columns; 724 #line 40 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 725 _tmp12_ = g_new0 (gint, _tmp11_); 726 #line 40 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 727 column_offsets = _tmp12_; 728 #line 40 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 729 column_offsets_length1 = _tmp11_; 730 #line 40 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 731 _column_offsets_size_ = column_offsets_length1;
Value stored to '_column_offsets_size_' is never read
(emitted by clang-analyzer)

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

732 #line 41 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 733 _tmp13_ = n_columns; 734 #line 41 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 735 _tmp14_ = g_new0 (gchar*, _tmp13_ + 1); 736 #line 41 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 737 column_data = _tmp14_; 738 #line 41 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 739 column_data_length1 = _tmp13_; 740 #line 41 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 741 _column_data_size_ = column_data_length1;
Value stored to '_column_data_size_' is never read
(emitted by clang-analyzer)

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

742 #line 43 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 743 _tmp15_ = n_columns; 744 #line 43 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 745 _tmp16_ = g_new0 (gchar*, _tmp15_ + 1); 746 #line 43 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 747 _data6_->variable_names = (_vala_array_free (_data6_->variable_names, _data6_->variable_names_length1, (GDestroyNotify) g_free), NULL); 748 #line 43 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 749 _data6_->variable_names = _tmp16_; 750 #line 43 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 751 _data6_->variable_names_length1 = _tmp15_; 752 #line 43 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 753 _data6_->_variable_names_size_ = _data6_->variable_names_length1; 754 #line 755 "tracker-steroids.c" 755 { 756 gint i; 757 #line 44 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 758 i = 0; 759 #line 760 "tracker-steroids.c" 760 { 761 gboolean _tmp17_; 762 #line 44 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 763 _tmp17_ = TRUE; 764 #line 44 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 765 while (TRUE) { 766 #line 767 "tracker-steroids.c" 767 gboolean _tmp18_; 768 gint _tmp20_; 769 gint _tmp21_; 770 gint _tmp22_; 771 TrackerDBCursor* _tmp23_; 772 gint _tmp24_; 773 const gchar* _tmp25_ = NULL; 774 gchar* _tmp26_; 775 gchar* _tmp27_;
variable '_tmp27_' set but not used
(emitted by gcc)
776 #line 44 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 777 _tmp18_ = _tmp17_; 778 #line 44 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 779 if (!_tmp18_) { 780 #line 781 "tracker-steroids.c" 781 gint _tmp19_; 782 #line 44 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 783 _tmp19_ = i; 784 #line 44 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 785 i = _tmp19_ + 1; 786 #line 787 "tracker-steroids.c" 787 } 788 #line 44 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 789 _tmp17_ = FALSE; 790 #line 44 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 791 _tmp20_ = i; 792 #line 44 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 793 _tmp21_ = n_columns; 794 #line 44 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 795 if (!(_tmp20_ < _tmp21_)) { 796 #line 44 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 797 break; 798 #line 799 "tracker-steroids.c" 799 } 800 #line 45 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 801 _tmp22_ = i; 802 #line 45 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 803 _tmp23_ = cursor; 804 #line 45 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 805 _tmp24_ = i; 806 #line 45 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 807 _tmp25_ = tracker_sparql_cursor_get_variable_name ((TrackerSparqlCursor*) _tmp23_, _tmp24_); 808 #line 45 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 809 _tmp26_ = g_strdup (_tmp25_); 810 #line 45 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 811 _g_free0 (_data6_->variable_names[_tmp22_]); 812 #line 45 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 813 _data6_->variable_names[_tmp22_] = _tmp26_; 814 #line 45 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 815 _tmp27_ = _data6_->variable_names[_tmp22_];
Value stored to '_tmp27_' is never read
(emitted by clang-analyzer)

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

816 #line 817 "tracker-steroids.c" 817 } 818 } 819 } 820 #line 48 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 821 while (TRUE) { 822 #line 823 "tracker-steroids.c" 823 TrackerDBCursor* _tmp28_; 824 gboolean _tmp29_ = FALSE; 825 gboolean _tmp30_; 826 gint last_offset; 827 GDataOutputStream* _tmp61_; 828 gint _tmp62_; 829 #line 48 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 830 _tmp28_ = cursor; 831 #line 48 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 832 _tmp29_ = tracker_sparql_cursor_next ((TrackerSparqlCursor*) _tmp28_, NULL, &_inner_error_); 833 #line 48 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 834 _tmp30_ = _tmp29_; 835 #line 48 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 836 if (_inner_error_ != NULL) { 837 #line 48 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 838 g_propagate_error (error, _inner_error_); 839 #line 48 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 840 column_data = (_vala_array_free (column_data, column_data_length1, (GDestroyNotify) g_free), NULL); 841 #line 48 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 842 column_offsets = (g_free (column_offsets), NULL); 843 #line 48 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 844 column_sizes = (g_free (column_sizes), NULL); 845 #line 48 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 846 _g_object_unref0 (data_output_stream); 847 #line 48 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 848 return; 849 #line 850 "tracker-steroids.c" 850 } 851 #line 48 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 852 if (!_tmp30_) { 853 #line 48 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 854 break; 855 #line 856 "tracker-steroids.c" 856 } 857 #line 49 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 858 last_offset = -1; 859 #line 860 "tracker-steroids.c" 860 { 861 gint i; 862 #line 51 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 863 i = 0; 864 #line 865 "tracker-steroids.c" 865 { 866 gboolean _tmp31_; 867 #line 51 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 868 _tmp31_ = TRUE; 869 #line 51 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 870 while (TRUE) { 871 #line 872 "tracker-steroids.c" 872 gboolean _tmp32_; 873 gint _tmp34_; 874 gint _tmp35_; 875 TrackerDBCursor* _tmp36_; 876 gint _tmp37_; 877 const gchar* _tmp38_ = NULL; 878 const gchar* str; 879 gint _tmp39_ = 0; 880 const gchar* _tmp40_; 881 gint* _tmp44_; 882 gint _tmp44__length1; 883 gint _tmp45_; 884 gint _tmp46_; 885 gint _tmp47_; 886 gchar** _tmp48_; 887 gint _tmp48__length1; 888 gint _tmp49_; 889 const gchar* _tmp50_; 890 gchar* _tmp51_; 891 gchar* _tmp52_; 892 gint _tmp53_; 893 gint* _tmp54_; 894 gint _tmp54__length1; 895 gint _tmp55_; 896 gint _tmp56_; 897 gint* _tmp57_; 898 gint _tmp57__length1; 899 gint _tmp58_; 900 gint _tmp59_; 901 gint _tmp60_; 902 #line 51 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 903 _tmp32_ = _tmp31_; 904 #line 51 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 905 if (!_tmp32_) { 906 #line 907 "tracker-steroids.c" 907 gint _tmp33_; 908 #line 51 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 909 _tmp33_ = i; 910 #line 51 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 911 i = _tmp33_ + 1; 912 #line 913 "tracker-steroids.c" 913 } 914 #line 51 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 915 _tmp31_ = FALSE; 916 #line 51 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 917 _tmp34_ = i; 918 #line 51 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 919 _tmp35_ = n_columns; 920 #line 51 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 921 if (!(_tmp34_ < _tmp35_)) { 922 #line 51 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 923 break; 924 #line 925 "tracker-steroids.c" 925 } 926 #line 52 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 927 _tmp36_ = cursor; 928 #line 52 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 929 _tmp37_ = i; 930 #line 52 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 931 _tmp38_ = tracker_sparql_cursor_get_string ((TrackerSparqlCursor*) _tmp36_, _tmp37_, NULL); 932 #line 52 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 933 str = _tmp38_; 934 #line 54 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 935 _tmp40_ = str; 936 #line 54 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 937 if (_tmp40_ != NULL) { 938 #line 939 "tracker-steroids.c" 939 const gchar* _tmp41_; 940 gint _tmp42_; 941 gint _tmp43_; 942 #line 54 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 943 _tmp41_ = str; 944 #line 54 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 945 _tmp42_ = strlen (_tmp41_); 946 #line 54 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 947 _tmp43_ = _tmp42_; 948 #line 54 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 949 _tmp39_ = _tmp43_; 950 #line 951 "tracker-steroids.c" 951 } else { 952 #line 54 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 953 _tmp39_ = 0; 954 #line 955 "tracker-steroids.c" 955 } 956 #line 54 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 957 _tmp44_ = column_sizes; 958 #line 54 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 959 _tmp44__length1 = column_sizes_length1;
Value stored to '_tmp44__length1' is never read
(emitted by clang-analyzer)

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

960 #line 54 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 961 _tmp45_ = i; 962 #line 54 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 963 _tmp46_ = _tmp39_; 964 #line 54 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 965 _tmp44_[_tmp45_] = _tmp46_; 966 #line 54 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 967 _tmp47_ = _tmp44_[_tmp45_];
Value stored to '_tmp47_' is never read
(emitted by clang-analyzer)

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

968 #line 55 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 969 _tmp48_ = column_data; 970 #line 55 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 971 _tmp48__length1 = column_data_length1;
Value stored to '_tmp48__length1' is never read
(emitted by clang-analyzer)

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

972 #line 55 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 973 _tmp49_ = i; 974 #line 55 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 975 _tmp50_ = str; 976 #line 55 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 977 _tmp51_ = g_strdup (_tmp50_); 978 #line 55 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 979 _g_free0 (_tmp48_[_tmp49_]); 980 #line 55 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 981 _tmp48_[_tmp49_] = _tmp51_; 982 #line 55 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 983 _tmp52_ = _tmp48_[_tmp49_];
Value stored to '_tmp52_' is never read
(emitted by clang-analyzer)

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

984 #line 57 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 985 _tmp53_ = last_offset; 986 #line 57 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 987 _tmp54_ = column_sizes; 988 #line 57 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 989 _tmp54__length1 = column_sizes_length1;
Value stored to '_tmp54__length1' is never read
(emitted by clang-analyzer)

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

990 #line 57 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 991 _tmp55_ = i; 992 #line 57 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 993 _tmp56_ = _tmp54_[_tmp55_]; 994 #line 57 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 995 last_offset = _tmp53_ + (_tmp56_ + 1); 996 #line 58 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 997 _tmp57_ = column_offsets; 998 #line 58 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 999 _tmp57__length1 = column_offsets_length1;
Value stored to '_tmp57__length1' is never read
(emitted by clang-analyzer)

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

1000 #line 58 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1001 _tmp58_ = i; 1002 #line 58 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1003 _tmp59_ = last_offset; 1004 #line 58 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1005 _tmp57_[_tmp58_] = _tmp59_; 1006 #line 58 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1007 _tmp60_ = _tmp57_[_tmp58_];
Value stored to '_tmp60_' is never read
(emitted by clang-analyzer)

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

1008 #line 1009 "tracker-steroids.c" 1009 } 1010 } 1011 } 1012 #line 61 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1013 _tmp61_ = data_output_stream; 1014 #line 61 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1015 _tmp62_ = n_columns; 1016 #line 61 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1017 g_data_output_stream_put_int32 (_tmp61_, (gint32) _tmp62_, NULL, &_inner_error_); 1018 #line 61 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1019 if (_inner_error_ != NULL) { 1020 #line 61 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1021 g_propagate_error (error, _inner_error_); 1022 #line 61 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1023 column_data = (_vala_array_free (column_data, column_data_length1, (GDestroyNotify) g_free), NULL); 1024 #line 61 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1025 column_offsets = (g_free (column_offsets), NULL); 1026 #line 61 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1027 column_sizes = (g_free (column_sizes), NULL); 1028 #line 61 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1029 _g_object_unref0 (data_output_stream); 1030 #line 61 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1031 return; 1032 #line 1033 "tracker-steroids.c" 1033 } 1034 { 1035 gint i; 1036 #line 63 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1037 i = 0; 1038 #line 1039 "tracker-steroids.c" 1039 { 1040 gboolean _tmp63_; 1041 #line 63 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1042 _tmp63_ = TRUE; 1043 #line 63 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1044 while (TRUE) { 1045 #line 1046 "tracker-steroids.c" 1046 gboolean _tmp64_; 1047 gint _tmp66_; 1048 gint _tmp67_; 1049 GDataOutputStream* _tmp68_; 1050 TrackerDBCursor* _tmp69_; 1051 gint _tmp70_; 1052 TrackerSparqlValueType _tmp71_ = 0; 1053 #line 63 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1054 _tmp64_ = _tmp63_; 1055 #line 63 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1056 if (!_tmp64_) { 1057 #line 1058 "tracker-steroids.c" 1058 gint _tmp65_; 1059 #line 63 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1060 _tmp65_ = i; 1061 #line 63 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1062 i = _tmp65_ + 1; 1063 #line 1064 "tracker-steroids.c" 1064 } 1065 #line 63 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1066 _tmp63_ = FALSE; 1067 #line 63 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1068 _tmp66_ = i; 1069 #line 63 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1070 _tmp67_ = n_columns; 1071 #line 63 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1072 if (!(_tmp66_ < _tmp67_)) { 1073 #line 63 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1074 break; 1075 #line 1076 "tracker-steroids.c" 1076 } 1077 #line 65 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1078 _tmp68_ = data_output_stream; 1079 #line 65 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1080 _tmp69_ = cursor; 1081 #line 65 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1082 _tmp70_ = i; 1083 #line 65 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1084 _tmp71_ = tracker_sparql_cursor_get_value_type ((TrackerSparqlCursor*) _tmp69_, _tmp70_); 1085 #line 65 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1086 g_data_output_stream_put_int32 (_tmp68_, (gint32) ((gint) _tmp71_), NULL, &_inner_error_); 1087 #line 65 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1088 if (_inner_error_ != NULL) { 1089 #line 65 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1090 g_propagate_error (error, _inner_error_); 1091 #line 65 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1092 column_data = (_vala_array_free (column_data, column_data_length1, (GDestroyNotify) g_free), NULL); 1093 #line 65 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1094 column_offsets = (g_free (column_offsets), NULL); 1095 #line 65 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1096 column_sizes = (g_free (column_sizes), NULL); 1097 #line 65 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1098 _g_object_unref0 (data_output_stream); 1099 #line 65 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1100 return; 1101 #line 1102 "tracker-steroids.c" 1102 } 1103 } 1104 } 1105 } 1106 { 1107 gint i; 1108 #line 68 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1109 i = 0; 1110 #line 1111 "tracker-steroids.c" 1111 { 1112 gboolean _tmp72_; 1113 #line 68 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1114 _tmp72_ = TRUE; 1115 #line 68 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1116 while (TRUE) { 1117 #line 1118 "tracker-steroids.c" 1118 gboolean _tmp73_; 1119 gint _tmp75_; 1120 gint _tmp76_; 1121 GDataOutputStream* _tmp77_; 1122 gint* _tmp78_; 1123 gint _tmp78__length1; 1124 gint _tmp79_; 1125 gint _tmp80_; 1126 #line 68 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1127 _tmp73_ = _tmp72_; 1128 #line 68 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1129 if (!_tmp73_) { 1130 #line 1131 "tracker-steroids.c" 1131 gint _tmp74_; 1132 #line 68 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1133 _tmp74_ = i; 1134 #line 68 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1135 i = _tmp74_ + 1; 1136 #line 1137 "tracker-steroids.c" 1137 } 1138 #line 68 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1139 _tmp72_ = FALSE; 1140 #line 68 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1141 _tmp75_ = i; 1142 #line 68 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1143 _tmp76_ = n_columns; 1144 #line 68 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1145 if (!(_tmp75_ < _tmp76_)) { 1146 #line 68 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1147 break; 1148 #line 1149 "tracker-steroids.c" 1149 } 1150 #line 69 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1151 _tmp77_ = data_output_stream; 1152 #line 69 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1153 _tmp78_ = column_offsets; 1154 #line 69 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1155 _tmp78__length1 = column_offsets_length1;
Value stored to '_tmp78__length1' is never read
(emitted by clang-analyzer)

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

1156 #line 69 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1157 _tmp79_ = i; 1158 #line 69 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1159 _tmp80_ = _tmp78_[_tmp79_]; 1160 #line 69 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1161 g_data_output_stream_put_int32 (_tmp77_, (gint32) _tmp80_, NULL, &_inner_error_); 1162 #line 69 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1163 if (_inner_error_ != NULL) { 1164 #line 69 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1165 g_propagate_error (error, _inner_error_); 1166 #line 69 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1167 column_data = (_vala_array_free (column_data, column_data_length1, (GDestroyNotify) g_free), NULL); 1168 #line 69 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1169 column_offsets = (g_free (column_offsets), NULL); 1170 #line 69 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1171 column_sizes = (g_free (column_sizes), NULL); 1172 #line 69 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1173 _g_object_unref0 (data_output_stream); 1174 #line 69 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1175 return; 1176 #line 1177 "tracker-steroids.c" 1177 } 1178 } 1179 } 1180 } 1181 { 1182 gint i; 1183 #line 72 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1184 i = 0; 1185 #line 1186 "tracker-steroids.c" 1186 { 1187 gboolean _tmp81_; 1188 #line 72 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1189 _tmp81_ = TRUE; 1190 #line 72 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1191 while (TRUE) { 1192 #line 1193 "tracker-steroids.c" 1193 gboolean _tmp82_; 1194 gint _tmp84_; 1195 gint _tmp85_; 1196 const gchar* _tmp86_ = NULL; 1197 gchar** _tmp87_; 1198 gint _tmp87__length1; 1199 gint _tmp88_; 1200 const gchar* _tmp89_; 1201 GDataOutputStream* _tmp93_; 1202 const gchar* _tmp94_; 1203 GDataOutputStream* _tmp95_; 1204 #line 72 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1205 _tmp82_ = _tmp81_; 1206 #line 72 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1207 if (!_tmp82_) { 1208 #line 1209 "tracker-steroids.c" 1209 gint _tmp83_; 1210 #line 72 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1211 _tmp83_ = i; 1212 #line 72 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1213 i = _tmp83_ + 1; 1214 #line 1215 "tracker-steroids.c" 1215 } 1216 #line 72 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1217 _tmp81_ = FALSE; 1218 #line 72 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1219 _tmp84_ = i; 1220 #line 72 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1221 _tmp85_ = n_columns; 1222 #line 72 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1223 if (!(_tmp84_ < _tmp85_)) { 1224 #line 72 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1225 break; 1226 #line 1227 "tracker-steroids.c" 1227 } 1228 #line 73 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1229 _tmp87_ = column_data; 1230 #line 73 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1231 _tmp87__length1 = column_data_length1;
Value stored to '_tmp87__length1' is never read
(emitted by clang-analyzer)

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

1232 #line 73 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1233 _tmp88_ = i; 1234 #line 73 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1235 _tmp89_ = _tmp87_[_tmp88_]; 1236 #line 73 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1237 if (_tmp89_ != NULL) { 1238 #line 1239 "tracker-steroids.c" 1239 gchar** _tmp90_; 1240 gint _tmp90__length1; 1241 gint _tmp91_; 1242 const gchar* _tmp92_; 1243 #line 73 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1244 _tmp90_ = column_data; 1245 #line 73 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1246 _tmp90__length1 = column_data_length1;
Value stored to '_tmp90__length1' is never read
(emitted by clang-analyzer)

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

1247 #line 73 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1248 _tmp91_ = i; 1249 #line 73 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1250 _tmp92_ = _tmp90_[_tmp91_]; 1251 #line 73 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1252 _tmp86_ = _tmp92_; 1253 #line 1254 "tracker-steroids.c" 1254 } else { 1255 #line 73 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1256 _tmp86_ = ""; 1257 #line 1258 "tracker-steroids.c" 1258 } 1259 #line 73 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1260 _tmp93_ = data_output_stream; 1261 #line 73 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1262 _tmp94_ = _tmp86_; 1263 #line 73 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1264 g_data_output_stream_put_string (_tmp93_, _tmp94_, NULL, &_inner_error_); 1265 #line 73 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1266 if (_inner_error_ != NULL) { 1267 #line 73 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1268 g_propagate_error (error, _inner_error_); 1269 #line 73 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1270 column_data = (_vala_array_free (column_data, column_data_length1, (GDestroyNotify) g_free), NULL); 1271 #line 73 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1272 column_offsets = (g_free (column_offsets), NULL); 1273 #line 73 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1274 column_sizes = (g_free (column_sizes), NULL); 1275 #line 73 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1276 _g_object_unref0 (data_output_stream); 1277 #line 73 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1278 return; 1279 #line 1280 "tracker-steroids.c" 1280 } 1281 #line 74 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1282 _tmp95_ = data_output_stream; 1283 #line 74 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1284 g_data_output_stream_put_byte (_tmp95_, (guint8) 0, NULL, &_inner_error_); 1285 #line 74 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1286 if (_inner_error_ != NULL) { 1287 #line 74 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1288 g_propagate_error (error, _inner_error_); 1289 #line 74 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1290 column_data = (_vala_array_free (column_data, column_data_length1, (GDestroyNotify) g_free), NULL); 1291 #line 74 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1292 column_offsets = (g_free (column_offsets), NULL); 1293 #line 74 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1294 column_sizes = (g_free (column_sizes), NULL); 1295 #line 74 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1296 _g_object_unref0 (data_output_stream); 1297 #line 74 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1298 return; 1299 #line 1300 "tracker-steroids.c" 1300 } 1301 } 1302 } 1303 } 1304 } 1305 #line 33 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1306 column_data = (_vala_array_free (column_data, column_data_length1, (GDestroyNotify) g_free), NULL); 1307 #line 33 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1308 column_offsets = (g_free (column_offsets), NULL); 1309 #line 33 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1310 column_sizes = (g_free (column_sizes), NULL); 1311 #line 33 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1312 _g_object_unref0 (data_output_stream); 1313 #line 1314 "tracker-steroids.c" 1314 } 1315 1316 1317 static void ____lambda7__tracker_store_sparql_query_in_thread (TrackerDBCursor* cursor, gpointer self, GError** error) { 1318 #line 33 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1319 ___lambda7_ (self, cursor, error); 1320 #line 1321 "tracker-steroids.c" 1321 } 1322 1323 1324 static void tracker_steroids_query_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) { 1325 TrackerSteroidsQueryData* _data_; 1326 #line 33 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1327 _data_ = _user_data_; 1328 #line 33 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1329 _data_->_source_object_ = source_object; 1330 #line 33 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1331 _data_->_res_ = _res_; 1332 #line 33 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1333 tracker_steroids_query_co (_data_); 1334 #line 1335 "tracker-steroids.c" 1335 } 1336 1337 1338 static gchar** _vala_array_dup1 (gchar** self, int length) { 1339 gchar** result; 1340 int i; 1341 #line 81 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1342 result = g_new0 (gchar*, length + 1); 1343 #line 81 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1344 for (i = 0; i < length; i++) { 1345 #line 1346 "tracker-steroids.c" 1346 gchar* _tmp0_; 1347 #line 81 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1348 _tmp0_ = g_strdup (self[i]); 1349 #line 81 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1350 result[i] = _tmp0_; 1351 #line 1352 "tracker-steroids.c" 1352 } 1353 #line 81 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1354 return result; 1355 #line 1356 "tracker-steroids.c" 1356 } 1357 1358 1359 static gpointer _g_error_copy0 (gpointer self) { 1360 #line 85 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1361 return self ? g_error_copy (self) : NULL; 1362 #line 1363 "tracker-steroids.c" 1363 } 1364 1365 1366 static gboolean tracker_steroids_query_co (TrackerSteroidsQueryData* _data_) { 1367 #line 27 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1368 switch (_data_->_state_) { 1369 #line 27 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1370 case 0: 1371 #line 1372 "tracker-steroids.c" 1372 goto _state_0; 1373 #line 27 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1374 case 1: 1375 #line 1376 "tracker-steroids.c" 1376 goto _state_1; 1377 default: 1378 #line 27 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1379 g_assert_not_reached (); 1380 #line 1381 "tracker-steroids.c" 1381 } 1382 _state_0: 1383 #line 27 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1384 _data_->_data5_ = g_slice_new0 (Block5Data); 1385 #line 27 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1386 _data_->_data5_->_ref_count_ = 1; 1387 #line 27 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1388 _data_->_data5_->self = g_object_ref (_data_->self); 1389 #line 27 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1390 _data_->_tmp0_ = _data_->output_stream; 1391 #line 27 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1392 _g_object_unref0 (_data_->_data5_->output_stream); 1393 #line 27 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1394 _data_->_data5_->output_stream = _data_->_tmp0_; 1395 #line 27 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1396 _data_->_data5_->_async_data_ = _data_; 1397 #line 28 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1398 _data_->_tmp1_ = _data_->sender; 1399 #line 28 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1400 _data_->_tmp2_ = NULL; 1401 #line 28 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1402 _data_->_tmp2_ = tracker_dbus_request_begin ((const gchar*) _data_->_tmp1_, "Steroids.Query", NULL); 1403 #line 28 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1404 _data_->request = _data_->_tmp2_; 1405 #line 29 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1406 _data_->_tmp3_ = _data_->query; 1407 #line 29 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1408 tracker_dbus_request_debug (_data_->request, "query: %s", _data_->_tmp3_, NULL); 1409 #line 1410 "tracker-steroids.c" 1410 { 1411 #line 30 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1412 _data_->_data6_ = g_slice_new0 (Block6Data); 1413 #line 30 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1414 _data_->_data6_->_ref_count_ = 1; 1415 #line 30 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1416 _data_->_data6_->_data5_ = block5_data_ref (_data_->_data5_); 1417 #line 31 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1418 _data_->_data6_->variable_names = NULL; 1419 #line 31 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1420 _data_->_data6_->variable_names_length1 = 0; 1421 #line 31 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1422 _data_->_data6_->_variable_names_size_ = _data_->_data6_->variable_names_length1; 1423 #line 33 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1424 _data_->_tmp4_ = _data_->query; 1425 #line 33 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1426 _data_->_tmp5_ = _data_->sender; 1427 #line 33 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1428 _data_->_state_ = 1; 1429 #line 33 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1430 tracker_store_sparql_query (_data_->_tmp4_, TRACKER_STORE_PRIORITY_HIGH, ____lambda7__tracker_store_sparql_query_in_thread, _data_->_data6_, (const gchar*) _data_->_tmp5_, tracker_steroids_query_ready, _data_); 1431 #line 33 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1432 return FALSE; 1433 #line 1434 "tracker-steroids.c" 1434 _state_1: 1435 #line 33 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1436 tracker_store_sparql_query_finish (_data_->_res_, &_data_->_inner_error_); 1437 #line 33 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1438 if (_data_->_inner_error_ != NULL) { 1439 #line 33 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1440 block6_data_unref (_data_->_data6_); 1441 #line 33 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1442 _data_->_data6_ = NULL; 1443 #line 1444 "tracker-steroids.c" 1444 goto __catch13_g_error; 1445 } 1446 #line 79 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1447 tracker_dbus_request_end (_data_->request, NULL); 1448 #line 81 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1449 _data_->_tmp6_ = (_data_->_data6_->variable_names != NULL) ? _vala_array_dup1 (_data_->_data6_->variable_names, _data_->_data6_->variable_names_length1) : ((gpointer) _data_->_data6_->variable_names); 1450 #line 81 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1451 _data_->_tmp6__length1 = _data_->_data6_->variable_names_length1; 1452 #line 81 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1453 _data_->_tmp7_ = _data_->_tmp6_; 1454 #line 81 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1455 _data_->_tmp7__length1 = _data_->_tmp6__length1; 1456 #line 81 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1457 _data_->result_length1 = _data_->_tmp7__length1; 1458 #line 81 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1459 _data_->result = _data_->_tmp7_; 1460 #line 81 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1461 block6_data_unref (_data_->_data6_); 1462 #line 81 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1463 _data_->_data6_ = NULL; 1464 #line 81 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1465 block5_data_unref (_data_->_data5_); 1466 #line 81 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1467 _data_->_data5_ = NULL; 1468 #line 81 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1469 if (_data_->_state_ == 0) { 1470 #line 81 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1471 g_simple_async_result_complete_in_idle (_data_->_async_result); 1472 #line 1473 "tracker-steroids.c" 1473 } else { 1474 #line 81 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1475 g_simple_async_result_complete (_data_->_async_result); 1476 #line 1477 "tracker-steroids.c" 1477 } 1478 #line 81 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1479 g_object_unref (_data_->_async_result); 1480 #line 81 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1481 return FALSE; 1482 #line 1483 "tracker-steroids.c" 1483 } 1484 goto __finally13; 1485 __catch13_g_error: 1486 { 1487 #line 30 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1488 _data_->e = _data_->_inner_error_; 1489 #line 30 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1490 _data_->_inner_error_ = NULL; 1491 #line 83 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1492 _data_->_tmp8_ = _data_->e; 1493 #line 83 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1494 tracker_dbus_request_end (_data_->request, _data_->_tmp8_); 1495 #line 84 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1496 _data_->_tmp9_ = _data_->e; 1497 #line 84 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1498 if (_data_->_tmp9_->domain == TRACKER_SPARQL_ERROR) { 1499 #line 85 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1500 _data_->_tmp10_ = _data_->e; 1501 #line 85 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1502 _data_->_tmp11_ = _g_error_copy0 (_data_->_tmp10_); 1503 #line 85 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1504 _data_->_inner_error_ = _data_->_tmp11_; 1505 #line 85 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1506 _g_error_free0 (_data_->e); 1507 #line 1508 "tracker-steroids.c" 1508 goto __finally13; 1509 } else { 1510 #line 87 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1511 _data_->_tmp12_ = _data_->e; 1512 #line 87 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1513 _data_->_tmp13_ = _data_->_tmp12_->message; 1514 #line 87 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1515 _data_->_tmp14_ = g_error_new_literal (TRACKER_SPARQL_ERROR, TRACKER_SPARQL_ERROR_INTERNAL, _data_->_tmp13_); 1516 #line 87 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1517 _data_->_inner_error_ = _data_->_tmp14_; 1518 #line 87 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1519 _g_error_free0 (_data_->e); 1520 #line 1521 "tracker-steroids.c" 1521 goto __finally13; 1522 } 1523 #line 30 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1524 _g_error_free0 (_data_->e); 1525 #line 1526 "tracker-steroids.c" 1526 } 1527 __finally13: 1528 #line 30 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1529 g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_); 1530 #line 30 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1531 g_error_free (_data_->_inner_error_); 1532 #line 30 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1533 block5_data_unref (_data_->_data5_); 1534 #line 30 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1535 _data_->_data5_ = NULL; 1536 #line 30 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1537 if (_data_->_state_ == 0) { 1538 #line 30 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1539 g_simple_async_result_complete_in_idle (_data_->_async_result); 1540 #line 1541 "tracker-steroids.c" 1541 } else { 1542 #line 30 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1543 g_simple_async_result_complete (_data_->_async_result); 1544 #line 1545 "tracker-steroids.c" 1545 } 1546 #line 30 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1547 g_object_unref (_data_->_async_result); 1548 #line 30 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1549 return FALSE; 1550 #line 27 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1551 block5_data_unref (_data_->_data5_); 1552 #line 27 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1553 _data_->_data5_ = NULL; 1554 #line 27 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1555 if (_data_->_state_ == 0) { 1556 #line 27 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1557 g_simple_async_result_complete_in_idle (_data_->_async_result); 1558 #line 1559 "tracker-steroids.c" 1559 } else { 1560 #line 27 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1561 g_simple_async_result_complete (_data_->_async_result); 1562 #line 1563 "tracker-steroids.c" 1563 } 1564 #line 27 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1565 g_object_unref (_data_->_async_result); 1566 #line 27 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1567 return FALSE; 1568 #line 1569 "tracker-steroids.c" 1569 } 1570 1571 1572 static void tracker_steroids_update_internal_data_free (gpointer _data) { 1573 TrackerSteroidsUpdateInternalData* _data_; 1574 _data_ = _data; 1575 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1576 _g_free0 (_data_->sender); 1577 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1578 _g_object_unref0 (_data_->input_stream); 1579 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1580 _g_variant_unref0 (_data_->result); 1581 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1582 _g_object_unref0 (_data_->self); 1583 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1584 g_slice_free (TrackerSteroidsUpdateInternalData, _data_); 1585 #line 1586 "tracker-steroids.c" 1586 } 1587 1588 1589 static void tracker_steroids_update_internal (TrackerSteroids* self, const char* sender, TrackerStorePriority priority, gboolean blank, GUnixInputStream* input_stream, GAsyncReadyCallback _callback_, gpointer _user_data_) { 1590 TrackerSteroidsUpdateInternalData* _data_; 1591 TrackerSteroids* _tmp0_; 1592 const char* _tmp1_; 1593 char* _tmp2_; 1594 TrackerStorePriority _tmp3_; 1595 gboolean _tmp4_; 1596 GUnixInputStream* _tmp5_; 1597 GUnixInputStream* _tmp6_; 1598 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1599 _data_ = g_slice_new0 (TrackerSteroidsUpdateInternalData); 1600 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1601 _data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, tracker_steroids_update_internal); 1602 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1603 g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, tracker_steroids_update_internal_data_free); 1604 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1605 _tmp0_ = _g_object_ref0 (self); 1606 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1607 _data_->self = _tmp0_; 1608 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1609 _tmp1_ = sender; 1610 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1611 _tmp2_ = g_strdup (_tmp1_); 1612 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1613 _g_free0 (_data_->sender); 1614 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1615 _data_->sender = _tmp2_; 1616 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1617 _tmp3_ = priority; 1618 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1619 _data_->priority = _tmp3_; 1620 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1621 _tmp4_ = blank; 1622 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1623 _data_->blank = _tmp4_; 1624 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1625 _tmp5_ = input_stream; 1626 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1627 _tmp6_ = _g_object_ref0 (_tmp5_); 1628 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1629 _g_object_unref0 (_data_->input_stream); 1630 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1631 _data_->input_stream = _tmp6_; 1632 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1633 tracker_steroids_update_internal_co (_data_); 1634 #line 1635 "tracker-steroids.c" 1635 } 1636 1637 1638 static GVariant* tracker_steroids_update_internal_finish (TrackerSteroids* self, GAsyncResult* _res_, GError** error) { 1639 GVariant* result; 1640 TrackerSteroidsUpdateInternalData* _data_; 1641 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1642 if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) { 1643 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1644 return NULL; 1645 #line 1646 "tracker-steroids.c" 1646 } 1647 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1648 _data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_)); 1649 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1650 result = _data_->result; 1651 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1652 _data_->result = NULL; 1653 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1654 return result; 1655 #line 1656 "tracker-steroids.c" 1656 } 1657 1658 1659 static void tracker_steroids_update_internal_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) { 1660 TrackerSteroidsUpdateInternalData* _data_; 1661 #line 116 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1662 _data_ = _user_data_; 1663 #line 116 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1664 _data_->_source_object_ = source_object; 1665 #line 116 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1666 _data_->_res_ = _res_; 1667 #line 116 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1668 tracker_steroids_update_internal_co (_data_); 1669 #line 1670 "tracker-steroids.c" 1670 } 1671 1672 1673 static gboolean tracker_steroids_update_internal_co (TrackerSteroidsUpdateInternalData* _data_) { 1674 #line 92 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1675 switch (_data_->_state_) { 1676 #line 92 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1677 case 0: 1678 #line 1679 "tracker-steroids.c" 1679 goto _state_0; 1680 #line 92 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1681 case 1: 1682 #line 1683 "tracker-steroids.c" 1683 goto _state_1; 1684 #line 92 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1685 case 2: 1686 #line 1687 "tracker-steroids.c" 1687 goto _state_2; 1688 default: 1689 #line 92 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1690 g_assert_not_reached (); 1691 #line 1692 "tracker-steroids.c" 1692 } 1693 _state_0: 1694 #line 95 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1695 _data_->_tmp1_ = _data_->priority; 1696 #line 95 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1697 if (_data_->_tmp1_ != TRACKER_STORE_PRIORITY_HIGH) { 1698 #line 95 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1699 _data_->_tmp0_ = "Batch"; 1700 #line 1701 "tracker-steroids.c" 1701 } else { 1702 #line 95 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1703 _data_->_tmp0_ = ""; 1704 #line 1705 "tracker-steroids.c" 1705 } 1706 #line 96 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1707 _data_->_tmp3_ = _data_->blank; 1708 #line 96 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1709 if (_data_->_tmp3_) { 1710 #line 96 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1711 _data_->_tmp2_ = "Blank"; 1712 #line 1713 "tracker-steroids.c" 1713 } else { 1714 #line 96 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1715 _data_->_tmp2_ = ""; 1716 #line 1717 "tracker-steroids.c" 1717 } 1718 #line 93 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1719 _data_->_tmp4_ = _data_->sender; 1720 #line 93 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1721 _data_->_tmp5_ = _data_->_tmp0_; 1722 #line 93 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1723 _data_->_tmp6_ = _data_->_tmp2_; 1724 #line 93 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1725 _data_->_tmp7_ = NULL; 1726 #line 93 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1727 _data_->_tmp7_ = tracker_dbus_request_begin ((const gchar*) _data_->_tmp4_, "Steroids.%sUpdate%s", _data_->_tmp5_, _data_->_tmp6_, NULL); 1728 #line 93 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1729 _data_->request = _data_->_tmp7_; 1730 #line 1731 "tracker-steroids.c" 1731 { 1732 #line 100 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1733 _data_->_tmp8_ = _data_->input_stream; 1734 #line 100 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1735 _data_->_tmp9_ = g_data_input_stream_new ((GInputStream*) _data_->_tmp8_); 1736 #line 100 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1737 _data_->data_input_stream = _data_->_tmp9_; 1738 #line 101 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1739 _data_->_tmp10_ = _data_->data_input_stream; 1740 #line 101 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1741 g_buffered_input_stream_set_buffer_size ((GBufferedInputStream*) _data_->_tmp10_, (gsize) TRACKER_STEROIDS_BUFFER_SIZE); 1742 #line 102 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1743 _data_->_tmp11_ = _data_->data_input_stream; 1744 #line 102 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1745 g_data_input_stream_set_byte_order (_data_->_tmp11_, G_DATA_STREAM_BYTE_ORDER_HOST_ENDIAN); 1746 #line 104 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1747 _data_->_tmp12_ = _data_->data_input_stream; 1748 #line 104 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1749 _data_->_tmp13_ = 0; 1750 #line 104 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1751 _data_->_tmp13_ = g_data_input_stream_read_int32 (_data_->_tmp12_, NULL, &_data_->_inner_error_); 1752 #line 104 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1753 _data_->query_size = (gint) _data_->_tmp13_; 1754 #line 104 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1755 if (_data_->_inner_error_ != NULL) { 1756 #line 104 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1757 _g_object_unref0 (_data_->data_input_stream); 1758 #line 104 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1759 if (g_error_matches (_data_->_inner_error_, TRACKER_DB_INTERFACE_ERROR, TRACKER_DB_NO_SPACE)) { 1760 #line 1761 "tracker-steroids.c" 1761 goto __catch14_tracker_db_no_space; 1762 } 1763 goto __catch14_g_error; 1764 } 1765 #line 107 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1766 _data_->_tmp14_ = _data_->query_size; 1767 #line 107 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1768 _data_->_tmp15_ = NULL; 1769 #line 107 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1770 _data_->_tmp15_ = g_new0 (guint8, _data_->_tmp14_ + 1); 1771 #line 107 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1772 _data_->query = _data_->_tmp15_; 1773 #line 107 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1774 _data_->query_length1 = _data_->_tmp14_ + 1; 1775 #line 107 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1776 _data_->_query_size_ = _data_->query_length1; 1777 #line 109 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1778 _data_->_tmp16_ = _data_->data_input_stream; 1779 #line 109 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1780 _data_->_tmp17_ = _data_->query; 1781 #line 109 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1782 _data_->_tmp17__length1 = _data_->query_length1; 1783 #line 109 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1784 _data_->_tmp18_ = _data_->query_size; 1785 #line 109 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1786 _data_->_tmp19_ = 0UL; 1787 #line 109 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1788 g_input_stream_read_all ((GInputStream*) _data_->_tmp16_, (void*) (_data_->_tmp17_ + 0), (gsize) (_data_->_tmp18_ - 0), &_data_->_tmp19_, NULL, &_data_->_inner_error_); 1789 #line 109 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1790 _data_->bytes_read = _data_->_tmp19_; 1791 #line 109 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1792 if (_data_->_inner_error_ != NULL) { 1793 #line 109 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1794 _data_->query = (g_free (_data_->query), NULL); 1795 #line 109 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1796 _g_object_unref0 (_data_->data_input_stream); 1797 #line 109 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1798 if (g_error_matches (_data_->_inner_error_, TRACKER_DB_INTERFACE_ERROR, TRACKER_DB_NO_SPACE)) { 1799 #line 1800 "tracker-steroids.c" 1800 goto __catch14_tracker_db_no_space; 1801 } 1802 goto __catch14_g_error; 1803 } 1804 #line 111 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1805 _g_object_unref0 (_data_->data_input_stream); 1806 #line 111 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1807 _data_->data_input_stream = NULL; 1808 #line 113 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1809 _data_->_tmp20_ = _data_->request; 1810 #line 113 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1811 _data_->_tmp21_ = _data_->query; 1812 #line 113 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1813 _data_->_tmp21__length1 = _data_->query_length1; 1814 #line 113 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1815 tracker_dbus_request_debug (_data_->_tmp20_, "query: %s", (const gchar*) _data_->_tmp21_, NULL); 1816 #line 115 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1817 _data_->_tmp22_ = _data_->blank; 1818 #line 115 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1819 if (!_data_->_tmp22_) { 1820 #line 116 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1821 _data_->_tmp23_ = _data_->query; 1822 #line 116 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1823 _data_->_tmp23__length1 = _data_->query_length1; 1824 #line 116 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1825 _data_->_tmp24_ = _data_->priority; 1826 #line 116 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1827 _data_->_tmp25_ = _data_->sender; 1828 #line 116 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1829 _data_->_state_ = 1; 1830 #line 116 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1831 tracker_store_sparql_update ((const gchar*) _data_->_tmp23_, _data_->_tmp24_, (const gchar*) _data_->_tmp25_, tracker_steroids_update_internal_ready, _data_); 1832 #line 116 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1833 return FALSE; 1834 #line 1835 "tracker-steroids.c" 1835 _state_1: 1836 #line 116 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1837 tracker_store_sparql_update_finish (_data_->_res_, &_data_->_inner_error_); 1838 #line 116 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1839 if (_data_->_inner_error_ != NULL) { 1840 #line 116 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1841 _data_->query = (g_free (_data_->query), NULL); 1842 #line 116 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1843 _g_object_unref0 (_data_->data_input_stream); 1844 #line 116 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1845 if (g_error_matches (_data_->_inner_error_, TRACKER_DB_INTERFACE_ERROR, TRACKER_DB_NO_SPACE)) { 1846 #line 1847 "tracker-steroids.c" 1847 goto __catch14_tracker_db_no_space; 1848 } 1849 goto __catch14_g_error; 1850 } 1851 #line 118 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1852 _data_->_tmp26_ = _data_->request; 1853 #line 118 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1854 tracker_dbus_request_end (_data_->_tmp26_, NULL); 1855 #line 120 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1856 _data_->result = NULL; 1857 #line 120 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1858 _data_->query = (g_free (_data_->query), NULL); 1859 #line 120 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1860 _g_object_unref0 (_data_->data_input_stream); 1861 #line 120 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1862 if (_data_->_state_ == 0) { 1863 #line 120 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1864 g_simple_async_result_complete_in_idle (_data_->_async_result); 1865 #line 1866 "tracker-steroids.c" 1866 } else { 1867 #line 120 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1868 g_simple_async_result_complete (_data_->_async_result); 1869 #line 1870 "tracker-steroids.c" 1870 } 1871 #line 120 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1872 g_object_unref (_data_->_async_result); 1873 #line 120 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1874 return FALSE; 1875 #line 1876 "tracker-steroids.c" 1876 } else { 1877 #line 122 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1878 _data_->_tmp27_ = _data_->query; 1879 #line 122 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1880 _data_->_tmp27__length1 = _data_->query_length1; 1881 #line 122 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1882 _data_->_tmp28_ = _data_->priority; 1883 #line 122 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1884 _data_->_tmp29_ = _data_->sender; 1885 #line 122 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1886 _data_->_state_ = 2; 1887 #line 122 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1888 tracker_store_sparql_update_blank ((const gchar*) _data_->_tmp27_, _data_->_tmp28_, (const gchar*) _data_->_tmp29_, tracker_steroids_update_internal_ready, _data_); 1889 #line 122 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1890 return FALSE; 1891 #line 1892 "tracker-steroids.c" 1892 _state_2: 1893 #line 122 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1894 _data_->_tmp30_ = NULL; 1895 #line 122 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1896 _data_->_tmp30_ = tracker_store_sparql_update_blank_finish (_data_->_res_, &_data_->_inner_error_); 1897 #line 122 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1898 _data_->variant = _data_->_tmp30_; 1899 #line 122 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1900 if (_data_->_inner_error_ != NULL) { 1901 #line 122 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1902 _data_->query = (g_free (_data_->query), NULL); 1903 #line 122 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1904 _g_object_unref0 (_data_->data_input_stream); 1905 #line 122 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1906 if (g_error_matches (_data_->_inner_error_, TRACKER_DB_INTERFACE_ERROR, TRACKER_DB_NO_SPACE)) { 1907 #line 1908 "tracker-steroids.c" 1908 goto __catch14_tracker_db_no_space; 1909 } 1910 goto __catch14_g_error; 1911 } 1912 #line 124 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1913 _data_->_tmp31_ = _data_->request; 1914 #line 124 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1915 tracker_dbus_request_end (_data_->_tmp31_, NULL); 1916 #line 126 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1917 _data_->result = _data_->variant; 1918 #line 126 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1919 _data_->query = (g_free (_data_->query), NULL); 1920 #line 126 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1921 _g_object_unref0 (_data_->data_input_stream); 1922 #line 126 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1923 if (_data_->_state_ == 0) { 1924 #line 126 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1925 g_simple_async_result_complete_in_idle (_data_->_async_result); 1926 #line 1927 "tracker-steroids.c" 1927 } else { 1928 #line 126 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1929 g_simple_async_result_complete (_data_->_async_result); 1930 #line 1931 "tracker-steroids.c" 1931 } 1932 #line 126 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1933 g_object_unref (_data_->_async_result); 1934 #line 126 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1935 return FALSE; 1936 #line 1937 "tracker-steroids.c" 1937 } 1938 #line 97 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1939 _data_->query = (g_free (_data_->query), NULL); 1940 #line 97 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1941 _g_object_unref0 (_data_->data_input_stream); 1942 #line 1943 "tracker-steroids.c" 1943 } 1944 goto __finally14; 1945 __catch14_tracker_db_no_space: 1946 { 1947 #line 97 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1948 _data_->ie = _data_->_inner_error_; 1949 #line 97 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1950 _data_->_inner_error_ = NULL; 1951 #line 129 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1952 _data_->_tmp32_ = _data_->ie; 1953 #line 129 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1954 _data_->_tmp33_ = _data_->_tmp32_->message; 1955 #line 129 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1956 _data_->_tmp34_ = g_error_new_literal (TRACKER_SPARQL_ERROR, TRACKER_SPARQL_ERROR_NO_SPACE, _data_->_tmp33_); 1957 #line 129 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1958 _data_->_inner_error_ = _data_->_tmp34_; 1959 #line 129 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1960 _g_error_free0 (_data_->ie); 1961 #line 1962 "tracker-steroids.c" 1962 goto __finally14; 1963 } 1964 goto __finally14; 1965 __catch14_g_error: 1966 { 1967 #line 97 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1968 _data_->e = _data_->_inner_error_; 1969 #line 97 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1970 _data_->_inner_error_ = NULL; 1971 #line 131 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1972 _data_->_tmp35_ = _data_->request; 1973 #line 131 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1974 _data_->_tmp36_ = _data_->e; 1975 #line 131 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1976 tracker_dbus_request_end (_data_->_tmp35_, _data_->_tmp36_); 1977 #line 132 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1978 _data_->_tmp37_ = _data_->e; 1979 #line 132 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1980 if (_data_->_tmp37_->domain == TRACKER_SPARQL_ERROR) { 1981 #line 133 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1982 _data_->_tmp38_ = _data_->e; 1983 #line 133 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1984 _data_->_tmp39_ = _g_error_copy0 (_data_->_tmp38_); 1985 #line 133 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1986 _data_->_inner_error_ = _data_->_tmp39_; 1987 #line 133 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1988 _g_error_free0 (_data_->e); 1989 #line 1990 "tracker-steroids.c" 1990 goto __finally14; 1991 } else { 1992 #line 135 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1993 _data_->_tmp40_ = _data_->e; 1994 #line 135 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1995 _data_->_tmp41_ = _data_->_tmp40_->message; 1996 #line 135 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1997 _data_->_tmp42_ = g_error_new_literal (TRACKER_SPARQL_ERROR, TRACKER_SPARQL_ERROR_INTERNAL, _data_->_tmp41_); 1998 #line 135 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 1999 _data_->_inner_error_ = _data_->_tmp42_; 2000 #line 135 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2001 _g_error_free0 (_data_->e); 2002 #line 2003 "tracker-steroids.c" 2003 goto __finally14; 2004 } 2005 #line 97 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2006 _g_error_free0 (_data_->e); 2007 #line 2008 "tracker-steroids.c" 2008 } 2009 __finally14: 2010 #line 97 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2011 g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_); 2012 #line 97 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2013 g_error_free (_data_->_inner_error_); 2014 #line 97 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2015 if (_data_->_state_ == 0) { 2016 #line 97 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2017 g_simple_async_result_complete_in_idle (_data_->_async_result); 2018 #line 2019 "tracker-steroids.c" 2019 } else { 2020 #line 97 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2021 g_simple_async_result_complete (_data_->_async_result); 2022 #line 2023 "tracker-steroids.c" 2023 } 2024 #line 97 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2025 g_object_unref (_data_->_async_result); 2026 #line 97 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2027 return FALSE; 2028 #line 92 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2029 if (_data_->_state_ == 0) { 2030 #line 92 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2031 g_simple_async_result_complete_in_idle (_data_->_async_result); 2032 #line 2033 "tracker-steroids.c" 2033 } else { 2034 #line 92 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2035 g_simple_async_result_complete (_data_->_async_result); 2036 #line 2037 "tracker-steroids.c" 2037 } 2038 #line 92 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2039 g_object_unref (_data_->_async_result); 2040 #line 92 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2041 return FALSE; 2042 #line 2043 "tracker-steroids.c" 2043 } 2044 2045 2046 static void tracker_steroids_update_data_free (gpointer _data) { 2047 TrackerSteroidsUpdateData* _data_; 2048 _data_ = _data; 2049 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2050 _g_free0 (_data_->sender); 2051 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2052 _g_object_unref0 (_data_->input_stream); 2053 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2054 _g_object_unref0 (_data_->self); 2055 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2056 g_slice_free (TrackerSteroidsUpdateData, _data_); 2057 #line 2058 "tracker-steroids.c" 2058 } 2059 2060 2061 void tracker_steroids_update (TrackerSteroids* self, const char* sender, GUnixInputStream* input_stream, GAsyncReadyCallback _callback_, gpointer _user_data_) { 2062 TrackerSteroidsUpdateData* _data_; 2063 TrackerSteroids* _tmp0_; 2064 const char* _tmp1_; 2065 char* _tmp2_; 2066 GUnixInputStream* _tmp3_; 2067 GUnixInputStream* _tmp4_; 2068 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2069 _data_ = g_slice_new0 (TrackerSteroidsUpdateData); 2070 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2071 _data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, tracker_steroids_update); 2072 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2073 g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, tracker_steroids_update_data_free); 2074 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2075 _tmp0_ = _g_object_ref0 (self); 2076 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2077 _data_->self = _tmp0_; 2078 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2079 _tmp1_ = sender; 2080 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2081 _tmp2_ = g_strdup (_tmp1_); 2082 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2083 _g_free0 (_data_->sender); 2084 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2085 _data_->sender = _tmp2_; 2086 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2087 _tmp3_ = input_stream; 2088 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2089 _tmp4_ = _g_object_ref0 (_tmp3_); 2090 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2091 _g_object_unref0 (_data_->input_stream); 2092 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2093 _data_->input_stream = _tmp4_; 2094 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2095 tracker_steroids_update_co (_data_); 2096 #line 2097 "tracker-steroids.c" 2097 } 2098 2099 2100 void tracker_steroids_update_finish (TrackerSteroids* self, GAsyncResult* _res_, GError** error) { 2101 TrackerSteroidsUpdateData* _data_;
variable '_data_' set but not used
(emitted by gcc)
2102 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2103 if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) { 2104 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2105 return; 2106 #line 2107 "tracker-steroids.c" 2107 } 2108 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2109 _data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
Value stored to '_data_' is never read
(emitted by clang-analyzer)

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

2110 #line 2111 "tracker-steroids.c" 2111 } 2112 2113 2114 static void tracker_steroids_update_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) { 2115 TrackerSteroidsUpdateData* _data_; 2116 #line 141 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2117 _data_ = _user_data_; 2118 #line 141 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2119 _data_->_source_object_ = source_object; 2120 #line 141 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2121 _data_->_res_ = _res_; 2122 #line 141 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2123 tracker_steroids_update_co (_data_); 2124 #line 2125 "tracker-steroids.c" 2125 } 2126 2127 2128 static gboolean tracker_steroids_update_co (TrackerSteroidsUpdateData* _data_) { 2129 #line 140 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2130 switch (_data_->_state_) { 2131 #line 140 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2132 case 0: 2133 #line 2134 "tracker-steroids.c" 2134 goto _state_0; 2135 #line 140 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2136 case 1: 2137 #line 2138 "tracker-steroids.c" 2138 goto _state_1; 2139 default: 2140 #line 140 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2141 g_assert_not_reached (); 2142 #line 2143 "tracker-steroids.c" 2143 } 2144 _state_0: 2145 #line 141 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2146 _data_->_tmp0_ = _data_->sender; 2147 #line 141 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2148 _data_->_tmp1_ = _data_->input_stream; 2149 #line 141 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2150 _data_->_state_ = 1; 2151 #line 141 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2152 tracker_steroids_update_internal (_data_->self, _data_->_tmp0_, TRACKER_STORE_PRIORITY_HIGH, FALSE, _data_->_tmp1_, tracker_steroids_update_ready, _data_); 2153 #line 141 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2154 return FALSE; 2155 #line 2156 "tracker-steroids.c" 2156 _state_1: 2157 #line 141 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2158 _data_->_tmp2_ = NULL; 2159 #line 141 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2160 _data_->_tmp2_ = tracker_steroids_update_internal_finish (_data_->self, _data_->_res_, &_data_->_inner_error_); 2161 #line 141 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2162 _data_->_tmp3_ = _data_->_tmp2_; 2163 #line 141 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2164 _g_variant_unref0 (_data_->_tmp3_); 2165 #line 141 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2166 if (_data_->_inner_error_ != NULL) { 2167 #line 141 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2168 g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_); 2169 #line 141 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2170 g_error_free (_data_->_inner_error_); 2171 #line 141 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2172 if (_data_->_state_ == 0) { 2173 #line 141 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2174 g_simple_async_result_complete_in_idle (_data_->_async_result); 2175 #line 2176 "tracker-steroids.c" 2176 } else { 2177 #line 141 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2178 g_simple_async_result_complete (_data_->_async_result); 2179 #line 2180 "tracker-steroids.c" 2180 } 2181 #line 141 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2182 g_object_unref (_data_->_async_result); 2183 #line 141 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2184 return FALSE; 2185 #line 2186 "tracker-steroids.c" 2186 } 2187 #line 140 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2188 if (_data_->_state_ == 0) { 2189 #line 140 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2190 g_simple_async_result_complete_in_idle (_data_->_async_result); 2191 #line 2192 "tracker-steroids.c" 2192 } else { 2193 #line 140 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2194 g_simple_async_result_complete (_data_->_async_result); 2195 #line 2196 "tracker-steroids.c" 2196 } 2197 #line 140 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2198 g_object_unref (_data_->_async_result); 2199 #line 140 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2200 return FALSE; 2201 #line 2202 "tracker-steroids.c" 2202 } 2203 2204 2205 static void tracker_steroids_batch_update_data_free (gpointer _data) { 2206 TrackerSteroidsBatchUpdateData* _data_; 2207 _data_ = _data; 2208 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2209 _g_free0 (_data_->sender); 2210 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2211 _g_object_unref0 (_data_->input_stream); 2212 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2213 _g_object_unref0 (_data_->self); 2214 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2215 g_slice_free (TrackerSteroidsBatchUpdateData, _data_); 2216 #line 2217 "tracker-steroids.c" 2217 } 2218 2219 2220 void tracker_steroids_batch_update (TrackerSteroids* self, const char* sender, GUnixInputStream* input_stream, GAsyncReadyCallback _callback_, gpointer _user_data_) { 2221 TrackerSteroidsBatchUpdateData* _data_; 2222 TrackerSteroids* _tmp0_; 2223 const char* _tmp1_; 2224 char* _tmp2_; 2225 GUnixInputStream* _tmp3_; 2226 GUnixInputStream* _tmp4_; 2227 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2228 _data_ = g_slice_new0 (TrackerSteroidsBatchUpdateData); 2229 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2230 _data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, tracker_steroids_batch_update); 2231 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2232 g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, tracker_steroids_batch_update_data_free); 2233 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2234 _tmp0_ = _g_object_ref0 (self); 2235 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2236 _data_->self = _tmp0_; 2237 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2238 _tmp1_ = sender; 2239 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2240 _tmp2_ = g_strdup (_tmp1_); 2241 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2242 _g_free0 (_data_->sender); 2243 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2244 _data_->sender = _tmp2_; 2245 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2246 _tmp3_ = input_stream; 2247 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2248 _tmp4_ = _g_object_ref0 (_tmp3_); 2249 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2250 _g_object_unref0 (_data_->input_stream); 2251 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2252 _data_->input_stream = _tmp4_; 2253 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2254 tracker_steroids_batch_update_co (_data_); 2255 #line 2256 "tracker-steroids.c" 2256 } 2257 2258 2259 void tracker_steroids_batch_update_finish (TrackerSteroids* self, GAsyncResult* _res_, GError** error) { 2260 TrackerSteroidsBatchUpdateData* _data_;
variable '_data_' set but not used
(emitted by gcc)
2261 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2262 if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) { 2263 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2264 return; 2265 #line 2266 "tracker-steroids.c" 2266 } 2267 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2268 _data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
Value stored to '_data_' is never read
(emitted by clang-analyzer)

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

2269 #line 2270 "tracker-steroids.c" 2270 } 2271 2272 2273 static void tracker_steroids_batch_update_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) { 2274 TrackerSteroidsBatchUpdateData* _data_; 2275 #line 145 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2276 _data_ = _user_data_; 2277 #line 145 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2278 _data_->_source_object_ = source_object; 2279 #line 145 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2280 _data_->_res_ = _res_; 2281 #line 145 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2282 tracker_steroids_batch_update_co (_data_); 2283 #line 2284 "tracker-steroids.c" 2284 } 2285 2286 2287 static gboolean tracker_steroids_batch_update_co (TrackerSteroidsBatchUpdateData* _data_) { 2288 #line 144 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2289 switch (_data_->_state_) { 2290 #line 144 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2291 case 0: 2292 #line 2293 "tracker-steroids.c" 2293 goto _state_0; 2294 #line 144 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2295 case 1: 2296 #line 2297 "tracker-steroids.c" 2297 goto _state_1; 2298 default: 2299 #line 144 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2300 g_assert_not_reached (); 2301 #line 2302 "tracker-steroids.c" 2302 } 2303 _state_0: 2304 #line 145 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2305 _data_->_tmp0_ = _data_->sender; 2306 #line 145 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2307 _data_->_tmp1_ = _data_->input_stream; 2308 #line 145 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2309 _data_->_state_ = 1; 2310 #line 145 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2311 tracker_steroids_update_internal (_data_->self, _data_->_tmp0_, TRACKER_STORE_PRIORITY_LOW, FALSE, _data_->_tmp1_, tracker_steroids_batch_update_ready, _data_); 2312 #line 145 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2313 return FALSE; 2314 #line 2315 "tracker-steroids.c" 2315 _state_1: 2316 #line 145 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2317 _data_->_tmp2_ = NULL; 2318 #line 145 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2319 _data_->_tmp2_ = tracker_steroids_update_internal_finish (_data_->self, _data_->_res_, &_data_->_inner_error_); 2320 #line 145 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2321 _data_->_tmp3_ = _data_->_tmp2_; 2322 #line 145 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2323 _g_variant_unref0 (_data_->_tmp3_); 2324 #line 145 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2325 if (_data_->_inner_error_ != NULL) { 2326 #line 145 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2327 g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_); 2328 #line 145 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2329 g_error_free (_data_->_inner_error_); 2330 #line 145 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2331 if (_data_->_state_ == 0) { 2332 #line 145 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2333 g_simple_async_result_complete_in_idle (_data_->_async_result); 2334 #line 2335 "tracker-steroids.c" 2335 } else { 2336 #line 145 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2337 g_simple_async_result_complete (_data_->_async_result); 2338 #line 2339 "tracker-steroids.c" 2339 } 2340 #line 145 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2341 g_object_unref (_data_->_async_result); 2342 #line 145 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2343 return FALSE; 2344 #line 2345 "tracker-steroids.c" 2345 } 2346 #line 144 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2347 if (_data_->_state_ == 0) { 2348 #line 144 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2349 g_simple_async_result_complete_in_idle (_data_->_async_result); 2350 #line 2351 "tracker-steroids.c" 2351 } else { 2352 #line 144 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2353 g_simple_async_result_complete (_data_->_async_result); 2354 #line 2355 "tracker-steroids.c" 2355 } 2356 #line 144 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2357 g_object_unref (_data_->_async_result); 2358 #line 144 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2359 return FALSE; 2360 #line 2361 "tracker-steroids.c" 2361 } 2362 2363 2364 static void tracker_steroids_update_blank_data_free (gpointer _data) { 2365 TrackerSteroidsUpdateBlankData* _data_; 2366 _data_ = _data; 2367 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2368 _g_free0 (_data_->sender); 2369 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2370 _g_object_unref0 (_data_->input_stream); 2371 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2372 _g_variant_unref0 (_data_->result); 2373 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2374 _g_object_unref0 (_data_->self); 2375 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2376 g_slice_free (TrackerSteroidsUpdateBlankData, _data_); 2377 #line 2378 "tracker-steroids.c" 2378 } 2379 2380 2381 void tracker_steroids_update_blank (TrackerSteroids* self, const char* sender, GUnixInputStream* input_stream, GAsyncReadyCallback _callback_, gpointer _user_data_) { 2382 TrackerSteroidsUpdateBlankData* _data_; 2383 TrackerSteroids* _tmp0_; 2384 const char* _tmp1_; 2385 char* _tmp2_; 2386 GUnixInputStream* _tmp3_; 2387 GUnixInputStream* _tmp4_; 2388 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2389 _data_ = g_slice_new0 (TrackerSteroidsUpdateBlankData); 2390 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2391 _data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, tracker_steroids_update_blank); 2392 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2393 g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, tracker_steroids_update_blank_data_free); 2394 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2395 _tmp0_ = _g_object_ref0 (self); 2396 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2397 _data_->self = _tmp0_; 2398 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2399 _tmp1_ = sender; 2400 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2401 _tmp2_ = g_strdup (_tmp1_); 2402 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2403 _g_free0 (_data_->sender); 2404 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2405 _data_->sender = _tmp2_; 2406 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2407 _tmp3_ = input_stream; 2408 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2409 _tmp4_ = _g_object_ref0 (_tmp3_); 2410 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2411 _g_object_unref0 (_data_->input_stream); 2412 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2413 _data_->input_stream = _tmp4_; 2414 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2415 tracker_steroids_update_blank_co (_data_); 2416 #line 2417 "tracker-steroids.c" 2417 } 2418 2419 2420 GVariant* tracker_steroids_update_blank_finish (TrackerSteroids* self, GAsyncResult* _res_, GError** error) { 2421 GVariant* result; 2422 TrackerSteroidsUpdateBlankData* _data_; 2423 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2424 if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) { 2425 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2426 return NULL; 2427 #line 2428 "tracker-steroids.c" 2428 } 2429 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2430 _data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_)); 2431 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2432 result = _data_->result; 2433 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2434 _data_->result = NULL; 2435 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2436 return result; 2437 #line 2438 "tracker-steroids.c" 2438 } 2439 2440 2441 static void tracker_steroids_update_blank_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) { 2442 TrackerSteroidsUpdateBlankData* _data_; 2443 #line 150 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2444 _data_ = _user_data_; 2445 #line 150 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2446 _data_->_source_object_ = source_object; 2447 #line 150 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2448 _data_->_res_ = _res_; 2449 #line 150 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2450 tracker_steroids_update_blank_co (_data_); 2451 #line 2452 "tracker-steroids.c" 2452 } 2453 2454 2455 static gboolean tracker_steroids_update_blank_co (TrackerSteroidsUpdateBlankData* _data_) { 2456 #line 149 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2457 switch (_data_->_state_) { 2458 #line 149 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2459 case 0: 2460 #line 2461 "tracker-steroids.c" 2461 goto _state_0; 2462 #line 149 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2463 case 1: 2464 #line 2465 "tracker-steroids.c" 2465 goto _state_1; 2466 default: 2467 #line 149 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2468 g_assert_not_reached (); 2469 #line 2470 "tracker-steroids.c" 2470 } 2471 _state_0: 2472 #line 150 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2473 _data_->_tmp0_ = _data_->sender; 2474 #line 150 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2475 _data_->_tmp1_ = _data_->input_stream; 2476 #line 150 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2477 _data_->_state_ = 1; 2478 #line 150 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2479 tracker_steroids_update_internal (_data_->self, _data_->_tmp0_, TRACKER_STORE_PRIORITY_HIGH, TRUE, _data_->_tmp1_, tracker_steroids_update_blank_ready, _data_); 2480 #line 150 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2481 return FALSE; 2482 #line 2483 "tracker-steroids.c" 2483 _state_1: 2484 #line 150 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2485 _data_->_tmp2_ = NULL; 2486 #line 150 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2487 _data_->_tmp2_ = tracker_steroids_update_internal_finish (_data_->self, _data_->_res_, &_data_->_inner_error_); 2488 #line 150 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2489 _data_->_tmp3_ = _data_->_tmp2_; 2490 #line 150 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2491 if (_data_->_inner_error_ != NULL) { 2492 #line 150 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2493 g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_); 2494 #line 150 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2495 g_error_free (_data_->_inner_error_); 2496 #line 150 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2497 if (_data_->_state_ == 0) { 2498 #line 150 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2499 g_simple_async_result_complete_in_idle (_data_->_async_result); 2500 #line 2501 "tracker-steroids.c" 2501 } else { 2502 #line 150 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2503 g_simple_async_result_complete (_data_->_async_result); 2504 #line 2505 "tracker-steroids.c" 2505 } 2506 #line 150 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2507 g_object_unref (_data_->_async_result); 2508 #line 150 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2509 return FALSE; 2510 #line 2511 "tracker-steroids.c" 2511 } 2512 #line 150 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2513 _data_->result = _data_->_tmp3_; 2514 #line 150 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2515 if (_data_->_state_ == 0) { 2516 #line 150 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2517 g_simple_async_result_complete_in_idle (_data_->_async_result); 2518 #line 2519 "tracker-steroids.c" 2519 } else { 2520 #line 150 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2521 g_simple_async_result_complete (_data_->_async_result); 2522 #line 2523 "tracker-steroids.c" 2523 } 2524 #line 150 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2525 g_object_unref (_data_->_async_result); 2526 #line 150 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2527 return FALSE; 2528 #line 149 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2529 if (_data_->_state_ == 0) { 2530 #line 149 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2531 g_simple_async_result_complete_in_idle (_data_->_async_result); 2532 #line 2533 "tracker-steroids.c" 2533 } else { 2534 #line 149 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2535 g_simple_async_result_complete (_data_->_async_result); 2536 #line 2537 "tracker-steroids.c" 2537 } 2538 #line 149 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2539 g_object_unref (_data_->_async_result); 2540 #line 149 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2541 return FALSE; 2542 #line 2543 "tracker-steroids.c" 2543 } 2544 2545 2546 static void tracker_steroids_batch_update_blank_data_free (gpointer _data) { 2547 TrackerSteroidsBatchUpdateBlankData* _data_; 2548 _data_ = _data; 2549 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2550 _g_free0 (_data_->sender); 2551 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2552 _g_object_unref0 (_data_->input_stream); 2553 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2554 _g_variant_unref0 (_data_->result); 2555 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2556 _g_object_unref0 (_data_->self); 2557 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2558 g_slice_free (TrackerSteroidsBatchUpdateBlankData, _data_); 2559 #line 2560 "tracker-steroids.c" 2560 } 2561 2562 2563 void tracker_steroids_batch_update_blank (TrackerSteroids* self, const char* sender, GUnixInputStream* input_stream, GAsyncReadyCallback _callback_, gpointer _user_data_) { 2564 TrackerSteroidsBatchUpdateBlankData* _data_; 2565 TrackerSteroids* _tmp0_; 2566 const char* _tmp1_; 2567 char* _tmp2_; 2568 GUnixInputStream* _tmp3_; 2569 GUnixInputStream* _tmp4_; 2570 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2571 _data_ = g_slice_new0 (TrackerSteroidsBatchUpdateBlankData); 2572 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2573 _data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, tracker_steroids_batch_update_blank); 2574 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2575 g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, tracker_steroids_batch_update_blank_data_free); 2576 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2577 _tmp0_ = _g_object_ref0 (self); 2578 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2579 _data_->self = _tmp0_; 2580 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2581 _tmp1_ = sender; 2582 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2583 _tmp2_ = g_strdup (_tmp1_); 2584 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2585 _g_free0 (_data_->sender); 2586 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2587 _data_->sender = _tmp2_; 2588 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2589 _tmp3_ = input_stream; 2590 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2591 _tmp4_ = _g_object_ref0 (_tmp3_); 2592 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2593 _g_object_unref0 (_data_->input_stream); 2594 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2595 _data_->input_stream = _tmp4_; 2596 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2597 tracker_steroids_batch_update_blank_co (_data_); 2598 #line 2599 "tracker-steroids.c" 2599 } 2600 2601 2602 GVariant* tracker_steroids_batch_update_blank_finish (TrackerSteroids* self, GAsyncResult* _res_, GError** error) { 2603 GVariant* result; 2604 TrackerSteroidsBatchUpdateBlankData* _data_; 2605 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2606 if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) { 2607 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2608 return NULL; 2609 #line 2610 "tracker-steroids.c" 2610 } 2611 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2612 _data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_)); 2613 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2614 result = _data_->result; 2615 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2616 _data_->result = NULL; 2617 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2618 return result; 2619 #line 2620 "tracker-steroids.c" 2620 } 2621 2622 2623 static void tracker_steroids_batch_update_blank_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) { 2624 TrackerSteroidsBatchUpdateBlankData* _data_; 2625 #line 155 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2626 _data_ = _user_data_; 2627 #line 155 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2628 _data_->_source_object_ = source_object; 2629 #line 155 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2630 _data_->_res_ = _res_; 2631 #line 155 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2632 tracker_steroids_batch_update_blank_co (_data_); 2633 #line 2634 "tracker-steroids.c" 2634 } 2635 2636 2637 static gboolean tracker_steroids_batch_update_blank_co (TrackerSteroidsBatchUpdateBlankData* _data_) { 2638 #line 154 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2639 switch (_data_->_state_) { 2640 #line 154 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2641 case 0: 2642 #line 2643 "tracker-steroids.c" 2643 goto _state_0; 2644 #line 154 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2645 case 1: 2646 #line 2647 "tracker-steroids.c" 2647 goto _state_1; 2648 default: 2649 #line 154 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2650 g_assert_not_reached (); 2651 #line 2652 "tracker-steroids.c" 2652 } 2653 _state_0: 2654 #line 155 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2655 _data_->_tmp0_ = _data_->sender; 2656 #line 155 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2657 _data_->_tmp1_ = _data_->input_stream; 2658 #line 155 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2659 _data_->_state_ = 1; 2660 #line 155 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2661 tracker_steroids_update_internal (_data_->self, _data_->_tmp0_, TRACKER_STORE_PRIORITY_LOW, TRUE, _data_->_tmp1_, tracker_steroids_batch_update_blank_ready, _data_); 2662 #line 155 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2663 return FALSE; 2664 #line 2665 "tracker-steroids.c" 2665 _state_1: 2666 #line 155 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2667 _data_->_tmp2_ = NULL; 2668 #line 155 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2669 _data_->_tmp2_ = tracker_steroids_update_internal_finish (_data_->self, _data_->_res_, &_data_->_inner_error_); 2670 #line 155 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2671 _data_->_tmp3_ = _data_->_tmp2_; 2672 #line 155 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2673 if (_data_->_inner_error_ != NULL) { 2674 #line 155 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2675 g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_); 2676 #line 155 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2677 g_error_free (_data_->_inner_error_); 2678 #line 155 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2679 if (_data_->_state_ == 0) { 2680 #line 155 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2681 g_simple_async_result_complete_in_idle (_data_->_async_result); 2682 #line 2683 "tracker-steroids.c" 2683 } else { 2684 #line 155 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2685 g_simple_async_result_complete (_data_->_async_result); 2686 #line 2687 "tracker-steroids.c" 2687 } 2688 #line 155 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2689 g_object_unref (_data_->_async_result); 2690 #line 155 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2691 return FALSE; 2692 #line 2693 "tracker-steroids.c" 2693 } 2694 #line 155 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2695 _data_->result = _data_->_tmp3_; 2696 #line 155 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2697 if (_data_->_state_ == 0) { 2698 #line 155 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2699 g_simple_async_result_complete_in_idle (_data_->_async_result); 2700 #line 2701 "tracker-steroids.c" 2701 } else { 2702 #line 155 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2703 g_simple_async_result_complete (_data_->_async_result); 2704 #line 2705 "tracker-steroids.c" 2705 } 2706 #line 155 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2707 g_object_unref (_data_->_async_result); 2708 #line 155 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2709 return FALSE; 2710 #line 154 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2711 if (_data_->_state_ == 0) { 2712 #line 154 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2713 g_simple_async_result_complete_in_idle (_data_->_async_result); 2714 #line 2715 "tracker-steroids.c" 2715 } else { 2716 #line 154 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2717 g_simple_async_result_complete (_data_->_async_result); 2718 #line 2719 "tracker-steroids.c" 2719 } 2720 #line 154 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2721 g_object_unref (_data_->_async_result); 2722 #line 154 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2723 return FALSE; 2724 #line 2725 "tracker-steroids.c" 2725 } 2726 2727 2728 static void tracker_steroids_update_array_data_free (gpointer _data) { 2729 TrackerSteroidsUpdateArrayData* _data_; 2730 _data_ = _data; 2731 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2732 _g_free0 (_data_->sender); 2733 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2734 _g_object_unref0 (_data_->input_stream); 2735 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2736 _g_variant_unref0 (_data_->result); 2737 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2738 _g_object_unref0 (_data_->self); 2739 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2740 g_slice_free (TrackerSteroidsUpdateArrayData, _data_); 2741 #line 2742 "tracker-steroids.c" 2742 } 2743 2744 2745 void tracker_steroids_update_array (TrackerSteroids* self, const char* sender, GUnixInputStream* input_stream, GAsyncReadyCallback _callback_, gpointer _user_data_) { 2746 TrackerSteroidsUpdateArrayData* _data_; 2747 TrackerSteroids* _tmp0_; 2748 const char* _tmp1_; 2749 char* _tmp2_; 2750 GUnixInputStream* _tmp3_; 2751 GUnixInputStream* _tmp4_; 2752 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2753 _data_ = g_slice_new0 (TrackerSteroidsUpdateArrayData); 2754 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2755 _data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, tracker_steroids_update_array); 2756 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2757 g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, tracker_steroids_update_array_data_free); 2758 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2759 _tmp0_ = _g_object_ref0 (self); 2760 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2761 _data_->self = _tmp0_; 2762 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2763 _tmp1_ = sender; 2764 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2765 _tmp2_ = g_strdup (_tmp1_); 2766 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2767 _g_free0 (_data_->sender); 2768 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2769 _data_->sender = _tmp2_; 2770 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2771 _tmp3_ = input_stream; 2772 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2773 _tmp4_ = _g_object_ref0 (_tmp3_); 2774 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2775 _g_object_unref0 (_data_->input_stream); 2776 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2777 _data_->input_stream = _tmp4_; 2778 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2779 tracker_steroids_update_array_co (_data_); 2780 #line 2781 "tracker-steroids.c" 2781 } 2782 2783 2784 GVariant* tracker_steroids_update_array_finish (TrackerSteroids* self, GAsyncResult* _res_, GError** error) { 2785 GVariant* result; 2786 TrackerSteroidsUpdateArrayData* _data_; 2787 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2788 if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) { 2789 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2790 return NULL; 2791 #line 2792 "tracker-steroids.c" 2792 } 2793 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2794 _data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_)); 2795 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2796 result = _data_->result; 2797 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2798 _data_->result = NULL; 2799 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2800 return result; 2801 #line 2802 "tracker-steroids.c" 2802 } 2803 2804 2805 static void tracker_steroids_update_array_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) { 2806 TrackerSteroidsUpdateArrayData* _data_; 2807 #line 192 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2808 _data_ = _user_data_; 2809 #line 192 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2810 _data_->_source_object_ = source_object; 2811 #line 192 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2812 _data_->_res_ = _res_; 2813 #line 192 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2814 tracker_steroids_update_array_co (_data_); 2815 #line 2816 "tracker-steroids.c" 2816 } 2817 2818 2819 static gboolean tracker_steroids_update_array_co (TrackerSteroidsUpdateArrayData* _data_) { 2820 #line 159 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2821 switch (_data_->_state_) { 2822 #line 159 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2823 case 0: 2824 #line 2825 "tracker-steroids.c" 2825 goto _state_0; 2826 #line 159 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2827 case 1: 2828 #line 2829 "tracker-steroids.c" 2829 goto _state_1; 2830 #line 159 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2831 case 2: 2832 #line 2833 "tracker-steroids.c" 2833 goto _state_2; 2834 default: 2835 #line 159 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2836 g_assert_not_reached (); 2837 #line 2838 "tracker-steroids.c" 2838 } 2839 _state_0: 2840 #line 160 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2841 _data_->_tmp0_ = _data_->sender; 2842 #line 160 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2843 _data_->_tmp1_ = NULL; 2844 #line 160 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2845 _data_->_tmp1_ = tracker_dbus_request_begin ((const gchar*) _data_->_tmp0_, "Steroids.UpdateArray", NULL); 2846 #line 160 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2847 _data_->request = _data_->_tmp1_; 2848 #line 2849 "tracker-steroids.c" 2849 { 2850 #line 162 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2851 _data_->_tmp2_ = _data_->input_stream; 2852 #line 162 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2853 _data_->_tmp3_ = g_data_input_stream_new ((GInputStream*) _data_->_tmp2_); 2854 #line 162 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2855 _data_->data_input_stream = _data_->_tmp3_; 2856 #line 163 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2857 _data_->_tmp4_ = _data_->data_input_stream; 2858 #line 163 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2859 g_buffered_input_stream_set_buffer_size ((GBufferedInputStream*) _data_->_tmp4_, (gsize) TRACKER_STEROIDS_BUFFER_SIZE); 2860 #line 164 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2861 _data_->_tmp5_ = _data_->data_input_stream; 2862 #line 164 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2863 g_data_input_stream_set_byte_order (_data_->_tmp5_, G_DATA_STREAM_BYTE_ORDER_HOST_ENDIAN); 2864 #line 166 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2865 _data_->_tmp6_ = _data_->data_input_stream; 2866 #line 166 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2867 _data_->_tmp7_ = 0; 2868 #line 166 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2869 _data_->_tmp7_ = g_data_input_stream_read_int32 (_data_->_tmp6_, NULL, &_data_->_inner_error_); 2870 #line 166 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2871 _data_->query_count = (gint) _data_->_tmp7_; 2872 #line 166 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2873 if (_data_->_inner_error_ != NULL) { 2874 #line 166 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2875 _g_object_unref0 (_data_->data_input_stream); 2876 #line 2877 "tracker-steroids.c" 2877 goto __catch15_g_error; 2878 } 2879 #line 168 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2880 _data_->_tmp8_ = g_string_new (""); 2881 #line 168 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2882 _data_->combined_query = _data_->_tmp8_; 2883 #line 169 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2884 _data_->_tmp9_ = _data_->query_count; 2885 #line 169 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2886 _data_->_tmp10_ = NULL; 2887 #line 169 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2888 _data_->_tmp10_ = g_new0 (gchar*, _data_->_tmp9_ + 1); 2889 #line 169 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2890 _data_->query_array = _data_->_tmp10_; 2891 #line 169 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2892 _data_->query_array_length1 = _data_->_tmp9_; 2893 #line 169 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2894 _data_->_query_array_size_ = _data_->query_array_length1; 2895 #line 2896 "tracker-steroids.c" 2896 { 2897 #line 172 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2898 _data_->i = 0; 2899 #line 172 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2900 _data_->_tmp11_ = TRUE; 2901 #line 172 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2902 while (TRUE) { 2903 #line 172 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2904 _data_->_tmp12_ = _data_->_tmp11_; 2905 #line 172 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2906 if (!_data_->_tmp12_) { 2907 #line 172 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2908 _data_->_tmp13_ = _data_->i; 2909 #line 172 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2910 _data_->i = _data_->_tmp13_ + 1; 2911 #line 2912 "tracker-steroids.c" 2912 } 2913 #line 172 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2914 _data_->_tmp11_ = FALSE; 2915 #line 172 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2916 _data_->_tmp14_ = _data_->i; 2917 #line 172 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2918 _data_->_tmp15_ = _data_->query_count; 2919 #line 172 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2920 if (!(_data_->_tmp14_ < _data_->_tmp15_)) { 2921 #line 172 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2922 break; 2923 #line 2924 "tracker-steroids.c" 2924 } 2925 #line 175 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2926 _data_->_tmp16_ = _data_->data_input_stream; 2927 #line 175 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2928 _data_->_tmp17_ = 0; 2929 #line 175 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2930 _data_->_tmp17_ = g_data_input_stream_read_int32 (_data_->_tmp16_, NULL, &_data_->_inner_error_); 2931 #line 175 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2932 _data_->query_size = (gint) _data_->_tmp17_; 2933 #line 175 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2934 if (_data_->_inner_error_ != NULL) { 2935 #line 175 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2936 _data_->query_array = (_vala_array_free (_data_->query_array, _data_->query_array_length1, (GDestroyNotify) g_free), NULL); 2937 #line 175 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2938 _g_string_free0 (_data_->combined_query); 2939 #line 175 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2940 _g_object_unref0 (_data_->data_input_stream); 2941 #line 2942 "tracker-steroids.c" 2942 goto __catch15_g_error; 2943 } 2944 #line 178 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2945 _data_->_tmp18_ = _data_->query_array; 2946 #line 178 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2947 _data_->_tmp18__length1 = _data_->query_array_length1; 2948 #line 178 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2949 _data_->_tmp19_ = _data_->i; 2950 #line 178 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2951 _data_->_tmp20_ = _data_->query_size; 2952 #line 178 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2953 _data_->_tmp21_ = NULL; 2954 #line 178 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2955 _data_->_tmp21_ = g_new0 (guint8, _data_->_tmp20_ + 1); 2956 #line 178 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2957 _g_free0 (_data_->_tmp18_[_data_->_tmp19_]); 2958 #line 178 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2959 _data_->_tmp18_[_data_->_tmp19_] = (gchar*) _data_->_tmp21_; 2960 #line 178 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2961 _data_->_tmp22_ = _data_->_tmp18_[_data_->_tmp19_]; 2962 #line 180 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2963 _data_->_tmp23_ = _data_->data_input_stream; 2964 #line 180 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2965 _data_->_tmp24_ = _data_->query_array; 2966 #line 180 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2967 _data_->_tmp24__length1 = _data_->query_array_length1; 2968 #line 180 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2969 _data_->_tmp25_ = _data_->i; 2970 #line 180 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2971 _data_->_tmp26_ = _data_->_tmp24_[_data_->_tmp25_]; 2972 #line 180 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2973 _data_->_tmp27_ = _data_->query_size; 2974 #line 180 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2975 _data_->_tmp28_ = 0UL; 2976 #line 180 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2977 g_input_stream_read_all ((GInputStream*) _data_->_tmp23_, (void*) (((guint8*) _data_->_tmp26_) + 0), (gsize) (_data_->_tmp27_ - 0), &_data_->_tmp28_, NULL, &_data_->_inner_error_); 2978 #line 180 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2979 _data_->bytes_read = _data_->_tmp28_; 2980 #line 180 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2981 if (_data_->_inner_error_ != NULL) { 2982 #line 180 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2983 _data_->query_array = (_vala_array_free (_data_->query_array, _data_->query_array_length1, (GDestroyNotify) g_free), NULL); 2984 #line 180 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2985 _g_string_free0 (_data_->combined_query); 2986 #line 180 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2987 _g_object_unref0 (_data_->data_input_stream); 2988 #line 2989 "tracker-steroids.c" 2989 goto __catch15_g_error; 2990 } 2991 #line 182 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2992 _data_->_tmp29_ = _data_->request; 2993 #line 182 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2994 _data_->_tmp30_ = _data_->query_array; 2995 #line 182 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2996 _data_->_tmp30__length1 = _data_->query_array_length1; 2997 #line 182 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 2998 _data_->_tmp31_ = _data_->i; 2999 #line 182 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3000 _data_->_tmp32_ = _data_->_tmp30_[_data_->_tmp31_]; 3001 #line 182 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3002 tracker_dbus_request_debug (_data_->_tmp29_, "query: %s", _data_->_tmp32_, NULL); 3003 #line 183 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3004 _data_->_tmp33_ = _data_->combined_query; 3005 #line 183 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3006 _data_->_tmp34_ = _data_->query_array; 3007 #line 183 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3008 _data_->_tmp34__length1 = _data_->query_array_length1; 3009 #line 183 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3010 _data_->_tmp35_ = _data_->i; 3011 #line 183 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3012 _data_->_tmp36_ = _data_->_tmp34_[_data_->_tmp35_]; 3013 #line 183 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3014 g_string_append (_data_->_tmp33_, _data_->_tmp36_); 3015 #line 3016 "tracker-steroids.c" 3016 } 3017 } 3018 #line 186 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3019 _g_object_unref0 (_data_->data_input_stream); 3020 #line 186 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3021 _data_->data_input_stream = NULL; 3022 #line 188 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3023 _data_->_tmp37_ = g_variant_builder_new ((const GVariantType*) "as"); 3024 #line 188 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3025 _data_->builder = _data_->_tmp37_; 3026 #line 3027 "tracker-steroids.c" 3027 { 3028 #line 192 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3029 _data_->_tmp38_ = _data_->combined_query; 3030 #line 192 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3031 _data_->_tmp39_ = _data_->_tmp38_->str; 3032 #line 192 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3033 _data_->_tmp40_ = _data_->sender; 3034 #line 192 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3035 _data_->_state_ = 1; 3036 #line 192 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3037 tracker_store_sparql_update (_data_->_tmp39_, TRACKER_STORE_PRIORITY_LOW, (const gchar*) _data_->_tmp40_, tracker_steroids_update_array_ready, _data_); 3038 #line 192 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3039 return FALSE; 3040 #line 3041 "tracker-steroids.c" 3041 _state_1: 3042 #line 192 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3043 tracker_store_sparql_update_finish (_data_->_res_, &_data_->_inner_error_); 3044 #line 192 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3045 if (_data_->_inner_error_ != NULL) { 3046 #line 3047 "tracker-steroids.c" 3047 goto __catch16_g_error; 3048 } 3049 { 3050 #line 195 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3051 _data_->i = 0; 3052 #line 195 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3053 _data_->_tmp41_ = TRUE; 3054 #line 195 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3055 while (TRUE) { 3056 #line 195 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3057 _data_->_tmp42_ = _data_->_tmp41_; 3058 #line 195 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3059 if (!_data_->_tmp42_) { 3060 #line 195 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3061 _data_->_tmp43_ = _data_->i; 3062 #line 195 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3063 _data_->i = _data_->_tmp43_ + 1; 3064 #line 3065 "tracker-steroids.c" 3065 } 3066 #line 195 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3067 _data_->_tmp41_ = FALSE; 3068 #line 195 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3069 _data_->_tmp44_ = _data_->i; 3070 #line 195 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3071 _data_->_tmp45_ = _data_->query_count; 3072 #line 195 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3073 if (!(_data_->_tmp44_ < _data_->_tmp45_)) { 3074 #line 195 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3075 break; 3076 #line 3077 "tracker-steroids.c" 3077 } 3078 #line 196 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3079 _data_->_tmp46_ = _data_->builder; 3080 #line 196 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3081 g_variant_builder_add (_data_->_tmp46_, "s", "", NULL); 3082 #line 197 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3083 _data_->_tmp47_ = _data_->builder; 3084 #line 197 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3085 g_variant_builder_add (_data_->_tmp47_, "s", "", NULL); 3086 #line 3087 "tracker-steroids.c" 3087 } 3088 } 3089 #line 200 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3090 _data_->_tmp48_ = _data_->request; 3091 #line 200 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3092 tracker_dbus_request_end (_data_->_tmp48_, NULL); 3093 #line 202 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3094 _data_->_tmp49_ = _data_->builder; 3095 #line 202 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3096 _data_->_tmp50_ = NULL; 3097 #line 202 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3098 _data_->_tmp50_ = g_variant_builder_end (_data_->_tmp49_); 3099 #line 202 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3100 g_variant_ref_sink (_data_->_tmp50_); 3101 #line 202 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3102 _data_->result = _data_->_tmp50_; 3103 #line 202 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3104 _g_variant_builder_unref0 (_data_->builder); 3105 #line 202 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3106 _data_->query_array = (_vala_array_free (_data_->query_array, _data_->query_array_length1, (GDestroyNotify) g_free), NULL); 3107 #line 202 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3108 _g_string_free0 (_data_->combined_query); 3109 #line 202 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3110 _g_object_unref0 (_data_->data_input_stream); 3111 #line 202 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3112 if (_data_->_state_ == 0) { 3113 #line 202 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3114 g_simple_async_result_complete_in_idle (_data_->_async_result); 3115 #line 3116 "tracker-steroids.c" 3116 } else { 3117 #line 202 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3118 g_simple_async_result_complete (_data_->_async_result); 3119 #line 3120 "tracker-steroids.c" 3120 } 3121 #line 202 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3122 g_object_unref (_data_->_async_result); 3123 #line 202 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3124 return FALSE; 3125 #line 3126 "tracker-steroids.c" 3126 } 3127 goto __finally16; 3128 __catch16_g_error: 3129 { 3130 #line 191 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3131 g_clear_error (&_data_->_inner_error_); 3132 #line 191 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3133 _data_->_inner_error_ = NULL; 3134 #line 205 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3135 _g_string_free0 (_data_->combined_query); 3136 #line 205 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3137 _data_->combined_query = NULL; 3138 #line 3139 "tracker-steroids.c" 3139 } 3140 __finally16: 3141 #line 191 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3142 if (_data_->_inner_error_ != NULL) { 3143 #line 191 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3144 _g_variant_builder_unref0 (_data_->builder); 3145 #line 191 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3146 _data_->query_array = (_vala_array_free (_data_->query_array, _data_->query_array_length1, (GDestroyNotify) g_free), NULL); 3147 #line 191 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3148 _g_string_free0 (_data_->combined_query); 3149 #line 191 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3150 _g_object_unref0 (_data_->data_input_stream); 3151 #line 3152 "tracker-steroids.c" 3152 goto __catch15_g_error; 3153 } 3154 { 3155 #line 209 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3156 _data_->i = 0; 3157 #line 209 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3158 _data_->_tmp51_ = TRUE; 3159 #line 209 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3160 while (TRUE) { 3161 #line 209 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3162 _data_->_tmp52_ = _data_->_tmp51_; 3163 #line 209 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3164 if (!_data_->_tmp52_) { 3165 #line 209 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3166 _data_->_tmp53_ = _data_->i; 3167 #line 209 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3168 _data_->i = _data_->_tmp53_ + 1; 3169 #line 3170 "tracker-steroids.c" 3170 } 3171 #line 209 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3172 _data_->_tmp51_ = FALSE; 3173 #line 209 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3174 _data_->_tmp54_ = _data_->i; 3175 #line 209 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3176 _data_->_tmp55_ = _data_->query_count; 3177 #line 209 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3178 if (!(_data_->_tmp54_ < _data_->_tmp55_)) { 3179 #line 209 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3180 break; 3181 #line 3182 "tracker-steroids.c" 3182 } 3183 #line 210 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3184 _data_->_tmp56_ = _data_->request; 3185 #line 210 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3186 _data_->_tmp57_ = _data_->query_array; 3187 #line 210 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3188 _data_->_tmp57__length1 = _data_->query_array_length1; 3189 #line 210 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3190 _data_->_tmp58_ = _data_->i; 3191 #line 210 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3192 _data_->_tmp59_ = _data_->_tmp57_[_data_->_tmp58_]; 3193 #line 210 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3194 tracker_dbus_request_debug (_data_->_tmp56_, "query: %s", _data_->_tmp59_, NULL); 3195 #line 3196 "tracker-steroids.c" 3196 { 3197 #line 213 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3198 _data_->_tmp60_ = _data_->query_array; 3199 #line 213 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3200 _data_->_tmp60__length1 = _data_->query_array_length1; 3201 #line 213 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3202 _data_->_tmp61_ = _data_->i; 3203 #line 213 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3204 _data_->_tmp62_ = _data_->_tmp60_[_data_->_tmp61_]; 3205 #line 213 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3206 _data_->_tmp63_ = _data_->sender; 3207 #line 213 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3208 _data_->_state_ = 2; 3209 #line 213 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3210 tracker_store_sparql_update (_data_->_tmp62_, TRACKER_STORE_PRIORITY_LOW, (const gchar*) _data_->_tmp63_, tracker_steroids_update_array_ready, _data_); 3211 #line 213 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3212 return FALSE; 3213 #line 3214 "tracker-steroids.c" 3214 _state_2: 3215 #line 213 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3216 tracker_store_sparql_update_finish (_data_->_res_, &_data_->_inner_error_); 3217 #line 213 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3218 if (_data_->_inner_error_ != NULL) { 3219 #line 3220 "tracker-steroids.c" 3220 goto __catch17_g_error; 3221 } 3222 #line 214 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3223 _data_->_tmp64_ = _data_->builder; 3224 #line 214 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3225 g_variant_builder_add (_data_->_tmp64_, "s", "", NULL); 3226 #line 215 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3227 _data_->_tmp65_ = _data_->builder; 3228 #line 215 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3229 g_variant_builder_add (_data_->_tmp65_, "s", "", NULL); 3230 #line 3231 "tracker-steroids.c" 3231 } 3232 goto __finally17; 3233 __catch17_g_error: 3234 { 3235 #line 212 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3236 _data_->e1 = _data_->_inner_error_; 3237 #line 212 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3238 _data_->_inner_error_ = NULL; 3239 #line 217 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3240 _data_->_tmp66_ = _data_->builder; 3241 #line 217 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3242 g_variant_builder_add (_data_->_tmp66_, "s", "org.freedesktop.Tracker1.SparqlError.Internal", NULL); 3243 #line 218 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3244 _data_->_tmp67_ = _data_->builder; 3245 #line 218 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3246 _data_->_tmp68_ = _data_->e1; 3247 #line 218 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3248 _data_->_tmp69_ = _data_->_tmp68_->message; 3249 #line 218 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3250 g_variant_builder_add (_data_->_tmp67_, "s", _data_->_tmp69_, NULL); 3251 #line 212 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3252 _g_error_free0 (_data_->e1); 3253 #line 3254 "tracker-steroids.c" 3254 } 3255 __finally17: 3256 #line 212 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3257 if (_data_->_inner_error_ != NULL) { 3258 #line 212 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3259 _g_variant_builder_unref0 (_data_->builder); 3260 #line 212 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3261 _data_->query_array = (_vala_array_free (_data_->query_array, _data_->query_array_length1, (GDestroyNotify) g_free), NULL); 3262 #line 212 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3263 _g_string_free0 (_data_->combined_query); 3264 #line 212 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3265 _g_object_unref0 (_data_->data_input_stream); 3266 #line 3267 "tracker-steroids.c" 3267 goto __catch15_g_error; 3268 } 3269 } 3270 } 3271 #line 223 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3272 _data_->_tmp70_ = _data_->request; 3273 #line 223 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3274 tracker_dbus_request_end (_data_->_tmp70_, NULL); 3275 #line 225 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3276 _data_->_tmp71_ = _data_->builder; 3277 #line 225 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3278 _data_->_tmp72_ = NULL; 3279 #line 225 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3280 _data_->_tmp72_ = g_variant_builder_end (_data_->_tmp71_); 3281 #line 225 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3282 g_variant_ref_sink (_data_->_tmp72_); 3283 #line 225 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3284 _data_->result = _data_->_tmp72_; 3285 #line 225 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3286 _g_variant_builder_unref0 (_data_->builder); 3287 #line 225 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3288 _data_->query_array = (_vala_array_free (_data_->query_array, _data_->query_array_length1, (GDestroyNotify) g_free), NULL); 3289 #line 225 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3290 _g_string_free0 (_data_->combined_query); 3291 #line 225 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3292 _g_object_unref0 (_data_->data_input_stream); 3293 #line 225 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3294 if (_data_->_state_ == 0) { 3295 #line 225 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3296 g_simple_async_result_complete_in_idle (_data_->_async_result); 3297 #line 3298 "tracker-steroids.c" 3298 } else { 3299 #line 225 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3300 g_simple_async_result_complete (_data_->_async_result); 3301 #line 3302 "tracker-steroids.c" 3302 } 3303 #line 225 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3304 g_object_unref (_data_->_async_result); 3305 #line 225 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3306 return FALSE; 3307 #line 3308 "tracker-steroids.c" 3308 } 3309 goto __finally15; 3310 __catch15_g_error: 3311 { 3312 #line 161 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3313 _data_->e = _data_->_inner_error_; 3314 #line 161 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3315 _data_->_inner_error_ = NULL; 3316 #line 227 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3317 _data_->_tmp73_ = _data_->request; 3318 #line 227 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3319 _data_->_tmp74_ = _data_->e; 3320 #line 227 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3321 tracker_dbus_request_end (_data_->_tmp73_, _data_->_tmp74_); 3322 #line 228 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3323 _data_->_tmp75_ = _data_->e; 3324 #line 228 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3325 if (_data_->_tmp75_->domain == TRACKER_SPARQL_ERROR) { 3326 #line 229 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3327 _data_->_tmp76_ = _data_->e; 3328 #line 229 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3329 _data_->_tmp77_ = _g_error_copy0 (_data_->_tmp76_); 3330 #line 229 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3331 _data_->_inner_error_ = _data_->_tmp77_; 3332 #line 229 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3333 _g_error_free0 (_data_->e); 3334 #line 3335 "tracker-steroids.c" 3335 goto __finally15; 3336 } else { 3337 #line 231 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3338 _data_->_tmp78_ = _data_->e; 3339 #line 231 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3340 _data_->_tmp79_ = _data_->_tmp78_->message; 3341 #line 231 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3342 _data_->_tmp80_ = g_error_new_literal (TRACKER_SPARQL_ERROR, TRACKER_SPARQL_ERROR_INTERNAL, _data_->_tmp79_); 3343 #line 231 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3344 _data_->_inner_error_ = _data_->_tmp80_; 3345 #line 231 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3346 _g_error_free0 (_data_->e); 3347 #line 3348 "tracker-steroids.c" 3348 goto __finally15; 3349 } 3350 #line 161 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3351 _g_error_free0 (_data_->e); 3352 #line 3353 "tracker-steroids.c" 3353 } 3354 __finally15: 3355 #line 161 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3356 g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_); 3357 #line 161 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3358 g_error_free (_data_->_inner_error_); 3359 #line 161 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3360 if (_data_->_state_ == 0) { 3361 #line 161 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3362 g_simple_async_result_complete_in_idle (_data_->_async_result); 3363 #line 3364 "tracker-steroids.c" 3364 } else { 3365 #line 161 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3366 g_simple_async_result_complete (_data_->_async_result); 3367 #line 3368 "tracker-steroids.c" 3368 } 3369 #line 161 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3370 g_object_unref (_data_->_async_result); 3371 #line 161 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3372 return FALSE; 3373 #line 159 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3374 if (_data_->_state_ == 0) { 3375 #line 159 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3376 g_simple_async_result_complete_in_idle (_data_->_async_result); 3377 #line 3378 "tracker-steroids.c" 3378 } else { 3379 #line 159 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3380 g_simple_async_result_complete (_data_->_async_result); 3381 #line 3382 "tracker-steroids.c" 3382 } 3383 #line 159 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3384 g_object_unref (_data_->_async_result); 3385 #line 159 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3386 return FALSE; 3387 #line 3388 "tracker-steroids.c" 3388 } 3389 3390 3391 TrackerSteroids* tracker_steroids_construct (GType object_type) { 3392 TrackerSteroids * self = NULL; 3393 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3394 self = (TrackerSteroids*) g_object_new (object_type, NULL); 3395 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3396 return self; 3397 #line 3398 "tracker-steroids.c" 3398 } 3399 3400 3401 TrackerSteroids* tracker_steroids_new (void) { 3402 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3403 return tracker_steroids_construct (TRACKER_TYPE_STEROIDS); 3404 #line 3405 "tracker-steroids.c" 3405 } 3406 3407 3408 static void tracker_steroids_class_init (TrackerSteroidsClass * klass) { 3409 #line 22 "/home/martyn/Source/tracker/src/tracker-store/tracker-steroids.vala" 3410 tracker_steroids_parent_class = g_type_class_peek_parent (klass); 3411 #line 3412 "tracker-steroids.c" 3412 } 3413 3414 3415 static void tracker_steroids_instance_init (TrackerSteroids * self) { 3416 } 3417 3418 3419 GType tracker_steroids_get_type (void) { 3420 static volatile gsize tracker_steroids_type_id__volatile = 0; 3421 if (g_once_init_enter (&tracker_steroids_type_id__volatile)) { 3422 static const GTypeInfo g_define_type_info = { sizeof (TrackerSteroidsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tracker_steroids_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrackerSteroids), 0, (GInstanceInitFunc) tracker_steroids_instance_init, NULL }; 3423 GType tracker_steroids_type_id; 3424 tracker_steroids_type_id = g_type_register_static (G_TYPE_OBJECT, "TrackerSteroids", &g_define_type_info, 0); 3425 g_type_set_qdata (tracker_steroids_type_id, g_quark_from_static_string ("vala-dbus-register-object"), (void*) tracker_steroids_register_object); 3426 g_once_init_leave (&tracker_steroids_type_id__volatile, tracker_steroids_type_id); 3427 } 3428 return tracker_steroids_type_id__volatile; 3429 } 3430 3431 3432 static void _dbus_tracker_steroids_query (TrackerSteroids* self, GVariant* parameters, GDBusMethodInvocation* invocation) { 3433 GVariantIter _arguments_iter; 3434 gint _fd_index = 0; 3435 gchar* query = NULL; 3436 GVariant* _tmp7_; 3437 GUnixOutputStream* output_stream = NULL; 3438 g_variant_iter_init (&_arguments_iter, parameters); 3439 _tmp7_ = g_variant_iter_next_value (&_arguments_iter); 3440 query = g_variant_dup_string (_tmp7_, NULL); 3441 g_variant_unref (_tmp7_); 3442 g_variant_iter_next (&_arguments_iter, "h", &_fd_index); 3443 output_stream = (GUnixOutputStream *) g_unix_output_stream_new (g_unix_fd_list_get (g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)), _fd_index, NULL), TRUE); 3444 tracker_steroids_query (self, g_dbus_method_invocation_get_sender (invocation), query, output_stream, (GAsyncReadyCallback) _dbus_tracker_steroids_query_ready, invocation); 3445 _g_free0 (query); 3446 _g_object_unref0 (output_stream); 3447 } 3448 3449 3450 static void _dbus_tracker_steroids_query_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) { 3451 GDBusMethodInvocation * invocation; 3452 GError* error = NULL; 3453 GDBusMessage* _reply_message; 3454 GVariant* _reply; 3455 GVariantBuilder _reply_builder; 3456 GUnixFDList *_fd_list; 3457 gchar** result; 3458 int result_length1 = 0; 3459 gchar** _tmp8_; 3460 GVariantBuilder _tmp9_; 3461 int _tmp10_; 3462 invocation = _user_data_; 3463 result = tracker_steroids_query_finish ((TrackerSteroids*) source_object, _res_, &result_length1, &error); 3464 if (error) { 3465 g_dbus_method_invocation_return_gerror (invocation, error); 3466 return; 3467 } 3468 _reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation)); 3469 g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE); 3470 _fd_list = g_unix_fd_list_new (); 3471 _tmp8_ = result; 3472 g_variant_builder_init (&_tmp9_, G_VARIANT_TYPE ("as")); 3473 for (_tmp10_ = 0; _tmp10_ < result_length1; _tmp10_++) { 3474 g_variant_builder_add_value (&_tmp9_, g_variant_new_string (*_tmp8_)); 3475 _tmp8_++; 3476 } 3477 g_variant_builder_add_value (&_reply_builder, g_variant_builder_end (&_tmp9_)); 3478 result = (_vala_array_free (result, result_length1, (GDestroyNotify) g_free), NULL); 3479 _reply = g_variant_builder_end (&_reply_builder); 3480 g_dbus_message_set_body (_reply_message, _reply); 3481 g_dbus_message_set_unix_fd_list (_reply_message, _fd_list); 3482 g_object_unref (_fd_list); 3483 g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL); 3484 g_object_unref (invocation); 3485 g_object_unref (_reply_message); 3486 } 3487 3488 3489 static void _dbus_tracker_steroids_update (TrackerSteroids* self, GVariant* parameters, GDBusMethodInvocation* invocation) { 3490 GVariantIter _arguments_iter; 3491 gint _fd_index = 0; 3492 GUnixInputStream* input_stream = NULL; 3493 g_variant_iter_init (&_arguments_iter, parameters); 3494 g_variant_iter_next (&_arguments_iter, "h", &_fd_index); 3495 input_stream = (GUnixInputStream *) g_unix_input_stream_new (g_unix_fd_list_get (g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)), _fd_index, NULL), TRUE); 3496 tracker_steroids_update (self, g_dbus_method_invocation_get_sender (invocation), input_stream, (GAsyncReadyCallback) _dbus_tracker_steroids_update_ready, invocation); 3497 _g_object_unref0 (input_stream); 3498 } 3499 3500 3501 static void _dbus_tracker_steroids_update_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) { 3502 GDBusMethodInvocation * invocation; 3503 GError* error = NULL; 3504 GDBusMessage* _reply_message; 3505 GVariant* _reply; 3506 GVariantBuilder _reply_builder; 3507 GUnixFDList *_fd_list; 3508 invocation = _user_data_; 3509 tracker_steroids_update_finish ((TrackerSteroids*) source_object, _res_, &error); 3510 if (error) { 3511 g_dbus_method_invocation_return_gerror (invocation, error); 3512 return; 3513 } 3514 _reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation)); 3515 g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE); 3516 _fd_list = g_unix_fd_list_new (); 3517 _reply = g_variant_builder_end (&_reply_builder); 3518 g_dbus_message_set_body (_reply_message, _reply); 3519 g_dbus_message_set_unix_fd_list (_reply_message, _fd_list); 3520 g_object_unref (_fd_list); 3521 g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL); 3522 g_object_unref (invocation); 3523 g_object_unref (_reply_message); 3524 } 3525 3526 3527 static void _dbus_tracker_steroids_batch_update (TrackerSteroids* self, GVariant* parameters, GDBusMethodInvocation* invocation) { 3528 GVariantIter _arguments_iter; 3529 gint _fd_index = 0; 3530 GUnixInputStream* input_stream = NULL; 3531 g_variant_iter_init (&_arguments_iter, parameters); 3532 g_variant_iter_next (&_arguments_iter, "h", &_fd_index); 3533 input_stream = (GUnixInputStream *) g_unix_input_stream_new (g_unix_fd_list_get (g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)), _fd_index, NULL), TRUE); 3534 tracker_steroids_batch_update (self, g_dbus_method_invocation_get_sender (invocation), input_stream, (GAsyncReadyCallback) _dbus_tracker_steroids_batch_update_ready, invocation); 3535 _g_object_unref0 (input_stream); 3536 } 3537 3538 3539 static void _dbus_tracker_steroids_batch_update_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) { 3540 GDBusMethodInvocation * invocation; 3541 GError* error = NULL; 3542 GDBusMessage* _reply_message; 3543 GVariant* _reply; 3544 GVariantBuilder _reply_builder; 3545 GUnixFDList *_fd_list; 3546 invocation = _user_data_; 3547 tracker_steroids_batch_update_finish ((TrackerSteroids*) source_object, _res_, &error); 3548 if (error) { 3549 g_dbus_method_invocation_return_gerror (invocation, error); 3550 return; 3551 } 3552 _reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation)); 3553 g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE); 3554 _fd_list = g_unix_fd_list_new (); 3555 _reply = g_variant_builder_end (&_reply_builder); 3556 g_dbus_message_set_body (_reply_message, _reply); 3557 g_dbus_message_set_unix_fd_list (_reply_message, _fd_list); 3558 g_object_unref (_fd_list); 3559 g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL); 3560 g_object_unref (invocation); 3561 g_object_unref (_reply_message); 3562 } 3563 3564 3565 static void _dbus_tracker_steroids_update_blank (TrackerSteroids* self, GVariant* parameters, GDBusMethodInvocation* invocation) { 3566 GVariantIter _arguments_iter; 3567 gint _fd_index = 0; 3568 GUnixInputStream* input_stream = NULL; 3569 g_variant_iter_init (&_arguments_iter, parameters); 3570 g_variant_iter_next (&_arguments_iter, "h", &_fd_index); 3571 input_stream = (GUnixInputStream *) g_unix_input_stream_new (g_unix_fd_list_get (g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)), _fd_index, NULL), TRUE); 3572 tracker_steroids_update_blank (self, g_dbus_method_invocation_get_sender (invocation), input_stream, (GAsyncReadyCallback) _dbus_tracker_steroids_update_blank_ready, invocation); 3573 _g_object_unref0 (input_stream); 3574 } 3575 3576 3577 static void _dbus_tracker_steroids_update_blank_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) { 3578 GDBusMethodInvocation * invocation; 3579 GError* error = NULL; 3580 GDBusMessage* _reply_message; 3581 GVariant* _reply; 3582 GVariantBuilder _reply_builder; 3583 GUnixFDList *_fd_list; 3584 GVariant* result; 3585 invocation = _user_data_; 3586 result = tracker_steroids_update_blank_finish ((TrackerSteroids*) source_object, _res_, &error); 3587 if (error) { 3588 g_dbus_method_invocation_return_gerror (invocation, error); 3589 return; 3590 } 3591 _reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation)); 3592 g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE); 3593 _fd_list = g_unix_fd_list_new (); 3594 g_variant_builder_add_value (&_reply_builder, result); 3595 _g_variant_unref0 (result); 3596 _reply = g_variant_builder_end (&_reply_builder); 3597 g_dbus_message_set_body (_reply_message, _reply); 3598 g_dbus_message_set_unix_fd_list (_reply_message, _fd_list); 3599 g_object_unref (_fd_list); 3600 g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL); 3601 g_object_unref (invocation); 3602 g_object_unref (_reply_message); 3603 } 3604 3605 3606 static void _dbus_tracker_steroids_batch_update_blank (TrackerSteroids* self, GVariant* parameters, GDBusMethodInvocation* invocation) { 3607 GVariantIter _arguments_iter; 3608 gint _fd_index = 0; 3609 GUnixInputStream* input_stream = NULL; 3610 g_variant_iter_init (&_arguments_iter, parameters); 3611 g_variant_iter_next (&_arguments_iter, "h", &_fd_index); 3612 input_stream = (GUnixInputStream *) g_unix_input_stream_new (g_unix_fd_list_get (g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)), _fd_index, NULL), TRUE); 3613 tracker_steroids_batch_update_blank (self, g_dbus_method_invocation_get_sender (invocation), input_stream, (GAsyncReadyCallback) _dbus_tracker_steroids_batch_update_blank_ready, invocation); 3614 _g_object_unref0 (input_stream); 3615 } 3616 3617 3618 static void _dbus_tracker_steroids_batch_update_blank_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) { 3619 GDBusMethodInvocation * invocation; 3620 GError* error = NULL; 3621 GDBusMessage* _reply_message; 3622 GVariant* _reply; 3623 GVariantBuilder _reply_builder; 3624 GUnixFDList *_fd_list; 3625 GVariant* result; 3626 invocation = _user_data_; 3627 result = tracker_steroids_batch_update_blank_finish ((TrackerSteroids*) source_object, _res_, &error); 3628 if (error) { 3629 g_dbus_method_invocation_return_gerror (invocation, error); 3630 return; 3631 } 3632 _reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation)); 3633 g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE); 3634 _fd_list = g_unix_fd_list_new (); 3635 g_variant_builder_add_value (&_reply_builder, result); 3636 _g_variant_unref0 (result); 3637 _reply = g_variant_builder_end (&_reply_builder); 3638 g_dbus_message_set_body (_reply_message, _reply); 3639 g_dbus_message_set_unix_fd_list (_reply_message, _fd_list); 3640 g_object_unref (_fd_list); 3641 g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL); 3642 g_object_unref (invocation); 3643 g_object_unref (_reply_message); 3644 } 3645 3646 3647 static void _dbus_tracker_steroids_update_array (TrackerSteroids* self, GVariant* parameters, GDBusMethodInvocation* invocation) { 3648 GVariantIter _arguments_iter; 3649 gint _fd_index = 0; 3650 GUnixInputStream* input_stream = NULL; 3651 g_variant_iter_init (&_arguments_iter, parameters); 3652 g_variant_iter_next (&_arguments_iter, "h", &_fd_index); 3653 input_stream = (GUnixInputStream *) g_unix_input_stream_new (g_unix_fd_list_get (g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)), _fd_index, NULL), TRUE); 3654 tracker_steroids_update_array (self, g_dbus_method_invocation_get_sender (invocation), input_stream, (GAsyncReadyCallback) _dbus_tracker_steroids_update_array_ready, invocation); 3655 _g_object_unref0 (input_stream); 3656 } 3657 3658 3659 static void _dbus_tracker_steroids_update_array_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) { 3660 GDBusMethodInvocation * invocation; 3661 GError* error = NULL; 3662 GDBusMessage* _reply_message; 3663 GVariant* _reply; 3664 GVariantBuilder _reply_builder; 3665 GUnixFDList *_fd_list; 3666 GVariant* result; 3667 invocation = _user_data_; 3668 result = tracker_steroids_update_array_finish ((TrackerSteroids*) source_object, _res_, &error); 3669 if (error) { 3670 g_dbus_method_invocation_return_gerror (invocation, error); 3671 return; 3672 } 3673 _reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation)); 3674 g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE); 3675 _fd_list = g_unix_fd_list_new (); 3676 g_variant_builder_add_value (&_reply_builder, result); 3677 _g_variant_unref0 (result); 3678 _reply = g_variant_builder_end (&_reply_builder); 3679 g_dbus_message_set_body (_reply_message, _reply); 3680 g_dbus_message_set_unix_fd_list (_reply_message, _fd_list); 3681 g_object_unref (_fd_list); 3682 g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL); 3683 g_object_unref (invocation); 3684 g_object_unref (_reply_message); 3685 } 3686 3687 3688 static void tracker_steroids_dbus_interface_method_call (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* method_name, GVariant* parameters, GDBusMethodInvocation* invocation, gpointer user_data) { 3689 gpointer* data; 3690 gpointer object; 3691 data = user_data; 3692 object = data[0]; 3693 if (strcmp (method_name, "Query") == 0) { 3694 _dbus_tracker_steroids_query (object, parameters, invocation); 3695 } else if (strcmp (method_name, "Update") == 0) { 3696 _dbus_tracker_steroids_update (object, parameters, invocation); 3697 } else if (strcmp (method_name, "BatchUpdate") == 0) { 3698 _dbus_tracker_steroids_batch_update (object, parameters, invocation); 3699 } else if (strcmp (method_name, "UpdateBlank") == 0) { 3700 _dbus_tracker_steroids_update_blank (object, parameters, invocation); 3701 } else if (strcmp (method_name, "BatchUpdateBlank") == 0) { 3702 _dbus_tracker_steroids_batch_update_blank (object, parameters, invocation); 3703 } else if (strcmp (method_name, "UpdateArray") == 0) { 3704 _dbus_tracker_steroids_update_array (object, parameters, invocation); 3705 } else { 3706 g_object_unref (invocation); 3707 } 3708 } 3709 3710 3711 static GVariant* tracker_steroids_dbus_interface_get_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GError** error, gpointer user_data) { 3712 gpointer* data; 3713 gpointer object;
variable 'object' set but not used
(emitted by gcc)
3714 data = user_data; 3715 object = data[0];
Value stored to 'object' is never read
(emitted by clang-analyzer)

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

3716 return NULL; 3717 } 3718 3719 3720 static gboolean tracker_steroids_dbus_interface_set_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GVariant* value, GError** error, gpointer user_data) { 3721 gpointer* data; 3722 gpointer object;
variable 'object' set but not used
(emitted by gcc)
3723 data = user_data; 3724 object = data[0];
Value stored to 'object' is never read
(emitted by clang-analyzer)

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

3725 return FALSE; 3726 } 3727 3728 3729 guint tracker_steroids_register_object (gpointer object, GDBusConnection* connection, const gchar* path, GError** error) { 3730 guint result; 3731 gpointer *data; 3732 data = g_new (gpointer, 3); 3733 data[0] = g_object_ref (object); 3734 data[1] = g_object_ref (connection); 3735 data[2] = g_strdup (path); 3736 result = g_dbus_connection_register_object (connection, path, (GDBusInterfaceInfo *) (&_tracker_steroids_dbus_interface_info), &_tracker_steroids_dbus_interface_vtable, data, _tracker_steroids_unregister_object, error); 3737 if (!result) { 3738 return 0; 3739 } 3740 return result; 3741 } 3742 3743 3744 static void _tracker_steroids_unregister_object (gpointer user_data) { 3745 gpointer* data; 3746 data = user_data; 3747 g_object_unref (data[0]); 3748 g_object_unref (data[1]); 3749 g_free (data[2]); 3750 g_free (data); 3751 } 3752 3753 3754 static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) { 3755 if ((array != NULL) && (destroy_func != NULL)) { 3756 int i; 3757 for (i = 0; i < array_length; i = i + 1) { 3758 if (((gpointer*) array)[i] != NULL) { 3759 destroy_func (((gpointer*) array)[i]); 3760 } 3761 } 3762 } 3763 } 3764 3765 3766 static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) { 3767 _vala_array_destroy (array, array_length, destroy_func); 3768 g_free (array); 3769 }