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

Location Tool Test ID Function Issue
tracker-bus.c:483:21 gcc tracker_bus_connection_real_query_async_co expected 'gchar *' but argument is of type 'guint8 *'
tracker-bus.c:967:25 gcc unused-but-set-variable __lambda3_ variable 'self' set but not used
tracker-bus.c:971:2 clang-analyzer Value stored to 'self' is never read
tracker-bus.c:1200:25 gcc unused-but-set-variable __lambda2_ variable 'self' set but not used
tracker-bus.c:1205:2 clang-analyzer Value stored to 'self' is never read
tracker-bus.c:1978:25 gcc unused-but-set-variable __lambda5_ variable 'self' set but not used
tracker-bus.c:1982:2 clang-analyzer Value stored to 'self' is never read
tracker-bus.c:2158:39 gcc unused-but-set-variable tracker_bus_connection_real_update_finish variable '_data_' set but not used
tracker-bus.c:2166:2 clang-analyzer Value stored to '_data_' is never read
tracker-bus.c:2201:25 gcc unused-but-set-variable __lambda4_ variable 'self' set but not used
tracker-bus.c:2206:2 clang-analyzer Value stored to 'self' is never read
tracker-bus.c:2813:25 gcc unused-but-set-variable __lambda6_ variable 'self' set but not used
tracker-bus.c:2818:2 clang-analyzer Value stored to 'self' is never read
tracker-bus.c:3586:25 gcc unused-but-set-variable __lambda8_ variable 'self' set but not used
tracker-bus.c:3590:2 clang-analyzer Value stored to 'self' is never read
tracker-bus.c:3827:25 gcc unused-but-set-variable __lambda7_ variable 'self' set but not used
tracker-bus.c:3832:2 clang-analyzer Value stored to 'self' is never read
tracker-bus.c:4528:37 gcc unused-but-set-variable tracker_bus_connection_real_load_finish variable '_data_' set but not used
tracker-bus.c:4536:2 clang-analyzer Value stored to '_data_' is never read
tracker-bus.c:4833:7 gcc unused-but-set-variable tracker_bus_connection_real_statistics variable '_tmp33__length1' set but not used
tracker-bus.c:4929:18 clang-analyzer Assigned value is garbage or undefined
tracker-bus.c:4945:2 clang-analyzer Value stored to '_types_size_' is never read
tracker-bus.c:4953:2 clang-analyzer Value stored to '_var_names_size_' is never read
tracker-bus.c:4957:2 clang-analyzer Value stored to '_tmp20__length1' is never read
tracker-bus.c:4965:2 clang-analyzer Value stored to '_tmp22_' is never read
tracker-bus.c:4969:2 clang-analyzer Value stored to '_tmp23__length1' is never read
tracker-bus.c:4977:2 clang-analyzer Value stored to '_tmp25_' is never read
tracker-bus.c:4981:2 clang-analyzer Value stored to '_tmp26__length1' is never read
tracker-bus.c:4985:2 clang-analyzer Value stored to '_tmp27_' is never read
tracker-bus.c:4989:2 clang-analyzer Value stored to '_tmp28__length1' is never read
tracker-bus.c:4993:2 clang-analyzer Value stored to '_tmp29_' is never read
tracker-bus.c:5003:2 clang-analyzer Value stored to '_tmp31_' is never read
tracker-bus.c:5007:2 clang-analyzer Value stored to '_tmp31__length2' is never read
tracker-bus.c:5011:2 clang-analyzer Value stored to '_tmp33_' is never read
tracker-bus.c:5013:2 clang-analyzer Value stored to '_tmp33__length1' is never read
   1 /* tracker-bus.c generated by valac 0.18.1, the Vala compiler
   2  * generated from tracker-bus.vala, do not modify */
   3 
   4 /*
   5  * Copyright (C) 2010, Nokia <ivan.frade@nokia.com>
   6  *
   7  * This library is free software; you can redistribute it and/or
   8  * modify it under the terms of the GNU Lesser General Public
   9  * License as published by the Free Software Foundation; either
  10  * version 2.1 of the License, or (at your option) any later version.
  11  *
  12  * This library is distributed in the hope that it will be useful,
  13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15  * Lesser General Public License for more details.
  16  *
  17  * You should have received a copy of the GNU Lesser General Public
  18  * License along with this library; if not, write to the
  19  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  20  * Boston, MA  02110-1301, USA.
  21  */
  22 
  23 #include <glib.h>
  24 #include <glib-object.h>
  25 #include "libtracker-sparql/tracker-sparql.h"
  26 #include <gio/gio.h>
  27 #include <gio/gunixinputstream.h>
  28 #include <gio/gunixoutputstream.h>
  29 #include <unistd.h>
  30 #include <stdlib.h>
  31 #include <string.h>
  32 #include <gio/gunixfdlist.h>
  33 
  34 
  35 #define TRACKER_BUS_TYPE_CONNECTION (tracker_bus_connection_get_type ())
  36 #define TRACKER_BUS_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_BUS_TYPE_CONNECTION, TrackerBusConnection))
  37 #define TRACKER_BUS_CONNECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_BUS_TYPE_CONNECTION, TrackerBusConnectionClass))
  38 #define TRACKER_BUS_IS_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_BUS_TYPE_CONNECTION))
  39 #define TRACKER_BUS_IS_CONNECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_BUS_TYPE_CONNECTION))
  40 #define TRACKER_BUS_CONNECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_BUS_TYPE_CONNECTION, TrackerBusConnectionClass))
  41 
  42 typedef struct _TrackerBusConnection TrackerBusConnection;
  43 typedef struct _TrackerBusConnectionClass TrackerBusConnectionClass;
  44 typedef struct _TrackerBusConnectionPrivate TrackerBusConnectionPrivate;
  45 #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
  46 #define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
  47 #define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))
  48 typedef struct _Block1Data Block1Data;
  49 #define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))
  50 #define _g_main_context_unref0(var) ((var == NULL) ? NULL : (var = (g_main_context_unref (var), NULL)))
  51 #define _g_free0(var) (var = (g_free (var), NULL))
  52 typedef struct _Block2Data Block2Data;
  53 
  54 #define TRACKER_BUS_TYPE_FD_CURSOR (tracker_bus_fd_cursor_get_type ())
  55 #define TRACKER_BUS_FD_CURSOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_BUS_TYPE_FD_CURSOR, TrackerBusFDCursor))
  56 #define TRACKER_BUS_FD_CURSOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_BUS_TYPE_FD_CURSOR, TrackerBusFDCursorClass))
  57 #define TRACKER_BUS_IS_FD_CURSOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_BUS_TYPE_FD_CURSOR))
  58 #define TRACKER_BUS_IS_FD_CURSOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_BUS_TYPE_FD_CURSOR))
  59 #define TRACKER_BUS_FD_CURSOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_BUS_TYPE_FD_CURSOR, TrackerBusFDCursorClass))
  60 
  61 typedef struct _TrackerBusFDCursor TrackerBusFDCursor;
  62 typedef struct _TrackerBusFDCursorClass TrackerBusFDCursorClass;
  63 typedef struct _TrackerBusConnectionQueryAsyncData TrackerBusConnectionQueryAsyncData;
  64 typedef struct _Block3Data Block3Data;
  65 typedef struct _Block4Data Block4Data;
  66 typedef struct _TrackerBusConnectionUpdateAsyncData TrackerBusConnectionUpdateAsyncData;
  67 #define _g_ptr_array_unref0(var) ((var == NULL) ? NULL : (var = (g_ptr_array_unref (var), NULL)))
  68 typedef struct _Block5Data Block5Data;
  69 #define _g_variant_iter_free0(var) ((var == NULL) ? NULL : (var = (g_variant_iter_free (var), NULL)))
  70 typedef struct _TrackerBusConnectionUpdateArrayAsyncData TrackerBusConnectionUpdateArrayAsyncData;
  71 typedef struct _Block6Data Block6Data;
  72 typedef struct _Block7Data Block7Data;
  73 typedef struct _TrackerBusConnectionUpdateBlankAsyncData TrackerBusConnectionUpdateBlankAsyncData;
  74 typedef struct _TrackerBusConnectionLoadAsyncData TrackerBusConnectionLoadAsyncData;
  75 
  76 #define TRACKER_BUS_TYPE_ARRAY_CURSOR (tracker_bus_array_cursor_get_type ())
  77 #define TRACKER_BUS_ARRAY_CURSOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_BUS_TYPE_ARRAY_CURSOR, TrackerBusArrayCursor))
  78 #define TRACKER_BUS_ARRAY_CURSOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_BUS_TYPE_ARRAY_CURSOR, TrackerBusArrayCursorClass))
  79 #define TRACKER_BUS_IS_ARRAY_CURSOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_BUS_TYPE_ARRAY_CURSOR))
  80 #define TRACKER_BUS_IS_ARRAY_CURSOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_BUS_TYPE_ARRAY_CURSOR))
  81 #define TRACKER_BUS_ARRAY_CURSOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_BUS_TYPE_ARRAY_CURSOR, TrackerBusArrayCursorClass))
  82 
  83 typedef struct _TrackerBusArrayCursor TrackerBusArrayCursor;
  84 typedef struct _TrackerBusArrayCursorClass TrackerBusArrayCursorClass;
  85 typedef struct _TrackerBusConnectionStatisticsAsyncData TrackerBusConnectionStatisticsAsyncData;
  86 
  87 struct _TrackerBusConnection {
  88 	TrackerSparqlConnection parent_instance;
  89 	TrackerBusConnectionPrivate * priv;
  90 };
  91 
  92 struct _TrackerBusConnectionClass {
  93 	TrackerSparqlConnectionClass parent_class;
  94 };
  95 
  96 struct _TrackerBusConnectionPrivate {
  97 	GDBusConnection* bus;
  98 };
  99 
 100 struct _Block1Data {
 101 	int _ref_count_;
 102 	TrackerBusConnection * self;
 103 	GMainLoop* loop;
 104 	GAsyncResult* async_res;
 105 };
 106 
 107 struct _Block2Data {
 108 	int _ref_count_;
 109 	TrackerBusConnection * self;
 110 	GAsyncResult* dbus_res;
 111 	gboolean received_result;
 112 	gpointer _async_data_;
 113 };
 114 
 115 struct _TrackerBusConnectionQueryAsyncData {
 116 	int _state_;
 117 	GObject* _source_object_;
 118 	GAsyncResult* _res_;
 119 	GSimpleAsyncResult* _async_result;
 120 	TrackerBusConnection* self;
 121 	gchar* sparql;
 122 	GCancellable* cancellable;
 123 	TrackerSparqlCursor* result;
 124 	Block2Data* _data2_;
 125 	GUnixInputStream* input;
 126 	GUnixOutputStream* output;
 127 	GUnixInputStream* _tmp0_;
 128 	GUnixOutputStream* _tmp1_;
 129 	const gchar* _tmp2_;
 130 	GUnixOutputStream* _tmp3_;
 131 	GCancellable* _tmp4_;
 132 	GMemoryOutputStream* _tmp5_;
 133 	GMemoryOutputStream* mem_stream;
 134 	GMemoryOutputStream* _tmp6_;
 135 	GUnixInputStream* _tmp7_;
 136 	GCancellable* _tmp8_;
 137 	GAsyncResult* _tmp9_;
 138 	GDBusConnection* _tmp10_;
 139 	GAsyncResult* _tmp11_;
 140 	GDBusMessage* _tmp12_;
 141 	GDBusMessage* reply;
 142 	GDBusMessage* _tmp13_;
 143 	GDBusMessage* _tmp14_;
 144 	GVariant* _tmp15_;
 145 	GVariant* _tmp16_;
 146 	GVariant* _tmp17_;
 147 	gchar** _tmp18_;
 148 	gint _tmp18__length1;
 149 	gchar** _tmp22_;
 150 	gint _tmp22__length1;
 151 	gchar** variable_names;
 152 	gint variable_names_length1;
 153 	gint _variable_names_size_;
 154 	GMemoryOutputStream* _tmp23_;
 155 	GMemoryOutputStream* _tmp24_;
 156 	guint8* _tmp25_;
 157 	GMemoryOutputStream* _tmp26_;
 158 	gulong _tmp27_;
 159 	gulong _tmp28_;
 160 	gchar** _tmp29_;
 161 	gint _tmp29__length1;
 162 	TrackerBusFDCursor* _tmp30_;
 163 	GError * _inner_error_;
 164 };
 165 
 166 struct _Block3Data {
 167 	int _ref_count_;
 168 	TrackerBusConnection * self;
 169 	GMainLoop* loop;
 170 	GAsyncResult* async_res;
 171 };
 172 
 173 struct _Block4Data {
 174 	int _ref_count_;
 175 	TrackerBusConnection * self;
 176 	GAsyncResult* dbus_res;
 177 	gboolean sent_update;
 178 	gpointer _async_data_;
 179 };
 180 
 181 struct _TrackerBusConnectionUpdateAsyncData {
 182 	int _state_;
 183 	GObject* _source_object_;
 184 	GAsyncResult* _res_;
 185 	GSimpleAsyncResult* _async_result;
 186 	TrackerBusConnection* self;
 187 	gchar* sparql;
 188 	gint priority;
 189 	GCancellable* cancellable;
 190 	Block4Data* _data4_;
 191 	GUnixInputStream* input;
 192 	GUnixOutputStream* output;
 193 	GUnixInputStream* _tmp0_;
 194 	GUnixOutputStream* _tmp1_;
 195 	const gchar* _tmp2_;
 196 	gint _tmp3_;
 197 	const gchar* _tmp4_;
 198 	GUnixInputStream* _tmp5_;
 199 	GCancellable* _tmp6_;
 200 	GUnixOutputStream* _tmp7_;
 201 	GDataOutputStream* _tmp8_;
 202 	GDataOutputStream* data_stream;
 203 	GDataOutputStream* _tmp9_;
 204 	GDataOutputStream* _tmp10_;
 205 	const gchar* _tmp11_;
 206 	gint _tmp12_;
 207 	gint _tmp13_;
 208 	GDataOutputStream* _tmp14_;
 209 	const gchar* _tmp15_;
 210 	GAsyncResult* _tmp16_;
 211 	GDBusConnection* _tmp17_;
 212 	GAsyncResult* _tmp18_;
 213 	GDBusMessage* _tmp19_;
 214 	GDBusMessage* reply;
 215 	GDBusMessage* _tmp20_;
 216 	GError * _inner_error_;
 217 };
 218 
 219 struct _Block5Data {
 220 	int _ref_count_;
 221 	TrackerBusConnection * self;
 222 	GAsyncResult* dbus_res;
 223 	gboolean sent_update;
 224 	gpointer _async_data_;
 225 };
 226 
 227 struct _TrackerBusConnectionUpdateArrayAsyncData {
 228 	int _state_;
 229 	GObject* _source_object_;
 230 	GAsyncResult* _res_;
 231 	GSimpleAsyncResult* _async_result;
 232 	TrackerBusConnection* self;
 233 	gchar** sparql;
 234 	gint sparql_length1;
 235 	gint priority;
 236 	GCancellable* cancellable;
 237 	GPtrArray* result;
 238 	Block5Data* _data5_;
 239 	GUnixInputStream* input;
 240 	GUnixOutputStream* output;
 241 	GUnixInputStream* _tmp0_;
 242 	GUnixOutputStream* _tmp1_;
 243 	GUnixInputStream* _tmp2_;
 244 	GCancellable* _tmp3_;
 245 	GUnixOutputStream* _tmp4_;
 246 	GDataOutputStream* _tmp5_;
 247 	GDataOutputStream* data_stream;
 248 	GDataOutputStream* _tmp6_;
 249 	GDataOutputStream* _tmp7_;
 250 	gchar** _tmp8_;
 251 	gint _tmp8__length1;
 252 	gint i;
 253 	gboolean _tmp9_;
 254 	gboolean _tmp10_;
 255 	gint _tmp11_;
 256 	gint _tmp12_;
 257 	gchar** _tmp13_;
 258 	gint _tmp13__length1;
 259 	GDataOutputStream* _tmp14_;
 260 	gchar** _tmp15_;
 261 	gint _tmp15__length1;
 262 	gint _tmp16_;
 263 	const gchar* _tmp17_;
 264 	gint _tmp18_;
 265 	gint _tmp19_;
 266 	GDataOutputStream* _tmp20_;
 267 	gchar** _tmp21_;
 268 	gint _tmp21__length1;
 269 	gint _tmp22_;
 270 	const gchar* _tmp23_;
 271 	GAsyncResult* _tmp24_;
 272 	GDBusConnection* _tmp25_;
 273 	GAsyncResult* _tmp26_;
 274 	GDBusMessage* _tmp27_;
 275 	GDBusMessage* reply;
 276 	GDBusMessage* _tmp28_;
 277 	GPtrArray* _tmp29_;
 278 	GPtrArray* _result_;
 279 	GVariant* resultv;
 280 	GDBusMessage* _tmp30_;
 281 	GVariant* _tmp31_;
 282 	GVariant* _tmp32_;
 283 	GVariant* _tmp33_;
 284 	GVariantIter* _tmp34_;
 285 	GVariantIter* iter;
 286 	gchar* code;
 287 	gchar* message;
 288 	GVariantIter* _tmp35_;
 289 	gboolean _tmp36_;
 290 	GVariantIter* _tmp37_;
 291 	gboolean _tmp38_;
 292 	gboolean _tmp39_;
 293 	const gchar* _tmp40_;
 294 	const gchar* _tmp41_;
 295 	gboolean _tmp42_;
 296 	GPtrArray* _tmp43_;
 297 	const gchar* _tmp44_;
 298 	GError* _tmp45_;
 299 	GPtrArray* _tmp46_;
 300 	GError * _inner_error_;
 301 };
 302 
 303 struct _Block6Data {
 304 	int _ref_count_;
 305 	TrackerBusConnection * self;
 306 	GMainLoop* loop;
 307 	GAsyncResult* async_res;
 308 };
 309 
 310 struct _Block7Data {
 311 	int _ref_count_;
 312 	TrackerBusConnection * self;
 313 	GAsyncResult* dbus_res;
 314 	gboolean sent_update;
 315 	gpointer _async_data_;
 316 };
 317 
 318 struct _TrackerBusConnectionUpdateBlankAsyncData {
 319 	int _state_;
 320 	GObject* _source_object_;
 321 	GAsyncResult* _res_;
 322 	GSimpleAsyncResult* _async_result;
 323 	TrackerBusConnection* self;
 324 	gchar* sparql;
 325 	gint priority;
 326 	GCancellable* cancellable;
 327 	GVariant* result;
 328 	Block7Data* _data7_;
 329 	GUnixInputStream* input;
 330 	GUnixOutputStream* output;
 331 	GUnixInputStream* _tmp0_;
 332 	GUnixOutputStream* _tmp1_;
 333 	GUnixInputStream* _tmp2_;
 334 	GCancellable* _tmp3_;
 335 	GUnixOutputStream* _tmp4_;
 336 	GDataOutputStream* _tmp5_;
 337 	GDataOutputStream* data_stream;
 338 	GDataOutputStream* _tmp6_;
 339 	GDataOutputStream* _tmp7_;
 340 	const gchar* _tmp8_;
 341 	gint _tmp9_;
 342 	gint _tmp10_;
 343 	GDataOutputStream* _tmp11_;
 344 	const gchar* _tmp12_;
 345 	GAsyncResult* _tmp13_;
 346 	GDBusConnection* _tmp14_;
 347 	GAsyncResult* _tmp15_;
 348 	GDBusMessage* _tmp16_;
 349 	GDBusMessage* reply;
 350 	GDBusMessage* _tmp17_;
 351 	GDBusMessage* _tmp18_;
 352 	GVariant* _tmp19_;
 353 	GVariant* _tmp20_;
 354 	GError * _inner_error_;
 355 };
 356 
 357 struct _TrackerBusConnectionLoadAsyncData {
 358 	int _state_;
 359 	GObject* _source_object_;
 360 	GAsyncResult* _res_;
 361 	GSimpleAsyncResult* _async_result;
 362 	TrackerBusConnection* self;
 363 	GFile* file;
 364 	GCancellable* cancellable;
 365 	GDBusMessage* _tmp0_;
 366 	GDBusMessage* message;
 367 	GDBusMessage* _tmp1_;
 368 	GFile* _tmp2_;
 369 	gchar* _tmp3_;
 370 	gchar* _tmp4_;
 371 	GVariant* _tmp5_;
 372 	GVariant* _tmp6_;
 373 	GDBusConnection* _tmp7_;
 374 	GDBusMessage* _tmp8_;
 375 	gint _tmp9_;
 376 	GCancellable* _tmp10_;
 377 	GDBusMessage* _tmp11_;
 378 	GDBusMessage* reply;
 379 	GDBusMessage* _tmp12_;
 380 	GError * _inner_error_;
 381 };
 382 
 383 struct _TrackerBusConnectionStatisticsAsyncData {
 384 	int _state_;
 385 	GObject* _source_object_;
 386 	GAsyncResult* _res_;
 387 	GSimpleAsyncResult* _async_result;
 388 	TrackerBusConnection* self;
 389 	GCancellable* cancellable;
 390 	TrackerSparqlCursor* result;
 391 	GDBusMessage* _tmp0_;
 392 	GDBusMessage* message;
 393 	GDBusConnection* _tmp1_;
 394 	GDBusMessage* _tmp2_;
 395 	gint _tmp3_;
 396 	GCancellable* _tmp4_;
 397 	GDBusMessage* _tmp5_;
 398 	GDBusMessage* reply;
 399 	GDBusMessage* _tmp6_;
 400 	GDBusMessage* _tmp7_;
 401 	GVariant* _tmp8_;
 402 	GVariant* _tmp9_;
 403 	GVariant* _tmp10_;
 404 	gchar** _tmp11_;
 405 	gint _tmp11__length1;
 406 	gint _tmp11__length2;
 407 	gchar** _tmp17_;
 408 	gint _tmp17__length1;
 409 	gint _tmp17__length2;
 410 	gchar** results;
 411 	gint results_length1;
 412 	gint results_length2;
 413 	TrackerSparqlValueType* _tmp18_;
 414 	TrackerSparqlValueType* types;
 415 	gint types_length1;
 416 	gint _types_size_;
 417 	gchar** _tmp19_;
 418 	gchar** var_names;
 419 	gint var_names_length1;
 420 	gint _var_names_size_;
 421 	gchar** _tmp20_;
 422 	gint _tmp20__length1;
 423 	gchar* _tmp21_;
 424 	gchar* _tmp22_;
 425 	gchar** _tmp23_;
 426 	gint _tmp23__length1;
 427 	gchar* _tmp24_;
 428 	gchar* _tmp25_;
 429 	TrackerSparqlValueType* _tmp26_;
 430 	gint _tmp26__length1;
 431 	TrackerSparqlValueType _tmp27_;
 432 	TrackerSparqlValueType* _tmp28_;
 433 	gint _tmp28__length1;
 434 	TrackerSparqlValueType _tmp29_;
 435 	gchar** _tmp30_;
 436 	gint _tmp30__length1;
 437 	gint _tmp30__length2;
 438 	gchar** _tmp31_;
 439 	gint _tmp31__length1;
 440 	gint _tmp31__length2;
 441 	gint _tmp32_;
 442 	gchar** _tmp33_;
 443 	gint _tmp33__length1;
 444 	gint _tmp33__length2;
 445 	gint _tmp34_;
 446 	gchar** _tmp35_;
 447 	gint _tmp35__length1;
 448 	TrackerSparqlValueType* _tmp36_;
 449 	gint _tmp36__length1;
 450 	TrackerBusArrayCursor* _tmp37_;
 451 	GError * _inner_error_;
 452 };
 453 
 454 
 455 static gpointer tracker_bus_connection_parent_class = NULL;
 456 
 457 GType tracker_bus_connection_get_type (void) G_GNUC_CONST;
 458 #define TRACKER_BUS_CONNECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TRACKER_BUS_TYPE_CONNECTION, TrackerBusConnectionPrivate))
 459 enum  {
 460 	TRACKER_BUS_CONNECTION_DUMMY_PROPERTY
 461 };
 462 TrackerBusConnection* tracker_bus_connection_new (GError** error);
 463 TrackerBusConnection* tracker_bus_connection_construct (GType object_type, GError** error);
 464 static void tracker_bus_connection_pipe (TrackerBusConnection* self, GUnixInputStream** input, GUnixOutputStream** output, GError** error);
 465 static void tracker_bus_connection_handle_error_reply (TrackerBusConnection* self, GDBusMessage* message, GError** error);
 466 static void tracker_bus_connection_send_query (TrackerBusConnection* self, const gchar* sparql, GUnixOutputStream* output, GCancellable* cancellable, GAsyncReadyCallback callback, void* callback_target, GError** error);
 467 static TrackerSparqlCursor* tracker_bus_connection_real_query (TrackerSparqlConnection* base, const gchar* sparql, GCancellable* cancellable, GError** error);
 468 static Block1Data* block1_data_ref (Block1Data* _data1_);
 469 static void block1_data_unref (void * _userdata_);
 470 static void __lambda3_ (Block1Data* _data1_, GObject* o, GAsyncResult* res);
 471 static void ___lambda3__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
 472 static void tracker_bus_connection_real_query_async_data_free (gpointer _data);
 473 static void tracker_bus_connection_real_query_async (TrackerSparqlConnection* base, const gchar* sparql, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
 474 static gboolean tracker_bus_connection_real_query_async_co (TrackerBusConnectionQueryAsyncData* _data_);
 475 static Block2Data* block2_data_ref (Block2Data* _data2_);
 476 static void block2_data_unref (void * _userdata_);
 477 static void __lambda2_ (Block2Data* _data2_, GObject* o, GAsyncResult* res);
 478 static void ___lambda2__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
 479 static void* _g_realloc_grealloc_func (void* data, gsize size);
 480 static void _g_free_gdestroy_notify (void* data);
 481 static void tracker_bus_connection_query_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
 482 static gchar** _variant_get1 (GVariant* value, int* result_length1);
 483 TrackerBusFDCursor* tracker_bus_fd_cursor_new (gchar* buffer, gulong buffer_size, gchar** variable_names, int variable_names_length1);
expected 'gchar *' but argument is of type 'guint8 *'
(emitted by gcc)
484 TrackerBusFDCursor* tracker_bus_fd_cursor_construct (GType object_type, gchar* buffer, gulong buffer_size, gchar** variable_names, int variable_names_length1); 485 GType tracker_bus_fd_cursor_get_type (void) G_GNUC_CONST; 486 static void tracker_bus_connection_send_update (TrackerBusConnection* self, const gchar* method, GUnixInputStream* input, GCancellable* cancellable, GAsyncReadyCallback callback, void* callback_target, GError** error); 487 static void tracker_bus_connection_real_update (TrackerSparqlConnection* base, const gchar* sparql, gint priority, GCancellable* cancellable, GError** error); 488 static Block3Data* block3_data_ref (Block3Data* _data3_); 489 static void block3_data_unref (void * _userdata_); 490 static void __lambda5_ (Block3Data* _data3_, GObject* o, GAsyncResult* res); 491 static void ___lambda5__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self); 492 static void tracker_bus_connection_real_update_async_data_free (gpointer _data); 493 static void tracker_bus_connection_real_update_async (TrackerSparqlConnection* base, const gchar* sparql, gint priority, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_); 494 static gboolean tracker_bus_connection_real_update_async_co (TrackerBusConnectionUpdateAsyncData* _data_); 495 static Block4Data* block4_data_ref (Block4Data* _data4_); 496 static void block4_data_unref (void * _userdata_); 497 static void __lambda4_ (Block4Data* _data4_, GObject* o, GAsyncResult* res); 498 static void ___lambda4__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self); 499 static void tracker_bus_connection_real_update_array_async_data_free (gpointer _data); 500 static void tracker_bus_connection_real_update_array_async (TrackerSparqlConnection* base, gchar** sparql, int sparql_length1, gint priority, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_); 501 static gboolean tracker_bus_connection_real_update_array_async_co (TrackerBusConnectionUpdateArrayAsyncData* _data_); 502 static Block5Data* block5_data_ref (Block5Data* _data5_); 503 static void block5_data_unref (void * _userdata_); 504 static void __lambda6_ (Block5Data* _data5_, GObject* o, GAsyncResult* res); 505 static void ___lambda6__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self); 506 static void _g_error_free0_ (gpointer var); 507 static GVariant* tracker_bus_connection_real_update_blank (TrackerSparqlConnection* base, const gchar* sparql, gint priority, GCancellable* cancellable, GError** error); 508 static Block6Data* block6_data_ref (Block6Data* _data6_); 509 static void block6_data_unref (void * _userdata_); 510 static void __lambda8_ (Block6Data* _data6_, GObject* o, GAsyncResult* res); 511 static void ___lambda8__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self); 512 static void tracker_bus_connection_real_update_blank_async_data_free (gpointer _data); 513 static void tracker_bus_connection_real_update_blank_async (TrackerSparqlConnection* base, const gchar* sparql, gint priority, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_); 514 static gboolean tracker_bus_connection_real_update_blank_async_co (TrackerBusConnectionUpdateBlankAsyncData* _data_); 515 static Block7Data* block7_data_ref (Block7Data* _data7_); 516 static void block7_data_unref (void * _userdata_); 517 static void __lambda7_ (Block7Data* _data7_, GObject* o, GAsyncResult* res); 518 static void ___lambda7__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self); 519 static void tracker_bus_connection_real_load (TrackerSparqlConnection* base, GFile* file, GCancellable* cancellable, GError** error); 520 static void tracker_bus_connection_real_load_async_data_free (gpointer _data); 521 static void tracker_bus_connection_real_load_async (TrackerSparqlConnection* base, GFile* file, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_); 522 static gboolean tracker_bus_connection_real_load_async_co (TrackerBusConnectionLoadAsyncData* _data_); 523 static void tracker_bus_connection_load_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_); 524 static TrackerSparqlCursor* tracker_bus_connection_real_statistics (TrackerSparqlConnection* base, GCancellable* cancellable, GError** error); 525 static gchar** _variant_get2 (GVariant* value, int* result_length1, int* result_length2); 526 TrackerBusArrayCursor* tracker_bus_array_cursor_new (gchar** results, int results_length1, int results_length2, gint rows, gint cols, gchar** var_names, int var_names_length1, TrackerSparqlValueType* types, int types_length1); 527 TrackerBusArrayCursor* tracker_bus_array_cursor_construct (GType object_type, gchar** results, int results_length1, int results_length2, gint rows, gint cols, gchar** var_names, int var_names_length1, TrackerSparqlValueType* types, int types_length1); 528 GType tracker_bus_array_cursor_get_type (void) G_GNUC_CONST; 529 static void tracker_bus_connection_real_statistics_async_data_free (gpointer _data); 530 static void tracker_bus_connection_real_statistics_async (TrackerSparqlConnection* base, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_); 531 static gboolean tracker_bus_connection_real_statistics_async_co (TrackerBusConnectionStatisticsAsyncData* _data_); 532 static void tracker_bus_connection_statistics_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_); 533 static gchar** _variant_get3 (GVariant* value, int* result_length1, int* result_length2); 534 static void tracker_bus_connection_finalize (GObject* obj); 535 static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func); 536 static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func); 537 538 539 TrackerBusConnection* tracker_bus_connection_construct (GType object_type, GError** error) { 540 TrackerBusConnection * self = NULL; 541 GDBusConnection* _tmp0_ = NULL; 542 GDBusConnection* _tmp1_; 543 GError* _tmp2_; 544 GError* _tmp3_; 545 GError * _inner_error_ = NULL; 546 #line 23 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 547 self = (TrackerBusConnection*) tracker_sparql_connection_construct (object_type); 548 #line 24 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 549 _tmp0_ = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &_inner_error_); 550 #line 24 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 551 _tmp1_ = _tmp0_; 552 #line 24 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 553 if (_inner_error_ != NULL) { 554 #line 24 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 555 if (((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == G_IO_ERROR)) || (_inner_error_->domain == G_DBUS_ERROR)) { 556 #line 24 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 557 g_propagate_error (error, _inner_error_); 558 #line 24 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 559 _g_object_unref0 (self); 560 #line 24 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 561 return NULL; 562 #line 563 "tracker-bus.c" 563 } else { 564 #line 24 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 565 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 566 #line 24 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 567 g_clear_error (&_inner_error_); 568 #line 24 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 569 return NULL; 570 #line 571 "tracker-bus.c" 571 } 572 } 573 #line 24 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 574 _g_object_unref0 (self->priv->bus); 575 #line 24 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 576 self->priv->bus = _tmp1_; 577 #line 27 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 578 _tmp2_ = g_error_new_literal (TRACKER_SPARQL_ERROR, TRACKER_SPARQL_ERROR_INTERNAL, ""); 579 #line 27 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 580 _tmp3_ = _tmp2_; 581 #line 27 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 582 _g_error_free0 (_tmp3_); 583 #line 23 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 584 return self; 585 #line 586 "tracker-bus.c" 586 } 587 588 589 TrackerBusConnection* tracker_bus_connection_new (GError** error) { 590 #line 23 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 591 return tracker_bus_connection_construct (TRACKER_BUS_TYPE_CONNECTION, error); 592 #line 593 "tracker-bus.c" 593 } 594 595 596 static void tracker_bus_connection_pipe (TrackerBusConnection* self, GUnixInputStream** input, GUnixOutputStream** output, GError** error) { 597 GUnixInputStream* _vala_input = NULL; 598 GUnixOutputStream* _vala_output = NULL; 599 gint pipefd[2] = {0}; 600 gint _tmp0_ = 0; 601 gint _tmp2_; 602 GUnixInputStream* _tmp3_; 603 gint _tmp4_; 604 GUnixOutputStream* _tmp5_; 605 GError * _inner_error_ = NULL; 606 #line 30 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 607 g_return_if_fail (self != NULL); 608 #line 32 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 609 _tmp0_ = pipe (pipefd); 610 #line 32 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 611 if (_tmp0_ < 0) { 612 #line 613 "tracker-bus.c" 613 GError* _tmp1_; 614 #line 33 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 615 _tmp1_ = g_error_new_literal (G_IO_ERROR, G_IO_ERROR_FAILED, "Pipe creation failed"); 616 #line 33 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 617 _inner_error_ = _tmp1_; 618 #line 33 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 619 if (_inner_error_->domain == G_IO_ERROR) { 620 #line 33 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 621 g_propagate_error (error, _inner_error_); 622 #line 33 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 623 return; 624 #line 625 "tracker-bus.c" 625 } else { 626 #line 33 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 627 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 628 #line 33 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 629 g_clear_error (&_inner_error_); 630 #line 33 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 631 return; 632 #line 633 "tracker-bus.c" 633 } 634 } 635 #line 35 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 636 _tmp2_ = pipefd[0]; 637 #line 35 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 638 _tmp3_ = (GUnixInputStream*) g_unix_input_stream_new (_tmp2_, TRUE); 639 #line 35 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 640 _g_object_unref0 (_vala_input); 641 #line 35 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 642 _vala_input = _tmp3_; 643 #line 36 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 644 _tmp4_ = pipefd[1]; 645 #line 36 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 646 _tmp5_ = (GUnixOutputStream*) g_unix_output_stream_new (_tmp4_, TRUE); 647 #line 36 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 648 _g_object_unref0 (_vala_output); 649 #line 36 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 650 _vala_output = _tmp5_; 651 #line 30 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 652 if (input) { 653 #line 30 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 654 *input = _vala_input; 655 #line 656 "tracker-bus.c" 656 } else { 657 #line 30 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 658 _g_object_unref0 (_vala_input); 659 #line 660 "tracker-bus.c" 660 } 661 #line 30 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 662 if (output) { 663 #line 30 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 664 *output = _vala_output; 665 #line 666 "tracker-bus.c" 666 } else { 667 #line 30 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 668 _g_object_unref0 (_vala_output); 669 #line 670 "tracker-bus.c" 670 } 671 } 672 673 674 static gpointer _g_error_copy0 (gpointer self) { 675 #line 43 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 676 return self ? g_error_copy (self) : NULL; 677 #line 678 "tracker-bus.c" 678 } 679 680 681 static void tracker_bus_connection_handle_error_reply (TrackerBusConnection* self, GDBusMessage* message, GError** error) { 682 GError * _inner_error_ = NULL; 683 #line 39 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 684 g_return_if_fail (self != NULL); 685 #line 39 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 686 g_return_if_fail (message != NULL); 687 #line 688 "tracker-bus.c" 688 { 689 GDBusMessage* _tmp0_; 690 #line 41 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 691 _tmp0_ = message; 692 #line 41 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 693 g_dbus_message_to_gerror (_tmp0_, &_inner_error_); 694 #line 41 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 695 if (_inner_error_ != NULL) { 696 #line 41 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 697 if (_inner_error_->domain == G_IO_ERROR) { 698 #line 699 "tracker-bus.c" 699 goto __catch0_g_io_error; 700 } 701 #line 41 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 702 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 703 #line 704 "tracker-bus.c" 704 goto __catch0_tracker_sparql_error; 705 } 706 #line 41 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 707 if (_inner_error_->domain == G_DBUS_ERROR) { 708 #line 709 "tracker-bus.c" 709 goto __catch0_g_dbus_error; 710 } 711 goto __catch0_g_error; 712 } 713 } 714 goto __finally0; 715 __catch0_g_io_error: 716 { 717 GError* e_io = NULL; 718 GError* _tmp1_; 719 GError* _tmp2_; 720 #line 40 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 721 e_io = _inner_error_; 722 #line 40 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 723 _inner_error_ = NULL; 724 #line 43 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 725 _tmp1_ = e_io; 726 #line 43 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 727 _tmp2_ = _g_error_copy0 (_tmp1_); 728 #line 43 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 729 _inner_error_ = _tmp2_; 730 #line 43 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 731 _g_error_free0 (e_io); 732 #line 733 "tracker-bus.c" 733 goto __finally0; 734 } 735 goto __finally0; 736 __catch0_tracker_sparql_error: 737 { 738 GError* e_sparql = NULL; 739 GError* _tmp3_; 740 GError* _tmp4_; 741 #line 40 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 742 e_sparql = _inner_error_; 743 #line 40 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 744 _inner_error_ = NULL; 745 #line 45 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 746 _tmp3_ = e_sparql; 747 #line 45 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 748 _tmp4_ = _g_error_copy0 (_tmp3_); 749 #line 45 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 750 _inner_error_ = _tmp4_; 751 #line 45 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 752 _g_error_free0 (e_sparql); 753 #line 754 "tracker-bus.c" 754 goto __finally0; 755 } 756 goto __finally0; 757 __catch0_g_dbus_error: 758 { 759 GError* e_dbus = NULL; 760 GError* _tmp5_; 761 GError* _tmp6_; 762 #line 40 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 763 e_dbus = _inner_error_; 764 #line 40 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 765 _inner_error_ = NULL; 766 #line 47 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 767 _tmp5_ = e_dbus; 768 #line 47 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 769 _tmp6_ = _g_error_copy0 (_tmp5_); 770 #line 47 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 771 _inner_error_ = _tmp6_; 772 #line 47 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 773 _g_error_free0 (e_dbus); 774 #line 775 "tracker-bus.c" 775 goto __finally0; 776 } 777 goto __finally0; 778 __catch0_g_error: 779 { 780 GError* e = NULL; 781 GError* _tmp7_; 782 const gchar* _tmp8_; 783 GError* _tmp9_; 784 #line 40 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 785 e = _inner_error_; 786 #line 40 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 787 _inner_error_ = NULL; 788 #line 49 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 789 _tmp7_ = e; 790 #line 49 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 791 _tmp8_ = _tmp7_->message; 792 #line 49 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 793 _tmp9_ = g_error_new_literal (G_IO_ERROR, G_IO_ERROR_FAILED, _tmp8_); 794 #line 49 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 795 _inner_error_ = _tmp9_; 796 #line 49 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 797 _g_error_free0 (e); 798 #line 799 "tracker-bus.c" 799 goto __finally0; 800 } 801 __finally0: 802 #line 40 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 803 if (_inner_error_ != NULL) { 804 #line 40 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 805 if (((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == G_IO_ERROR)) || (_inner_error_->domain == G_DBUS_ERROR)) { 806 #line 40 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 807 g_propagate_error (error, _inner_error_); 808 #line 40 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 809 return; 810 #line 811 "tracker-bus.c" 811 } else { 812 #line 40 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 813 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 814 #line 40 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 815 g_clear_error (&_inner_error_); 816 #line 40 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 817 return; 818 #line 819 "tracker-bus.c" 819 } 820 } 821 } 822 823 824 static void tracker_bus_connection_send_query (TrackerBusConnection* self, const gchar* sparql, GUnixOutputStream* output, GCancellable* cancellable, GAsyncReadyCallback callback, void* callback_target, GError** error) { 825 GDBusMessage* _tmp0_; 826 GDBusMessage* message; 827 GUnixFDList* _tmp1_; 828 GUnixFDList* fd_list; 829 GUnixOutputStream* _tmp2_; 830 gint _tmp3_; 831 gint _tmp4_; 832 gint _tmp5_ = 0; 833 gint _tmp6_; 834 const gchar* _tmp7_; 835 GVariant* _tmp8_; 836 GVariant* _tmp9_; 837 GDBusConnection* _tmp10_; 838 gint _tmp11_; 839 GCancellable* _tmp12_; 840 GAsyncReadyCallback _tmp13_; 841 void* _tmp13__target; 842 GError * _inner_error_ = NULL; 843 #line 53 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 844 g_return_if_fail (self != NULL); 845 #line 53 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 846 g_return_if_fail (sparql != NULL); 847 #line 53 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 848 g_return_if_fail (output != NULL); 849 #line 54 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 850 _tmp0_ = g_dbus_message_new_method_call (TRACKER_DBUS_SERVICE, TRACKER_DBUS_OBJECT_STEROIDS, TRACKER_DBUS_INTERFACE_STEROIDS, "Query"); 851 #line 54 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 852 message = _tmp0_; 853 #line 55 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 854 _tmp1_ = g_unix_fd_list_new (); 855 #line 55 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 856 fd_list = _tmp1_; 857 #line 56 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 858 _tmp2_ = output; 859 #line 56 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 860 _tmp3_ = g_unix_output_stream_get_fd (_tmp2_); 861 #line 56 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 862 _tmp4_ = _tmp3_; 863 #line 56 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 864 _tmp5_ = g_unix_fd_list_append (fd_list, _tmp4_, &_inner_error_); 865 #line 56 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 866 _tmp6_ = _tmp5_; 867 #line 56 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 868 if (_inner_error_ != NULL) { 869 #line 56 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 870 if (_inner_error_->domain == G_IO_ERROR) { 871 #line 56 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 872 g_propagate_error (error, _inner_error_); 873 #line 56 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 874 _g_object_unref0 (fd_list); 875 #line 56 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 876 _g_object_unref0 (message); 877 #line 56 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 878 return; 879 #line 880 "tracker-bus.c" 880 } else { 881 #line 56 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 882 _g_object_unref0 (fd_list); 883 #line 56 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 884 _g_object_unref0 (message); 885 #line 56 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 886 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 887 #line 56 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 888 g_clear_error (&_inner_error_); 889 #line 56 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 890 return; 891 #line 892 "tracker-bus.c" 892 } 893 } 894 #line 56 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 895 _tmp7_ = sparql; 896 #line 56 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 897 _tmp8_ = g_variant_new ("(sh)", _tmp7_, _tmp6_, NULL); 898 #line 56 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 899 g_variant_ref_sink (_tmp8_); 900 #line 56 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 901 _tmp9_ = _tmp8_; 902 #line 56 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 903 g_dbus_message_set_body (message, _tmp9_); 904 #line 56 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 905 _g_variant_unref0 (_tmp9_); 906 #line 57 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 907 g_dbus_message_set_unix_fd_list (message, fd_list); 908 #line 59 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 909 _tmp10_ = self->priv->bus; 910 #line 59 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 911 _tmp11_ = G_MAXINT; 912 #line 59 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 913 _tmp12_ = cancellable; 914 #line 59 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 915 _tmp13_ = callback; 916 #line 59 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 917 _tmp13__target = callback_target; 918 #line 59 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 919 g_dbus_connection_send_message_with_reply (_tmp10_, message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, _tmp11_, NULL, _tmp12_, _tmp13_, _tmp13__target); 920 #line 53 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 921 _g_object_unref0 (fd_list); 922 #line 53 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 923 _g_object_unref0 (message); 924 #line 925 "tracker-bus.c" 925 } 926 927 928 static Block1Data* block1_data_ref (Block1Data* _data1_) { 929 #line 62 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 930 g_atomic_int_inc (&_data1_->_ref_count_); 931 #line 62 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 932 return _data1_; 933 #line 934 "tracker-bus.c" 934 } 935 936 937 static void block1_data_unref (void * _userdata_) { 938 Block1Data* _data1_; 939 _data1_ = (Block1Data*) _userdata_; 940 #line 62 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 941 if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) { 942 #line 943 "tracker-bus.c" 943 TrackerBusConnection * self; 944 #line 62 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 945 self = _data1_->self; 946 #line 62 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 947 _g_object_unref0 (_data1_->async_res); 948 #line 62 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 949 _g_main_loop_unref0 (_data1_->loop); 950 #line 62 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 951 _g_object_unref0 (self); 952 #line 62 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 953 g_slice_free (Block1Data, _data1_); 954 #line 955 "tracker-bus.c" 955 } 956 } 957 958 959 static gpointer _g_object_ref0 (gpointer self) { 960 #line 69 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 961 return self ? g_object_ref (self) : NULL; 962 #line 963 "tracker-bus.c" 963 } 964 965 966 static void __lambda3_ (Block1Data* _data1_, GObject* o, GAsyncResult* res) { 967 TrackerBusConnection * self;
variable 'self' set but not used
(emitted by gcc)
968 GAsyncResult* _tmp0_; 969 GAsyncResult* _tmp1_; 970 #line 68 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 971 self = _data1_->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)

972 #line 68 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 973 g_return_if_fail (res != NULL); 974 #line 69 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 975 _tmp0_ = res; 976 #line 69 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 977 _tmp1_ = _g_object_ref0 (_tmp0_); 978 #line 69 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 979 _g_object_unref0 (_data1_->async_res); 980 #line 69 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 981 _data1_->async_res = _tmp1_; 982 #line 70 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 983 g_main_loop_quit (_data1_->loop); 984 #line 985 "tracker-bus.c" 985 } 986 987 988 static void ___lambda3__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) { 989 #line 68 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 990 __lambda3_ (self, source_object, res); 991 #line 68 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 992 block1_data_unref (self); 993 #line 994 "tracker-bus.c" 994 } 995 996 997 static TrackerSparqlCursor* tracker_bus_connection_real_query (TrackerSparqlConnection* base, const gchar* sparql, GCancellable* cancellable, GError** error) { 998 TrackerBusConnection * self; 999 TrackerSparqlCursor* result = NULL; 1000 Block1Data* _data1_; 1001 GMainContext* _tmp0_; 1002 GMainContext* context; 1003 GMainLoop* _tmp1_; 1004 const gchar* _tmp2_; 1005 GCancellable* _tmp3_; 1006 TrackerSparqlCursor* _tmp4_ = NULL; 1007 TrackerSparqlCursor* _tmp5_; 1008 GError * _inner_error_ = NULL; 1009 #line 62 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1010 self = (TrackerBusConnection*) base; 1011 #line 62 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1012 g_return_val_if_fail (sparql != NULL, NULL); 1013 #line 62 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1014 _data1_ = g_slice_new0 (Block1Data); 1015 #line 62 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1016 _data1_->_ref_count_ = 1; 1017 #line 62 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1018 _data1_->self = g_object_ref (self); 1019 #line 64 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1020 _tmp0_ = g_main_context_new (); 1021 #line 64 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1022 context = _tmp0_; 1023 #line 65 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1024 _tmp1_ = g_main_loop_new (context, FALSE); 1025 #line 65 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1026 _data1_->loop = _tmp1_; 1027 #line 66 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1028 g_main_context_push_thread_default (context); 1029 #line 67 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1030 _data1_->async_res = NULL; 1031 #line 68 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1032 _tmp2_ = sparql; 1033 #line 68 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1034 _tmp3_ = cancellable; 1035 #line 68 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1036 tracker_sparql_connection_query_async ((TrackerSparqlConnection*) self, _tmp2_, _tmp3_, ___lambda3__gasync_ready_callback, block1_data_ref (_data1_)); 1037 #line 72 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1038 g_main_loop_run (_data1_->loop); 1039 #line 73 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1040 g_main_context_pop_thread_default (context); 1041 #line 74 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1042 _tmp4_ = tracker_sparql_connection_query_finish ((TrackerSparqlConnection*) self, _data1_->async_res, &_inner_error_); 1043 #line 74 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1044 _tmp5_ = _tmp4_; 1045 #line 74 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1046 if (_inner_error_ != NULL) { 1047 #line 74 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1048 if (((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == G_IO_ERROR)) || (_inner_error_->domain == G_DBUS_ERROR)) { 1049 #line 74 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1050 g_propagate_error (error, _inner_error_); 1051 #line 74 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1052 _g_main_context_unref0 (context); 1053 #line 74 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1054 block1_data_unref (_data1_); 1055 #line 74 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1056 _data1_ = NULL; 1057 #line 74 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1058 return NULL; 1059 #line 1060 "tracker-bus.c" 1060 } else { 1061 #line 74 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1062 _g_main_context_unref0 (context); 1063 #line 74 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1064 block1_data_unref (_data1_); 1065 #line 74 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1066 _data1_ = NULL; 1067 #line 74 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1068 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 1069 #line 74 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1070 g_clear_error (&_inner_error_); 1071 #line 74 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1072 return NULL; 1073 #line 1074 "tracker-bus.c" 1074 } 1075 } 1076 #line 74 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1077 result = _tmp5_; 1078 #line 74 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1079 _g_main_context_unref0 (context); 1080 #line 74 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1081 block1_data_unref (_data1_); 1082 #line 74 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1083 _data1_ = NULL; 1084 #line 74 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1085 return result; 1086 #line 1087 "tracker-bus.c" 1087 } 1088 1089 1090 static void tracker_bus_connection_real_query_async_data_free (gpointer _data) { 1091 TrackerBusConnectionQueryAsyncData* _data_; 1092 _data_ = _data; 1093 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1094 _g_free0 (_data_->sparql); 1095 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1096 _g_object_unref0 (_data_->cancellable); 1097 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1098 _g_object_unref0 (_data_->result); 1099 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1100 _g_object_unref0 (_data_->self); 1101 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1102 g_slice_free (TrackerBusConnectionQueryAsyncData, _data_); 1103 #line 1104 "tracker-bus.c" 1104 } 1105 1106 1107 static void tracker_bus_connection_real_query_async (TrackerSparqlConnection* base, const gchar* sparql, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) { 1108 TrackerBusConnection * self; 1109 TrackerBusConnectionQueryAsyncData* _data_; 1110 TrackerBusConnection* _tmp0_; 1111 const gchar* _tmp1_; 1112 gchar* _tmp2_; 1113 GCancellable* _tmp3_; 1114 GCancellable* _tmp4_; 1115 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1116 self = (TrackerBusConnection*) base; 1117 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1118 _data_ = g_slice_new0 (TrackerBusConnectionQueryAsyncData); 1119 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1120 _data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, tracker_bus_connection_real_query_async); 1121 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1122 g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, tracker_bus_connection_real_query_async_data_free); 1123 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1124 _tmp0_ = _g_object_ref0 (self); 1125 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1126 _data_->self = _tmp0_; 1127 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1128 _tmp1_ = sparql; 1129 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1130 _tmp2_ = g_strdup (_tmp1_); 1131 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1132 _g_free0 (_data_->sparql); 1133 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1134 _data_->sparql = _tmp2_; 1135 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1136 _tmp3_ = cancellable; 1137 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1138 _tmp4_ = _g_object_ref0 (_tmp3_); 1139 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1140 _g_object_unref0 (_data_->cancellable); 1141 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1142 _data_->cancellable = _tmp4_; 1143 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1144 tracker_bus_connection_real_query_async_co (_data_); 1145 #line 1146 "tracker-bus.c" 1146 } 1147 1148 1149 static TrackerSparqlCursor* tracker_bus_connection_real_query_finish (TrackerSparqlConnection* base, GAsyncResult* _res_, GError** error) { 1150 TrackerSparqlCursor* result; 1151 TrackerBusConnectionQueryAsyncData* _data_; 1152 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1153 if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) { 1154 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1155 return NULL; 1156 #line 1157 "tracker-bus.c" 1157 } 1158 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1159 _data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_)); 1160 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1161 result = _data_->result; 1162 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1163 _data_->result = NULL; 1164 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1165 return result; 1166 #line 1167 "tracker-bus.c" 1167 } 1168 1169 1170 static Block2Data* block2_data_ref (Block2Data* _data2_) { 1171 #line 77 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1172 g_atomic_int_inc (&_data2_->_ref_count_); 1173 #line 77 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1174 return _data2_; 1175 #line 1176 "tracker-bus.c" 1176 } 1177 1178 1179 static void block2_data_unref (void * _userdata_) { 1180 Block2Data* _data2_; 1181 _data2_ = (Block2Data*) _userdata_; 1182 #line 77 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1183 if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) { 1184 #line 1185 "tracker-bus.c" 1185 TrackerBusConnection * self; 1186 #line 77 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1187 self = _data2_->self; 1188 #line 77 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1189 _g_object_unref0 (_data2_->dbus_res); 1190 #line 77 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1191 _g_object_unref0 (self); 1192 #line 77 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1193 g_slice_free (Block2Data, _data2_); 1194 #line 1195 "tracker-bus.c" 1195 } 1196 } 1197 1198 1199 static void __lambda2_ (Block2Data* _data2_, GObject* o, GAsyncResult* res) { 1200 TrackerBusConnection * self;
variable 'self' set but not used
(emitted by gcc)
1201 GAsyncResult* _tmp0_; 1202 GAsyncResult* _tmp1_; 1203 gboolean _tmp2_; 1204 #line 85 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1205 self = _data2_->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)

1206 #line 85 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1207 g_return_if_fail (res != NULL); 1208 #line 86 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1209 _tmp0_ = res; 1210 #line 86 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1211 _tmp1_ = _g_object_ref0 (_tmp0_); 1212 #line 86 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1213 _g_object_unref0 (_data2_->dbus_res); 1214 #line 86 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1215 _data2_->dbus_res = _tmp1_; 1216 #line 87 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1217 _tmp2_ = _data2_->received_result; 1218 #line 87 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1219 if (_tmp2_) { 1220 #line 88 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1221 tracker_bus_connection_real_query_async_co (_data2_->_async_data_); 1222 #line 1223 "tracker-bus.c" 1223 } 1224 } 1225 1226 1227 static void ___lambda2__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) { 1228 #line 85 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1229 __lambda2_ (self, source_object, res); 1230 #line 1231 "tracker-bus.c" 1231 } 1232 1233 1234 static void* _g_realloc_grealloc_func (void* data, gsize size) { 1235 void* result; 1236 result = g_realloc (data, size); 1237 #line 95 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1238 return result; 1239 #line 1240 "tracker-bus.c" 1240 } 1241 1242 1243 static void _g_free_gdestroy_notify (void* data) { 1244 #line 95 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1245 g_free (data); 1246 #line 1247 "tracker-bus.c" 1247 } 1248 1249 1250 static void tracker_bus_connection_query_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) { 1251 TrackerBusConnectionQueryAsyncData* _data_; 1252 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1253 _data_ = _user_data_; 1254 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1255 _data_->_source_object_ = source_object; 1256 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1257 _data_->_res_ = _res_; 1258 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1259 tracker_bus_connection_real_query_async_co (_data_); 1260 #line 1261 "tracker-bus.c" 1261 } 1262 1263 1264 static gchar** _variant_get1 (GVariant* value, int* result_length1) { 1265 gchar** _tmp19_; 1266 int _tmp19__length; 1267 int _tmp19__size; 1268 int _tmp19__length1; 1269 GVariantIter _tmp20_; 1270 GVariant* _tmp21_; 1271 _tmp19_ = g_new (gchar*, 5); 1272 _tmp19__length = 0; 1273 _tmp19__size = 4; 1274 _tmp19__length1 = 0; 1275 #line 107 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1276 g_variant_iter_init (&_tmp20_, value); 1277 #line 107 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1278 for (; (_tmp21_ = g_variant_iter_next_value (&_tmp20_)) != NULL; _tmp19__length1++) { 1279 #line 107 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1280 if (_tmp19__size == _tmp19__length) { 1281 #line 107 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1282 _tmp19__size = 2 * _tmp19__size; 1283 #line 107 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1284 _tmp19_ = g_renew (gchar*, _tmp19_, _tmp19__size + 1); 1285 #line 1286 "tracker-bus.c" 1286 } 1287 #line 107 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1288 _tmp19_[_tmp19__length++] = g_variant_dup_string (_tmp21_, NULL); 1289 #line 107 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1290 g_variant_unref (_tmp21_); 1291 #line 1292 "tracker-bus.c" 1292 } 1293 #line 107 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1294 *result_length1 = _tmp19__length1; 1295 #line 107 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1296 _tmp19_[_tmp19__length] = NULL; 1297 #line 107 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1298 return _tmp19_; 1299 #line 1300 "tracker-bus.c" 1300 } 1301 1302 1303 static gboolean tracker_bus_connection_real_query_async_co (TrackerBusConnectionQueryAsyncData* _data_) { 1304 #line 77 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1305 switch (_data_->_state_) { 1306 #line 77 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1307 case 0: 1308 #line 1309 "tracker-bus.c" 1309 goto _state_0; 1310 #line 77 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1311 case 1: 1312 #line 1313 "tracker-bus.c" 1313 goto _state_1; 1314 #line 77 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1315 case 2: 1316 #line 1317 "tracker-bus.c" 1317 goto _state_2; 1318 default: 1319 #line 77 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1320 g_assert_not_reached (); 1321 #line 1322 "tracker-bus.c" 1322 } 1323 _state_0: 1324 #line 77 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1325 _data_->_data2_ = g_slice_new0 (Block2Data); 1326 #line 77 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1327 _data_->_data2_->_ref_count_ = 1; 1328 #line 77 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1329 _data_->_data2_->self = g_object_ref (_data_->self); 1330 #line 77 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1331 _data_->_data2_->_async_data_ = _data_; 1332 #line 80 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1333 _data_->_tmp0_ = NULL; 1334 #line 80 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1335 _data_->_tmp1_ = NULL; 1336 #line 80 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1337 tracker_bus_connection_pipe (_data_->self, &_data_->_tmp0_, &_data_->_tmp1_, &_data_->_inner_error_); 1338 #line 80 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1339 _g_object_unref0 (_data_->input); 1340 #line 80 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1341 _data_->input = _data_->_tmp0_; 1342 #line 80 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1343 _g_object_unref0 (_data_->output); 1344 #line 80 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1345 _data_->output = _data_->_tmp1_; 1346 #line 80 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1347 if (_data_->_inner_error_ != NULL) { 1348 #line 80 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1349 if (((_data_->_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_data_->_inner_error_->domain == G_IO_ERROR)) || (_data_->_inner_error_->domain == G_DBUS_ERROR)) { 1350 #line 80 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1351 g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_); 1352 #line 80 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1353 g_error_free (_data_->_inner_error_); 1354 #line 80 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1355 _g_object_unref0 (_data_->output); 1356 #line 80 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1357 _g_object_unref0 (_data_->input); 1358 #line 80 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1359 block2_data_unref (_data_->_data2_); 1360 #line 80 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1361 _data_->_data2_ = NULL; 1362 #line 80 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1363 if (_data_->_state_ == 0) { 1364 #line 80 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1365 g_simple_async_result_complete_in_idle (_data_->_async_result); 1366 #line 1367 "tracker-bus.c" 1367 } else { 1368 #line 80 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1369 g_simple_async_result_complete (_data_->_async_result); 1370 #line 1371 "tracker-bus.c" 1371 } 1372 #line 80 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1373 g_object_unref (_data_->_async_result); 1374 #line 80 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1375 return FALSE; 1376 #line 1377 "tracker-bus.c" 1377 } else { 1378 #line 80 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1379 _g_object_unref0 (_data_->output); 1380 #line 80 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1381 _g_object_unref0 (_data_->input); 1382 #line 80 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1383 block2_data_unref (_data_->_data2_); 1384 #line 80 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1385 _data_->_data2_ = NULL; 1386 #line 80 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1387 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code); 1388 #line 80 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1389 g_clear_error (&_data_->_inner_error_); 1390 #line 80 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1391 return FALSE; 1392 #line 1393 "tracker-bus.c" 1393 } 1394 } 1395 #line 83 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1396 _data_->_data2_->dbus_res = NULL; 1397 #line 84 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1398 _data_->_data2_->received_result = FALSE; 1399 #line 85 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1400 _data_->_tmp2_ = _data_->sparql; 1401 #line 85 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1402 _data_->_tmp3_ = _data_->output; 1403 #line 85 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1404 _data_->_tmp4_ = _data_->cancellable; 1405 #line 85 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1406 tracker_bus_connection_send_query (_data_->self, _data_->_tmp2_, _data_->_tmp3_, _data_->_tmp4_, ___lambda2__gasync_ready_callback, _data_->_data2_, &_data_->_inner_error_); 1407 #line 85 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1408 if (_data_->_inner_error_ != NULL) { 1409 #line 85 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1410 if (((_data_->_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_data_->_inner_error_->domain == G_IO_ERROR)) || (_data_->_inner_error_->domain == G_DBUS_ERROR)) { 1411 #line 85 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1412 g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_); 1413 #line 85 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1414 g_error_free (_data_->_inner_error_); 1415 #line 85 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1416 _g_object_unref0 (_data_->output); 1417 #line 85 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1418 _g_object_unref0 (_data_->input); 1419 #line 85 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1420 block2_data_unref (_data_->_data2_); 1421 #line 85 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1422 _data_->_data2_ = NULL; 1423 #line 85 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1424 if (_data_->_state_ == 0) { 1425 #line 85 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1426 g_simple_async_result_complete_in_idle (_data_->_async_result); 1427 #line 1428 "tracker-bus.c" 1428 } else { 1429 #line 85 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1430 g_simple_async_result_complete (_data_->_async_result); 1431 #line 1432 "tracker-bus.c" 1432 } 1433 #line 85 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1434 g_object_unref (_data_->_async_result); 1435 #line 85 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1436 return FALSE; 1437 #line 1438 "tracker-bus.c" 1438 } else { 1439 #line 85 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1440 _g_object_unref0 (_data_->output); 1441 #line 85 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1442 _g_object_unref0 (_data_->input); 1443 #line 85 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1444 block2_data_unref (_data_->_data2_); 1445 #line 85 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1446 _data_->_data2_ = NULL; 1447 #line 85 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1448 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code); 1449 #line 85 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1450 g_clear_error (&_data_->_inner_error_); 1451 #line 85 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1452 return FALSE; 1453 #line 1454 "tracker-bus.c" 1454 } 1455 } 1456 #line 92 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1457 _g_object_unref0 (_data_->output); 1458 #line 92 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1459 _data_->output = NULL; 1460 #line 95 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1461 _data_->_tmp5_ = (GMemoryOutputStream*) g_memory_output_stream_new (NULL, 0, _g_realloc_grealloc_func, _g_free_gdestroy_notify); 1462 #line 95 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1463 _data_->mem_stream = _data_->_tmp5_; 1464 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1465 _data_->_tmp6_ = _data_->mem_stream; 1466 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1467 _data_->_tmp7_ = _data_->input; 1468 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1469 _data_->_tmp8_ = _data_->cancellable; 1470 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1471 _data_->_state_ = 1; 1472 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1473 g_output_stream_splice_async ((GOutputStream*) _data_->_tmp6_, (GInputStream*) _data_->_tmp7_, G_OUTPUT_STREAM_SPLICE_CLOSE_SOURCE | G_OUTPUT_STREAM_SPLICE_CLOSE_TARGET, G_PRIORITY_DEFAULT, _data_->_tmp8_, tracker_bus_connection_query_async_ready, _data_); 1474 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1475 return FALSE; 1476 #line 1477 "tracker-bus.c" 1477 _state_1: 1478 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1479 g_output_stream_splice_finish ((GOutputStream*) _data_->_tmp6_, _data_->_res_, &_data_->_inner_error_); 1480 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1481 if (_data_->_inner_error_ != NULL) { 1482 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1483 if (((_data_->_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_data_->_inner_error_->domain == G_IO_ERROR)) || (_data_->_inner_error_->domain == G_DBUS_ERROR)) { 1484 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1485 g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_); 1486 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1487 g_error_free (_data_->_inner_error_); 1488 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1489 _g_object_unref0 (_data_->mem_stream); 1490 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1491 _g_object_unref0 (_data_->output); 1492 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1493 _g_object_unref0 (_data_->input); 1494 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1495 block2_data_unref (_data_->_data2_); 1496 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1497 _data_->_data2_ = NULL; 1498 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1499 if (_data_->_state_ == 0) { 1500 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1501 g_simple_async_result_complete_in_idle (_data_->_async_result); 1502 #line 1503 "tracker-bus.c" 1503 } else { 1504 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1505 g_simple_async_result_complete (_data_->_async_result); 1506 #line 1507 "tracker-bus.c" 1507 } 1508 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1509 g_object_unref (_data_->_async_result); 1510 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1511 return FALSE; 1512 #line 1513 "tracker-bus.c" 1513 } else { 1514 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1515 _g_object_unref0 (_data_->mem_stream); 1516 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1517 _g_object_unref0 (_data_->output); 1518 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1519 _g_object_unref0 (_data_->input); 1520 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1521 block2_data_unref (_data_->_data2_); 1522 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1523 _data_->_data2_ = NULL; 1524 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1525 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code); 1526 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1527 g_clear_error (&_data_->_inner_error_); 1528 #line 96 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1529 return FALSE; 1530 #line 1531 "tracker-bus.c" 1531 } 1532 } 1533 #line 99 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1534 _data_->_data2_->received_result = TRUE; 1535 #line 100 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1536 _data_->_tmp9_ = _data_->_data2_->dbus_res; 1537 #line 100 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1538 if (_data_->_tmp9_ == NULL) { 1539 #line 101 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1540 _data_->_state_ = 2; 1541 #line 101 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1542 return FALSE; 1543 #line 1544 "tracker-bus.c" 1544 _state_2: 1545 ; 1546 } 1547 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1548 _data_->_tmp10_ = _data_->self->priv->bus; 1549 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1550 _data_->_tmp11_ = _data_->_data2_->dbus_res; 1551 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1552 _data_->_tmp12_ = NULL; 1553 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1554 _data_->_tmp12_ = g_dbus_connection_send_message_with_reply_finish (_data_->_tmp10_, _data_->_tmp11_, &_data_->_inner_error_); 1555 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1556 _data_->reply = _data_->_tmp12_; 1557 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1558 if (_data_->_inner_error_ != NULL) { 1559 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1560 if (((_data_->_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_data_->_inner_error_->domain == G_IO_ERROR)) || (_data_->_inner_error_->domain == G_DBUS_ERROR)) { 1561 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1562 g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_); 1563 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1564 g_error_free (_data_->_inner_error_); 1565 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1566 _g_object_unref0 (_data_->mem_stream); 1567 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1568 _g_object_unref0 (_data_->output); 1569 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1570 _g_object_unref0 (_data_->input); 1571 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1572 block2_data_unref (_data_->_data2_); 1573 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1574 _data_->_data2_ = NULL; 1575 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1576 if (_data_->_state_ == 0) { 1577 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1578 g_simple_async_result_complete_in_idle (_data_->_async_result); 1579 #line 1580 "tracker-bus.c" 1580 } else { 1581 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1582 g_simple_async_result_complete (_data_->_async_result); 1583 #line 1584 "tracker-bus.c" 1584 } 1585 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1586 g_object_unref (_data_->_async_result); 1587 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1588 return FALSE; 1589 #line 1590 "tracker-bus.c" 1590 } else { 1591 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1592 _g_object_unref0 (_data_->mem_stream); 1593 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1594 _g_object_unref0 (_data_->output); 1595 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1596 _g_object_unref0 (_data_->input); 1597 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1598 block2_data_unref (_data_->_data2_); 1599 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1600 _data_->_data2_ = NULL; 1601 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1602 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code); 1603 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1604 g_clear_error (&_data_->_inner_error_); 1605 #line 104 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1606 return FALSE; 1607 #line 1608 "tracker-bus.c" 1608 } 1609 } 1610 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1611 _data_->_tmp13_ = _data_->reply; 1612 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1613 tracker_bus_connection_handle_error_reply (_data_->self, _data_->_tmp13_, &_data_->_inner_error_); 1614 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1615 if (_data_->_inner_error_ != NULL) { 1616 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1617 if (((_data_->_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_data_->_inner_error_->domain == G_IO_ERROR)) || (_data_->_inner_error_->domain == G_DBUS_ERROR)) { 1618 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1619 g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_); 1620 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1621 g_error_free (_data_->_inner_error_); 1622 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1623 _g_object_unref0 (_data_->reply); 1624 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1625 _g_object_unref0 (_data_->mem_stream); 1626 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1627 _g_object_unref0 (_data_->output); 1628 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1629 _g_object_unref0 (_data_->input); 1630 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1631 block2_data_unref (_data_->_data2_); 1632 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1633 _data_->_data2_ = NULL; 1634 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1635 if (_data_->_state_ == 0) { 1636 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1637 g_simple_async_result_complete_in_idle (_data_->_async_result); 1638 #line 1639 "tracker-bus.c" 1639 } else { 1640 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1641 g_simple_async_result_complete (_data_->_async_result); 1642 #line 1643 "tracker-bus.c" 1643 } 1644 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1645 g_object_unref (_data_->_async_result); 1646 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1647 return FALSE; 1648 #line 1649 "tracker-bus.c" 1649 } else { 1650 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1651 _g_object_unref0 (_data_->reply); 1652 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1653 _g_object_unref0 (_data_->mem_stream); 1654 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1655 _g_object_unref0 (_data_->output); 1656 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1657 _g_object_unref0 (_data_->input); 1658 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1659 block2_data_unref (_data_->_data2_); 1660 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1661 _data_->_data2_ = NULL; 1662 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1663 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code); 1664 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1665 g_clear_error (&_data_->_inner_error_); 1666 #line 105 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1667 return FALSE; 1668 #line 1669 "tracker-bus.c" 1669 } 1670 } 1671 #line 107 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1672 _data_->_tmp14_ = _data_->reply; 1673 #line 107 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1674 _data_->_tmp15_ = NULL; 1675 #line 107 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1676 _data_->_tmp15_ = g_dbus_message_get_body (_data_->_tmp14_); 1677 #line 107 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1678 _data_->_tmp16_ = NULL; 1679 #line 107 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1680 _data_->_tmp16_ = g_variant_get_child_value (_data_->_tmp15_, (gsize) 0); 1681 #line 107 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1682 _data_->_tmp17_ = _data_->_tmp16_; 1683 #line 107 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1684 _data_->_tmp18_ = _variant_get1 (_data_->_tmp17_, &_data_->_tmp18__length1); 1685 #line 107 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1686 _data_->_tmp22_ = _data_->_tmp18_; 1687 #line 107 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1688 _data_->_tmp22__length1 = _data_->_tmp18__length1; 1689 #line 107 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1690 _g_variant_unref0 (_data_->_tmp17_); 1691 #line 107 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1692 _data_->variable_names = _data_->_tmp22_; 1693 #line 107 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1694 _data_->variable_names_length1 = _data_->_tmp22__length1; 1695 #line 107 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1696 _data_->_variable_names_size_ = _data_->variable_names_length1; 1697 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1698 _data_->_tmp23_ = _data_->mem_stream; 1699 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1700 g_output_stream_close ((GOutputStream*) _data_->_tmp23_, NULL, &_data_->_inner_error_); 1701 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1702 if (_data_->_inner_error_ != NULL) { 1703 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1704 if (((_data_->_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_data_->_inner_error_->domain == G_IO_ERROR)) || (_data_->_inner_error_->domain == G_DBUS_ERROR)) { 1705 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1706 g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_); 1707 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1708 g_error_free (_data_->_inner_error_); 1709 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1710 _data_->variable_names = (_vala_array_free (_data_->variable_names, _data_->variable_names_length1, (GDestroyNotify) g_free), NULL); 1711 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1712 _g_object_unref0 (_data_->reply); 1713 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1714 _g_object_unref0 (_data_->mem_stream); 1715 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1716 _g_object_unref0 (_data_->output); 1717 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1718 _g_object_unref0 (_data_->input); 1719 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1720 block2_data_unref (_data_->_data2_); 1721 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1722 _data_->_data2_ = NULL; 1723 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1724 if (_data_->_state_ == 0) { 1725 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1726 g_simple_async_result_complete_in_idle (_data_->_async_result); 1727 #line 1728 "tracker-bus.c" 1728 } else { 1729 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1730 g_simple_async_result_complete (_data_->_async_result); 1731 #line 1732 "tracker-bus.c" 1732 } 1733 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1734 g_object_unref (_data_->_async_result); 1735 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1736 return FALSE; 1737 #line 1738 "tracker-bus.c" 1738 } else { 1739 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1740 _data_->variable_names = (_vala_array_free (_data_->variable_names, _data_->variable_names_length1, (GDestroyNotify) g_free), NULL); 1741 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1742 _g_object_unref0 (_data_->reply); 1743 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1744 _g_object_unref0 (_data_->mem_stream); 1745 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1746 _g_object_unref0 (_data_->output); 1747 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1748 _g_object_unref0 (_data_->input); 1749 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1750 block2_data_unref (_data_->_data2_); 1751 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1752 _data_->_data2_ = NULL; 1753 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1754 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code); 1755 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1756 g_clear_error (&_data_->_inner_error_); 1757 #line 108 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1758 return FALSE; 1759 #line 1760 "tracker-bus.c" 1760 } 1761 } 1762 #line 109 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1763 _data_->_tmp24_ = _data_->mem_stream; 1764 #line 109 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1765 _data_->_tmp25_ = NULL; 1766 #line 109 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1767 _data_->_tmp25_ = g_memory_output_stream_steal_data (_data_->_tmp24_); 1768 #line 109 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1769 _data_->_tmp26_ = _data_->mem_stream; 1770 #line 109 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1771 _data_->_tmp27_ = g_memory_output_stream_get_data_size (_data_->_tmp26_); 1772 #line 109 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1773 _data_->_tmp28_ = _data_->_tmp27_; 1774 #line 109 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1775 _data_->_tmp29_ = _data_->variable_names; 1776 #line 109 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1777 _data_->_tmp29__length1 = _data_->variable_names_length1; 1778 #line 109 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1779 _data_->_tmp30_ = tracker_bus_fd_cursor_new (_data_->_tmp25_, _data_->_tmp28_, _data_->_tmp29_, _data_->_tmp29__length1); 1780 #line 109 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1781 _data_->result = (TrackerSparqlCursor*) _data_->_tmp30_; 1782 #line 109 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1783 _data_->variable_names = (_vala_array_free (_data_->variable_names, _data_->variable_names_length1, (GDestroyNotify) g_free), NULL); 1784 #line 109 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1785 _g_object_unref0 (_data_->reply); 1786 #line 109 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1787 _g_object_unref0 (_data_->mem_stream); 1788 #line 109 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1789 _g_object_unref0 (_data_->output); 1790 #line 109 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1791 _g_object_unref0 (_data_->input); 1792 #line 109 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1793 block2_data_unref (_data_->_data2_); 1794 #line 109 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1795 _data_->_data2_ = NULL; 1796 #line 109 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1797 if (_data_->_state_ == 0) { 1798 #line 109 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1799 g_simple_async_result_complete_in_idle (_data_->_async_result); 1800 #line 1801 "tracker-bus.c" 1801 } else { 1802 #line 109 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1803 g_simple_async_result_complete (_data_->_async_result); 1804 #line 1805 "tracker-bus.c" 1805 } 1806 #line 109 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1807 g_object_unref (_data_->_async_result); 1808 #line 109 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1809 return FALSE; 1810 #line 77 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1811 _data_->variable_names = (_vala_array_free (_data_->variable_names, _data_->variable_names_length1, (GDestroyNotify) g_free), NULL); 1812 #line 77 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1813 _g_object_unref0 (_data_->reply); 1814 #line 77 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1815 _g_object_unref0 (_data_->mem_stream); 1816 #line 77 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1817 _g_object_unref0 (_data_->output); 1818 #line 77 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1819 _g_object_unref0 (_data_->input); 1820 #line 77 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1821 block2_data_unref (_data_->_data2_); 1822 #line 77 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1823 _data_->_data2_ = NULL; 1824 #line 77 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1825 if (_data_->_state_ == 0) { 1826 #line 77 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1827 g_simple_async_result_complete_in_idle (_data_->_async_result); 1828 #line 1829 "tracker-bus.c" 1829 } else { 1830 #line 77 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1831 g_simple_async_result_complete (_data_->_async_result); 1832 #line 1833 "tracker-bus.c" 1833 } 1834 #line 77 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1835 g_object_unref (_data_->_async_result); 1836 #line 77 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1837 return FALSE; 1838 #line 1839 "tracker-bus.c" 1839 } 1840 1841 1842 static void tracker_bus_connection_send_update (TrackerBusConnection* self, const gchar* method, GUnixInputStream* input, GCancellable* cancellable, GAsyncReadyCallback callback, void* callback_target, GError** error) { 1843 const gchar* _tmp0_; 1844 GDBusMessage* _tmp1_; 1845 GDBusMessage* message; 1846 GUnixFDList* _tmp2_; 1847 GUnixFDList* fd_list; 1848 GUnixInputStream* _tmp3_; 1849 gint _tmp4_; 1850 gint _tmp5_; 1851 gint _tmp6_ = 0; 1852 gint _tmp7_; 1853 GVariant* _tmp8_; 1854 GVariant* _tmp9_; 1855 GDBusConnection* _tmp10_; 1856 gint _tmp11_; 1857 GCancellable* _tmp12_; 1858 GAsyncReadyCallback _tmp13_; 1859 void* _tmp13__target; 1860 GError * _inner_error_ = NULL; 1861 #line 112 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1862 g_return_if_fail (self != NULL); 1863 #line 112 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1864 g_return_if_fail (method != NULL); 1865 #line 112 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1866 g_return_if_fail (input != NULL); 1867 #line 113 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1868 _tmp0_ = method; 1869 #line 113 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1870 _tmp1_ = g_dbus_message_new_method_call (TRACKER_DBUS_SERVICE, TRACKER_DBUS_OBJECT_STEROIDS, TRACKER_DBUS_INTERFACE_STEROIDS, _tmp0_); 1871 #line 113 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1872 message = _tmp1_; 1873 #line 114 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1874 _tmp2_ = g_unix_fd_list_new (); 1875 #line 114 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1876 fd_list = _tmp2_; 1877 #line 115 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1878 _tmp3_ = input; 1879 #line 115 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1880 _tmp4_ = g_unix_input_stream_get_fd (_tmp3_); 1881 #line 115 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1882 _tmp5_ = _tmp4_; 1883 #line 115 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1884 _tmp6_ = g_unix_fd_list_append (fd_list, _tmp5_, &_inner_error_); 1885 #line 115 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1886 _tmp7_ = _tmp6_; 1887 #line 115 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1888 if (_inner_error_ != NULL) { 1889 #line 115 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1890 if (_inner_error_->domain == G_IO_ERROR) { 1891 #line 115 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1892 g_propagate_error (error, _inner_error_); 1893 #line 115 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1894 _g_object_unref0 (fd_list); 1895 #line 115 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1896 _g_object_unref0 (message); 1897 #line 115 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1898 return; 1899 #line 1900 "tracker-bus.c" 1900 } else { 1901 #line 115 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1902 _g_object_unref0 (fd_list); 1903 #line 115 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1904 _g_object_unref0 (message); 1905 #line 115 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1906 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 1907 #line 115 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1908 g_clear_error (&_inner_error_); 1909 #line 115 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1910 return; 1911 #line 1912 "tracker-bus.c" 1912 } 1913 } 1914 #line 115 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1915 _tmp8_ = g_variant_new ("(h)", _tmp7_, NULL); 1916 #line 115 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1917 g_variant_ref_sink (_tmp8_); 1918 #line 115 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1919 _tmp9_ = _tmp8_; 1920 #line 115 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1921 g_dbus_message_set_body (message, _tmp9_); 1922 #line 115 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1923 _g_variant_unref0 (_tmp9_); 1924 #line 116 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1925 g_dbus_message_set_unix_fd_list (message, fd_list); 1926 #line 118 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1927 _tmp10_ = self->priv->bus; 1928 #line 118 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1929 _tmp11_ = G_MAXINT; 1930 #line 118 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1931 _tmp12_ = cancellable; 1932 #line 118 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1933 _tmp13_ = callback; 1934 #line 118 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1935 _tmp13__target = callback_target; 1936 #line 118 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1937 g_dbus_connection_send_message_with_reply (_tmp10_, message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, _tmp11_, NULL, _tmp12_, _tmp13_, _tmp13__target); 1938 #line 112 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1939 _g_object_unref0 (fd_list); 1940 #line 112 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1941 _g_object_unref0 (message); 1942 #line 1943 "tracker-bus.c" 1943 } 1944 1945 1946 static Block3Data* block3_data_ref (Block3Data* _data3_) { 1947 #line 121 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1948 g_atomic_int_inc (&_data3_->_ref_count_); 1949 #line 121 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1950 return _data3_; 1951 #line 1952 "tracker-bus.c" 1952 } 1953 1954 1955 static void block3_data_unref (void * _userdata_) { 1956 Block3Data* _data3_; 1957 _data3_ = (Block3Data*) _userdata_; 1958 #line 121 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1959 if (g_atomic_int_dec_and_test (&_data3_->_ref_count_)) { 1960 #line 1961 "tracker-bus.c" 1961 TrackerBusConnection * self; 1962 #line 121 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1963 self = _data3_->self; 1964 #line 121 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1965 _g_object_unref0 (_data3_->async_res); 1966 #line 121 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1967 _g_main_loop_unref0 (_data3_->loop); 1968 #line 121 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1969 _g_object_unref0 (self); 1970 #line 121 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1971 g_slice_free (Block3Data, _data3_); 1972 #line 1973 "tracker-bus.c" 1973 } 1974 } 1975 1976 1977 static void __lambda5_ (Block3Data* _data3_, GObject* o, GAsyncResult* res) { 1978 TrackerBusConnection * self;
variable 'self' set but not used
(emitted by gcc)
1979 GAsyncResult* _tmp0_; 1980 GAsyncResult* _tmp1_; 1981 #line 127 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1982 self = _data3_->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)

1983 #line 127 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1984 g_return_if_fail (res != NULL); 1985 #line 128 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1986 _tmp0_ = res; 1987 #line 128 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1988 _tmp1_ = _g_object_ref0 (_tmp0_); 1989 #line 128 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1990 _g_object_unref0 (_data3_->async_res); 1991 #line 128 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1992 _data3_->async_res = _tmp1_; 1993 #line 129 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 1994 g_main_loop_quit (_data3_->loop); 1995 #line 1996 "tracker-bus.c" 1996 } 1997 1998 1999 static void ___lambda5__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) { 2000 #line 127 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2001 __lambda5_ (self, source_object, res); 2002 #line 127 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2003 block3_data_unref (self); 2004 #line 2005 "tracker-bus.c" 2005 } 2006 2007 2008 static void tracker_bus_connection_real_update (TrackerSparqlConnection* base, const gchar* sparql, gint priority, GCancellable* cancellable, GError** error) { 2009 TrackerBusConnection * self; 2010 Block3Data* _data3_; 2011 GMainContext* _tmp0_; 2012 GMainContext* context; 2013 GMainLoop* _tmp1_; 2014 const gchar* _tmp2_; 2015 gint _tmp3_; 2016 GCancellable* _tmp4_; 2017 GError * _inner_error_ = NULL; 2018 #line 121 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2019 self = (TrackerBusConnection*) base; 2020 #line 121 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2021 g_return_if_fail (sparql != NULL); 2022 #line 121 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2023 _data3_ = g_slice_new0 (Block3Data); 2024 #line 121 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2025 _data3_->_ref_count_ = 1; 2026 #line 121 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2027 _data3_->self = g_object_ref (self); 2028 #line 123 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2029 _tmp0_ = g_main_context_new (); 2030 #line 123 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2031 context = _tmp0_; 2032 #line 124 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2033 _tmp1_ = g_main_loop_new (context, FALSE); 2034 #line 124 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2035 _data3_->loop = _tmp1_; 2036 #line 125 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2037 g_main_context_push_thread_default (context); 2038 #line 126 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2039 _data3_->async_res = NULL; 2040 #line 127 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2041 _tmp2_ = sparql; 2042 #line 127 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2043 _tmp3_ = priority; 2044 #line 127 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2045 _tmp4_ = cancellable; 2046 #line 127 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2047 tracker_sparql_connection_update_async ((TrackerSparqlConnection*) self, _tmp2_, _tmp3_, _tmp4_, ___lambda5__gasync_ready_callback, block3_data_ref (_data3_)); 2048 #line 131 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2049 g_main_loop_run (_data3_->loop); 2050 #line 132 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2051 g_main_context_pop_thread_default (context); 2052 #line 133 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2053 tracker_sparql_connection_update_finish ((TrackerSparqlConnection*) self, _data3_->async_res, &_inner_error_); 2054 #line 133 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2055 if (_inner_error_ != NULL) { 2056 #line 133 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2057 if (((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == G_IO_ERROR)) || (_inner_error_->domain == G_DBUS_ERROR)) { 2058 #line 133 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2059 g_propagate_error (error, _inner_error_); 2060 #line 133 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2061 _g_main_context_unref0 (context); 2062 #line 133 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2063 block3_data_unref (_data3_); 2064 #line 133 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2065 _data3_ = NULL; 2066 #line 133 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2067 return; 2068 #line 2069 "tracker-bus.c" 2069 } else { 2070 #line 133 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2071 _g_main_context_unref0 (context); 2072 #line 133 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2073 block3_data_unref (_data3_); 2074 #line 133 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2075 _data3_ = NULL; 2076 #line 133 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2077 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 2078 #line 133 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2079 g_clear_error (&_inner_error_); 2080 #line 133 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2081 return; 2082 #line 2083 "tracker-bus.c" 2083 } 2084 } 2085 #line 121 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2086 _g_main_context_unref0 (context); 2087 #line 121 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2088 block3_data_unref (_data3_); 2089 #line 121 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2090 _data3_ = NULL; 2091 #line 2092 "tracker-bus.c" 2092 } 2093 2094 2095 static void tracker_bus_connection_real_update_async_data_free (gpointer _data) { 2096 TrackerBusConnectionUpdateAsyncData* _data_; 2097 _data_ = _data; 2098 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2099 _g_free0 (_data_->sparql); 2100 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2101 _g_object_unref0 (_data_->cancellable); 2102 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2103 _g_object_unref0 (_data_->self); 2104 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2105 g_slice_free (TrackerBusConnectionUpdateAsyncData, _data_); 2106 #line 2107 "tracker-bus.c" 2107 } 2108 2109 2110 static void tracker_bus_connection_real_update_async (TrackerSparqlConnection* base, const gchar* sparql, gint priority, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) { 2111 TrackerBusConnection * self; 2112 TrackerBusConnectionUpdateAsyncData* _data_; 2113 TrackerBusConnection* _tmp0_; 2114 const gchar* _tmp1_; 2115 gchar* _tmp2_; 2116 gint _tmp3_; 2117 GCancellable* _tmp4_; 2118 GCancellable* _tmp5_; 2119 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2120 self = (TrackerBusConnection*) base; 2121 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2122 _data_ = g_slice_new0 (TrackerBusConnectionUpdateAsyncData); 2123 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2124 _data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, tracker_bus_connection_real_update_async); 2125 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2126 g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, tracker_bus_connection_real_update_async_data_free); 2127 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2128 _tmp0_ = _g_object_ref0 (self); 2129 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2130 _data_->self = _tmp0_; 2131 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2132 _tmp1_ = sparql; 2133 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2134 _tmp2_ = g_strdup (_tmp1_); 2135 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2136 _g_free0 (_data_->sparql); 2137 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2138 _data_->sparql = _tmp2_; 2139 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2140 _tmp3_ = priority; 2141 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2142 _data_->priority = _tmp3_; 2143 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2144 _tmp4_ = cancellable; 2145 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2146 _tmp5_ = _g_object_ref0 (_tmp4_); 2147 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2148 _g_object_unref0 (_data_->cancellable); 2149 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2150 _data_->cancellable = _tmp5_; 2151 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2152 tracker_bus_connection_real_update_async_co (_data_); 2153 #line 2154 "tracker-bus.c" 2154 } 2155 2156 2157 static void tracker_bus_connection_real_update_finish (TrackerSparqlConnection* base, GAsyncResult* _res_, GError** error) { 2158 TrackerBusConnectionUpdateAsyncData* _data_;
variable '_data_' set but not used
(emitted by gcc)
2159 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2160 if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) { 2161 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2162 return; 2163 #line 2164 "tracker-bus.c" 2164 } 2165 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2166 _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)

2167 #line 2168 "tracker-bus.c" 2168 } 2169 2170 2171 static Block4Data* block4_data_ref (Block4Data* _data4_) { 2172 #line 136 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2173 g_atomic_int_inc (&_data4_->_ref_count_); 2174 #line 136 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2175 return _data4_; 2176 #line 2177 "tracker-bus.c" 2177 } 2178 2179 2180 static void block4_data_unref (void * _userdata_) { 2181 Block4Data* _data4_; 2182 _data4_ = (Block4Data*) _userdata_; 2183 #line 136 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2184 if (g_atomic_int_dec_and_test (&_data4_->_ref_count_)) { 2185 #line 2186 "tracker-bus.c" 2186 TrackerBusConnection * self; 2187 #line 136 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2188 self = _data4_->self; 2189 #line 136 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2190 _g_object_unref0 (_data4_->dbus_res); 2191 #line 136 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2192 _g_object_unref0 (self); 2193 #line 136 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2194 g_slice_free (Block4Data, _data4_); 2195 #line 2196 "tracker-bus.c" 2196 } 2197 } 2198 2199 2200 static void __lambda4_ (Block4Data* _data4_, GObject* o, GAsyncResult* res) { 2201 TrackerBusConnection * self;
variable 'self' set but not used
(emitted by gcc)
2202 GAsyncResult* _tmp0_; 2203 GAsyncResult* _tmp1_; 2204 gboolean _tmp2_; 2205 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2206 self = _data4_->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)

2207 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2208 g_return_if_fail (res != NULL); 2209 #line 145 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2210 _tmp0_ = res; 2211 #line 145 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2212 _tmp1_ = _g_object_ref0 (_tmp0_); 2213 #line 145 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2214 _g_object_unref0 (_data4_->dbus_res); 2215 #line 145 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2216 _data4_->dbus_res = _tmp1_; 2217 #line 146 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2218 _tmp2_ = _data4_->sent_update; 2219 #line 146 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2220 if (_tmp2_) { 2221 #line 147 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2222 tracker_bus_connection_real_update_async_co (_data4_->_async_data_); 2223 #line 2224 "tracker-bus.c" 2224 } 2225 } 2226 2227 2228 static void ___lambda4__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) { 2229 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2230 __lambda4_ (self, source_object, res); 2231 #line 2232 "tracker-bus.c" 2232 } 2233 2234 2235 static gboolean tracker_bus_connection_real_update_async_co (TrackerBusConnectionUpdateAsyncData* _data_) { 2236 #line 136 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2237 switch (_data_->_state_) { 2238 #line 136 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2239 case 0: 2240 #line 2241 "tracker-bus.c" 2241 goto _state_0; 2242 #line 136 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2243 case 1: 2244 #line 2245 "tracker-bus.c" 2245 goto _state_1; 2246 default: 2247 #line 136 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2248 g_assert_not_reached (); 2249 #line 2250 "tracker-bus.c" 2250 } 2251 _state_0: 2252 #line 136 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2253 _data_->_data4_ = g_slice_new0 (Block4Data); 2254 #line 136 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2255 _data_->_data4_->_ref_count_ = 1; 2256 #line 136 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2257 _data_->_data4_->self = g_object_ref (_data_->self); 2258 #line 136 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2259 _data_->_data4_->_async_data_ = _data_; 2260 #line 139 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2261 _data_->_tmp0_ = NULL; 2262 #line 139 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2263 _data_->_tmp1_ = NULL; 2264 #line 139 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2265 tracker_bus_connection_pipe (_data_->self, &_data_->_tmp0_, &_data_->_tmp1_, &_data_->_inner_error_); 2266 #line 139 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2267 _g_object_unref0 (_data_->input); 2268 #line 139 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2269 _data_->input = _data_->_tmp0_; 2270 #line 139 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2271 _g_object_unref0 (_data_->output); 2272 #line 139 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2273 _data_->output = _data_->_tmp1_; 2274 #line 139 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2275 if (_data_->_inner_error_ != NULL) { 2276 #line 139 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2277 if (((_data_->_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_data_->_inner_error_->domain == G_IO_ERROR)) || (_data_->_inner_error_->domain == G_DBUS_ERROR)) { 2278 #line 139 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2279 g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_); 2280 #line 139 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2281 g_error_free (_data_->_inner_error_); 2282 #line 139 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2283 _g_object_unref0 (_data_->output); 2284 #line 139 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2285 _g_object_unref0 (_data_->input); 2286 #line 139 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2287 block4_data_unref (_data_->_data4_); 2288 #line 139 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2289 _data_->_data4_ = NULL; 2290 #line 139 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2291 if (_data_->_state_ == 0) { 2292 #line 139 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2293 g_simple_async_result_complete_in_idle (_data_->_async_result); 2294 #line 2295 "tracker-bus.c" 2295 } else { 2296 #line 139 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2297 g_simple_async_result_complete (_data_->_async_result); 2298 #line 2299 "tracker-bus.c" 2299 } 2300 #line 139 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2301 g_object_unref (_data_->_async_result); 2302 #line 139 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2303 return FALSE; 2304 #line 2305 "tracker-bus.c" 2305 } else { 2306 #line 139 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2307 _g_object_unref0 (_data_->output); 2308 #line 139 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2309 _g_object_unref0 (_data_->input); 2310 #line 139 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2311 block4_data_unref (_data_->_data4_); 2312 #line 139 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2313 _data_->_data4_ = NULL; 2314 #line 139 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2315 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code); 2316 #line 139 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2317 g_clear_error (&_data_->_inner_error_); 2318 #line 139 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2319 return FALSE; 2320 #line 2321 "tracker-bus.c" 2321 } 2322 } 2323 #line 142 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2324 _data_->_data4_->dbus_res = NULL; 2325 #line 143 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2326 _data_->_data4_->sent_update = FALSE; 2327 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2328 _data_->_tmp3_ = _data_->priority; 2329 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2330 if (_data_->_tmp3_ <= G_PRIORITY_DEFAULT) { 2331 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2332 _data_->_tmp2_ = "Update"; 2333 #line 2334 "tracker-bus.c" 2334 } else { 2335 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2336 _data_->_tmp2_ = "BatchUpdate"; 2337 #line 2338 "tracker-bus.c" 2338 } 2339 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2340 _data_->_tmp4_ = _data_->_tmp2_; 2341 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2342 _data_->_tmp5_ = _data_->input; 2343 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2344 _data_->_tmp6_ = _data_->cancellable; 2345 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2346 tracker_bus_connection_send_update (_data_->self, _data_->_tmp4_, _data_->_tmp5_, _data_->_tmp6_, ___lambda4__gasync_ready_callback, _data_->_data4_, &_data_->_inner_error_); 2347 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2348 if (_data_->_inner_error_ != NULL) { 2349 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2350 if (((_data_->_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_data_->_inner_error_->domain == G_IO_ERROR)) || (_data_->_inner_error_->domain == G_DBUS_ERROR)) { 2351 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2352 g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_); 2353 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2354 g_error_free (_data_->_inner_error_); 2355 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2356 _g_object_unref0 (_data_->output); 2357 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2358 _g_object_unref0 (_data_->input); 2359 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2360 block4_data_unref (_data_->_data4_); 2361 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2362 _data_->_data4_ = NULL; 2363 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2364 if (_data_->_state_ == 0) { 2365 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2366 g_simple_async_result_complete_in_idle (_data_->_async_result); 2367 #line 2368 "tracker-bus.c" 2368 } else { 2369 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2370 g_simple_async_result_complete (_data_->_async_result); 2371 #line 2372 "tracker-bus.c" 2372 } 2373 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2374 g_object_unref (_data_->_async_result); 2375 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2376 return FALSE; 2377 #line 2378 "tracker-bus.c" 2378 } else { 2379 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2380 _g_object_unref0 (_data_->output); 2381 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2382 _g_object_unref0 (_data_->input); 2383 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2384 block4_data_unref (_data_->_data4_); 2385 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2386 _data_->_data4_ = NULL; 2387 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2388 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code); 2389 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2390 g_clear_error (&_data_->_inner_error_); 2391 #line 144 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2392 return FALSE; 2393 #line 2394 "tracker-bus.c" 2394 } 2395 } 2396 #line 152 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2397 _data_->_tmp7_ = _data_->output; 2398 #line 152 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2399 _data_->_tmp8_ = g_data_output_stream_new ((GOutputStream*) _data_->_tmp7_); 2400 #line 152 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2401 _data_->data_stream = _data_->_tmp8_; 2402 #line 153 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2403 _data_->_tmp9_ = _data_->data_stream; 2404 #line 153 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2405 g_data_output_stream_set_byte_order (_data_->_tmp9_, G_DATA_STREAM_BYTE_ORDER_HOST_ENDIAN); 2406 #line 154 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2407 _data_->_tmp10_ = _data_->data_stream; 2408 #line 154 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2409 _data_->_tmp11_ = _data_->sparql; 2410 #line 154 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2411 _data_->_tmp12_ = strlen (_data_->_tmp11_); 2412 #line 154 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2413 _data_->_tmp13_ = _data_->_tmp12_; 2414 #line 154 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2415 g_data_output_stream_put_int32 (_data_->_tmp10_, (gint32) _data_->_tmp13_, NULL, &_data_->_inner_error_); 2416 #line 154 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2417 if (_data_->_inner_error_ != NULL) { 2418 #line 154 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2419 if (((_data_->_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_data_->_inner_error_->domain == G_IO_ERROR)) || (_data_->_inner_error_->domain == G_DBUS_ERROR)) { 2420 #line 154 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2421 g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_); 2422 #line 154 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2423 g_error_free (_data_->_inner_error_); 2424 #line 154 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2425 _g_object_unref0 (_data_->data_stream); 2426 #line 154 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2427 _g_object_unref0 (_data_->output); 2428 #line 154 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2429 _g_object_unref0 (_data_->input); 2430 #line 154 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2431 block4_data_unref (_data_->_data4_); 2432 #line 154 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2433 _data_->_data4_ = NULL; 2434 #line 154 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2435 if (_data_->_state_ == 0) { 2436 #line 154 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2437 g_simple_async_result_complete_in_idle (_data_->_async_result); 2438 #line 2439 "tracker-bus.c" 2439 } else { 2440 #line 154 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2441 g_simple_async_result_complete (_data_->_async_result); 2442 #line 2443 "tracker-bus.c" 2443 } 2444 #line 154 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2445 g_object_unref (_data_->_async_result); 2446 #line 154 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2447 return FALSE; 2448 #line 2449 "tracker-bus.c" 2449 } else { 2450 #line 154 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2451 _g_object_unref0 (_data_->data_stream); 2452 #line 154 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2453 _g_object_unref0 (_data_->output); 2454 #line 154 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2455 _g_object_unref0 (_data_->input); 2456 #line 154 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2457 block4_data_unref (_data_->_data4_); 2458 #line 154 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2459 _data_->_data4_ = NULL; 2460 #line 154 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2461 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code); 2462 #line 154 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2463 g_clear_error (&_data_->_inner_error_); 2464 #line 154 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2465 return FALSE; 2466 #line 2467 "tracker-bus.c" 2467 } 2468 } 2469 #line 155 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2470 _data_->_tmp14_ = _data_->data_stream; 2471 #line 155 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2472 _data_->_tmp15_ = _data_->sparql; 2473 #line 155 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2474 g_data_output_stream_put_string (_data_->_tmp14_, _data_->_tmp15_, NULL, &_data_->_inner_error_); 2475 #line 155 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2476 if (_data_->_inner_error_ != NULL) { 2477 #line 155 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2478 if (((_data_->_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_data_->_inner_error_->domain == G_IO_ERROR)) || (_data_->_inner_error_->domain == G_DBUS_ERROR)) { 2479 #line 155 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2480 g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_); 2481 #line 155 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2482 g_error_free (_data_->_inner_error_); 2483 #line 155 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2484 _g_object_unref0 (_data_->data_stream); 2485 #line 155 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2486 _g_object_unref0 (_data_->output); 2487 #line 155 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2488 _g_object_unref0 (_data_->input); 2489 #line 155 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2490 block4_data_unref (_data_->_data4_); 2491 #line 155 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2492 _data_->_data4_ = NULL; 2493 #line 155 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2494 if (_data_->_state_ == 0) { 2495 #line 155 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2496 g_simple_async_result_complete_in_idle (_data_->_async_result); 2497 #line 2498 "tracker-bus.c" 2498 } else { 2499 #line 155 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2500 g_simple_async_result_complete (_data_->_async_result); 2501 #line 2502 "tracker-bus.c" 2502 } 2503 #line 155 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2504 g_object_unref (_data_->_async_result); 2505 #line 155 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2506 return FALSE; 2507 #line 2508 "tracker-bus.c" 2508 } else { 2509 #line 155 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2510 _g_object_unref0 (_data_->data_stream); 2511 #line 155 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2512 _g_object_unref0 (_data_->output); 2513 #line 155 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2514 _g_object_unref0 (_data_->input); 2515 #line 155 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2516 block4_data_unref (_data_->_data4_); 2517 #line 155 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2518 _data_->_data4_ = NULL; 2519 #line 155 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2520 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code); 2521 #line 155 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2522 g_clear_error (&_data_->_inner_error_); 2523 #line 155 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2524 return FALSE; 2525 #line 2526 "tracker-bus.c" 2526 } 2527 } 2528 #line 156 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2529 _g_object_unref0 (_data_->data_stream); 2530 #line 156 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2531 _data_->data_stream = NULL; 2532 #line 159 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2533 _data_->_data4_->sent_update = TRUE; 2534 #line 160 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2535 _data_->_tmp16_ = _data_->_data4_->dbus_res; 2536 #line 160 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2537 if (_data_->_tmp16_ == NULL) { 2538 #line 161 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2539 _data_->_state_ = 1; 2540 #line 161 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2541 return FALSE; 2542 #line 2543 "tracker-bus.c" 2543 _state_1: 2544 ; 2545 } 2546 #line 164 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2547 _data_->_tmp17_ = _data_->self->priv->bus; 2548 #line 164 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2549 _data_->_tmp18_ = _data_->_data4_->dbus_res; 2550 #line 164 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2551 _data_->_tmp19_ = NULL; 2552 #line 164 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2553 _data_->_tmp19_ = g_dbus_connection_send_message_with_reply_finish (_data_->_tmp17_, _data_->_tmp18_, &_data_->_inner_error_); 2554 #line 164 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2555 _data_->reply = _data_->_tmp19_; 2556 #line 164 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2557 if (_data_->_inner_error_ != NULL) { 2558 #line 164 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2559 if (((_data_->_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_data_->_inner_error_->domain == G_IO_ERROR)) || (_data_->_inner_error_->domain == G_DBUS_ERROR)) { 2560 #line 164 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2561 g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_); 2562 #line 164 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2563 g_error_free (_data_->_inner_error_); 2564 #line 164 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2565 _g_object_unref0 (_data_->data_stream); 2566 #line 164 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2567 _g_object_unref0 (_data_->output); 2568 #line 164 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2569 _g_object_unref0 (_data_->input); 2570 #line 164 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2571 block4_data_unref (_data_->_data4_); 2572 #line 164 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2573 _data_->_data4_ = NULL; 2574 #line 164 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2575 if (_data_->_state_ == 0) { 2576 #line 164 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2577 g_simple_async_result_complete_in_idle (_data_->_async_result); 2578 #line 2579 "tracker-bus.c" 2579 } else { 2580 #line 164 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2581 g_simple_async_result_complete (_data_->_async_result); 2582 #line 2583 "tracker-bus.c" 2583 } 2584 #line 164 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2585 g_object_unref (_data_->_async_result); 2586 #line 164 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2587 return FALSE; 2588 #line 2589 "tracker-bus.c" 2589 } else { 2590 #line 164 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2591 _g_object_unref0 (_data_->data_stream); 2592 #line 164 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2593 _g_object_unref0 (_data_->output); 2594 #line 164 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2595 _g_object_unref0 (_data_->input); 2596 #line 164 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2597 block4_data_unref (_data_->_data4_); 2598 #line 164 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2599 _data_->_data4_ = NULL; 2600 #line 164 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2601 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code); 2602 #line 164 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2603 g_clear_error (&_data_->_inner_error_); 2604 #line 164 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2605 return FALSE; 2606 #line 2607 "tracker-bus.c" 2607 } 2608 } 2609 #line 165 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2610 _data_->_tmp20_ = _data_->reply; 2611 #line 165 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2612 tracker_bus_connection_handle_error_reply (_data_->self, _data_->_tmp20_, &_data_->_inner_error_); 2613 #line 165 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2614 if (_data_->_inner_error_ != NULL) { 2615 #line 165 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2616 if (((_data_->_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_data_->_inner_error_->domain == G_IO_ERROR)) || (_data_->_inner_error_->domain == G_DBUS_ERROR)) { 2617 #line 165 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2618 g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_); 2619 #line 165 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2620 g_error_free (_data_->_inner_error_); 2621 #line 165 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2622 _g_object_unref0 (_data_->reply); 2623 #line 165 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2624 _g_object_unref0 (_data_->data_stream); 2625 #line 165 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2626 _g_object_unref0 (_data_->output); 2627 #line 165 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2628 _g_object_unref0 (_data_->input); 2629 #line 165 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2630 block4_data_unref (_data_->_data4_); 2631 #line 165 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2632 _data_->_data4_ = NULL; 2633 #line 165 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2634 if (_data_->_state_ == 0) { 2635 #line 165 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2636 g_simple_async_result_complete_in_idle (_data_->_async_result); 2637 #line 2638 "tracker-bus.c" 2638 } else { 2639 #line 165 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2640 g_simple_async_result_complete (_data_->_async_result); 2641 #line 2642 "tracker-bus.c" 2642 } 2643 #line 165 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2644 g_object_unref (_data_->_async_result); 2645 #line 165 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2646 return FALSE; 2647 #line 2648 "tracker-bus.c" 2648 } else { 2649 #line 165 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2650 _g_object_unref0 (_data_->reply); 2651 #line 165 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2652 _g_object_unref0 (_data_->data_stream); 2653 #line 165 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2654 _g_object_unref0 (_data_->output); 2655 #line 165 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2656 _g_object_unref0 (_data_->input); 2657 #line 165 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2658 block4_data_unref (_data_->_data4_); 2659 #line 165 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2660 _data_->_data4_ = NULL; 2661 #line 165 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2662 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code); 2663 #line 165 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2664 g_clear_error (&_data_->_inner_error_); 2665 #line 165 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2666 return FALSE; 2667 #line 2668 "tracker-bus.c" 2668 } 2669 } 2670 #line 136 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2671 _g_object_unref0 (_data_->reply); 2672 #line 136 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2673 _g_object_unref0 (_data_->data_stream); 2674 #line 136 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2675 _g_object_unref0 (_data_->output); 2676 #line 136 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2677 _g_object_unref0 (_data_->input); 2678 #line 136 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2679 block4_data_unref (_data_->_data4_); 2680 #line 136 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2681 _data_->_data4_ = NULL; 2682 #line 136 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2683 if (_data_->_state_ == 0) { 2684 #line 136 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2685 g_simple_async_result_complete_in_idle (_data_->_async_result); 2686 #line 2687 "tracker-bus.c" 2687 } else { 2688 #line 136 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2689 g_simple_async_result_complete (_data_->_async_result); 2690 #line 2691 "tracker-bus.c" 2691 } 2692 #line 136 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2693 g_object_unref (_data_->_async_result); 2694 #line 136 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2695 return FALSE; 2696 #line 2697 "tracker-bus.c" 2697 } 2698 2699 2700 static void tracker_bus_connection_real_update_array_async_data_free (gpointer _data) { 2701 TrackerBusConnectionUpdateArrayAsyncData* _data_; 2702 _data_ = _data; 2703 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2704 _g_object_unref0 (_data_->cancellable); 2705 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2706 _g_ptr_array_unref0 (_data_->result); 2707 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2708 _g_object_unref0 (_data_->self); 2709 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2710 g_slice_free (TrackerBusConnectionUpdateArrayAsyncData, _data_); 2711 #line 2712 "tracker-bus.c" 2712 } 2713 2714 2715 static void tracker_bus_connection_real_update_array_async (TrackerSparqlConnection* base, gchar** sparql, int sparql_length1, gint priority, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) { 2716 TrackerBusConnection * self; 2717 TrackerBusConnectionUpdateArrayAsyncData* _data_; 2718 TrackerBusConnection* _tmp0_; 2719 gchar** _tmp1_; 2720 gint _tmp1__length1; 2721 gint _tmp2_; 2722 GCancellable* _tmp3_; 2723 GCancellable* _tmp4_; 2724 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2725 self = (TrackerBusConnection*) base; 2726 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2727 _data_ = g_slice_new0 (TrackerBusConnectionUpdateArrayAsyncData); 2728 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2729 _data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, tracker_bus_connection_real_update_array_async); 2730 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2731 g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, tracker_bus_connection_real_update_array_async_data_free); 2732 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2733 _tmp0_ = _g_object_ref0 (self); 2734 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2735 _data_->self = _tmp0_; 2736 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2737 _tmp1_ = sparql; 2738 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2739 _tmp1__length1 = sparql_length1; 2740 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2741 _data_->sparql = _tmp1_; 2742 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2743 _data_->sparql_length1 = _tmp1__length1; 2744 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2745 _tmp2_ = priority; 2746 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2747 _data_->priority = _tmp2_; 2748 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2749 _tmp3_ = cancellable; 2750 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2751 _tmp4_ = _g_object_ref0 (_tmp3_); 2752 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2753 _g_object_unref0 (_data_->cancellable); 2754 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2755 _data_->cancellable = _tmp4_; 2756 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2757 tracker_bus_connection_real_update_array_async_co (_data_); 2758 #line 2759 "tracker-bus.c" 2759 } 2760 2761 2762 static GPtrArray* tracker_bus_connection_real_update_array_finish (TrackerSparqlConnection* base, GAsyncResult* _res_, GError** error) { 2763 GPtrArray* result; 2764 TrackerBusConnectionUpdateArrayAsyncData* _data_; 2765 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2766 if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) { 2767 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2768 return NULL; 2769 #line 2770 "tracker-bus.c" 2770 } 2771 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2772 _data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_)); 2773 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2774 result = _data_->result; 2775 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2776 _data_->result = NULL; 2777 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2778 return result; 2779 #line 2780 "tracker-bus.c" 2780 } 2781 2782 2783 static Block5Data* block5_data_ref (Block5Data* _data5_) { 2784 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2785 g_atomic_int_inc (&_data5_->_ref_count_); 2786 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2787 return _data5_; 2788 #line 2789 "tracker-bus.c" 2789 } 2790 2791 2792 static void block5_data_unref (void * _userdata_) { 2793 Block5Data* _data5_; 2794 _data5_ = (Block5Data*) _userdata_; 2795 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2796 if (g_atomic_int_dec_and_test (&_data5_->_ref_count_)) { 2797 #line 2798 "tracker-bus.c" 2798 TrackerBusConnection * self; 2799 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2800 self = _data5_->self; 2801 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2802 _g_object_unref0 (_data5_->dbus_res); 2803 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2804 _g_object_unref0 (self); 2805 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2806 g_slice_free (Block5Data, _data5_); 2807 #line 2808 "tracker-bus.c" 2808 } 2809 } 2810 2811 2812 static void __lambda6_ (Block5Data* _data5_, GObject* o, GAsyncResult* res) { 2813 TrackerBusConnection * self;
variable 'self' set but not used
(emitted by gcc)
2814 GAsyncResult* _tmp0_; 2815 GAsyncResult* _tmp1_; 2816 gboolean _tmp2_; 2817 #line 176 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2818 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)

2819 #line 176 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2820 g_return_if_fail (res != NULL); 2821 #line 177 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2822 _tmp0_ = res; 2823 #line 177 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2824 _tmp1_ = _g_object_ref0 (_tmp0_); 2825 #line 177 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2826 _g_object_unref0 (_data5_->dbus_res); 2827 #line 177 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2828 _data5_->dbus_res = _tmp1_; 2829 #line 178 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2830 _tmp2_ = _data5_->sent_update; 2831 #line 178 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2832 if (_tmp2_) { 2833 #line 179 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2834 tracker_bus_connection_real_update_array_async_co (_data5_->_async_data_); 2835 #line 2836 "tracker-bus.c" 2836 } 2837 } 2838 2839 2840 static void ___lambda6__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) { 2841 #line 176 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2842 __lambda6_ (self, source_object, res); 2843 #line 2844 "tracker-bus.c" 2844 } 2845 2846 2847 static void _g_error_free0_ (gpointer var) { 2848 #line 203 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2849 (var == NULL) ? NULL : (var = (g_error_free (var), NULL)); 2850 #line 2851 "tracker-bus.c" 2851 } 2852 2853 2854 static gboolean tracker_bus_connection_real_update_array_async_co (TrackerBusConnectionUpdateArrayAsyncData* _data_) { 2855 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2856 switch (_data_->_state_) { 2857 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2858 case 0: 2859 #line 2860 "tracker-bus.c" 2860 goto _state_0; 2861 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2862 case 1: 2863 #line 2864 "tracker-bus.c" 2864 goto _state_1; 2865 default: 2866 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2867 g_assert_not_reached (); 2868 #line 2869 "tracker-bus.c" 2869 } 2870 _state_0: 2871 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2872 _data_->_data5_ = g_slice_new0 (Block5Data); 2873 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2874 _data_->_data5_->_ref_count_ = 1; 2875 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2876 _data_->_data5_->self = g_object_ref (_data_->self); 2877 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2878 _data_->_data5_->_async_data_ = _data_; 2879 #line 171 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2880 _data_->_tmp0_ = NULL; 2881 #line 171 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2882 _data_->_tmp1_ = NULL; 2883 #line 171 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2884 tracker_bus_connection_pipe (_data_->self, &_data_->_tmp0_, &_data_->_tmp1_, &_data_->_inner_error_); 2885 #line 171 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2886 _g_object_unref0 (_data_->input); 2887 #line 171 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2888 _data_->input = _data_->_tmp0_; 2889 #line 171 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2890 _g_object_unref0 (_data_->output); 2891 #line 171 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2892 _data_->output = _data_->_tmp1_; 2893 #line 171 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2894 if (_data_->_inner_error_ != NULL) { 2895 #line 171 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2896 if (((_data_->_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_data_->_inner_error_->domain == G_IO_ERROR)) || (_data_->_inner_error_->domain == G_DBUS_ERROR)) { 2897 #line 171 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2898 g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_); 2899 #line 171 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2900 g_error_free (_data_->_inner_error_); 2901 #line 171 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2902 _g_object_unref0 (_data_->output); 2903 #line 171 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2904 _g_object_unref0 (_data_->input); 2905 #line 171 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2906 block5_data_unref (_data_->_data5_); 2907 #line 171 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2908 _data_->_data5_ = NULL; 2909 #line 171 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2910 if (_data_->_state_ == 0) { 2911 #line 171 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2912 g_simple_async_result_complete_in_idle (_data_->_async_result); 2913 #line 2914 "tracker-bus.c" 2914 } else { 2915 #line 171 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2916 g_simple_async_result_complete (_data_->_async_result); 2917 #line 2918 "tracker-bus.c" 2918 } 2919 #line 171 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2920 g_object_unref (_data_->_async_result); 2921 #line 171 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2922 return FALSE; 2923 #line 2924 "tracker-bus.c" 2924 } else { 2925 #line 171 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2926 _g_object_unref0 (_data_->output); 2927 #line 171 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2928 _g_object_unref0 (_data_->input); 2929 #line 171 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2930 block5_data_unref (_data_->_data5_); 2931 #line 171 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2932 _data_->_data5_ = NULL; 2933 #line 171 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2934 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code); 2935 #line 171 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2936 g_clear_error (&_data_->_inner_error_); 2937 #line 171 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2938 return FALSE; 2939 #line 2940 "tracker-bus.c" 2940 } 2941 } 2942 #line 174 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2943 _data_->_data5_->dbus_res = NULL; 2944 #line 175 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2945 _data_->_data5_->sent_update = FALSE; 2946 #line 176 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2947 _data_->_tmp2_ = _data_->input; 2948 #line 176 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2949 _data_->_tmp3_ = _data_->cancellable; 2950 #line 176 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2951 tracker_bus_connection_send_update (_data_->self, "UpdateArray", _data_->_tmp2_, _data_->_tmp3_, ___lambda6__gasync_ready_callback, _data_->_data5_, &_data_->_inner_error_); 2952 #line 176 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2953 if (_data_->_inner_error_ != NULL) { 2954 #line 176 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2955 if (((_data_->_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_data_->_inner_error_->domain == G_IO_ERROR)) || (_data_->_inner_error_->domain == G_DBUS_ERROR)) { 2956 #line 176 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2957 g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_); 2958 #line 176 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2959 g_error_free (_data_->_inner_error_); 2960 #line 176 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2961 _g_object_unref0 (_data_->output); 2962 #line 176 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2963 _g_object_unref0 (_data_->input); 2964 #line 176 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2965 block5_data_unref (_data_->_data5_); 2966 #line 176 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2967 _data_->_data5_ = NULL; 2968 #line 176 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2969 if (_data_->_state_ == 0) { 2970 #line 176 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2971 g_simple_async_result_complete_in_idle (_data_->_async_result); 2972 #line 2973 "tracker-bus.c" 2973 } else { 2974 #line 176 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2975 g_simple_async_result_complete (_data_->_async_result); 2976 #line 2977 "tracker-bus.c" 2977 } 2978 #line 176 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2979 g_object_unref (_data_->_async_result); 2980 #line 176 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2981 return FALSE; 2982 #line 2983 "tracker-bus.c" 2983 } else { 2984 #line 176 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2985 _g_object_unref0 (_data_->output); 2986 #line 176 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2987 _g_object_unref0 (_data_->input); 2988 #line 176 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2989 block5_data_unref (_data_->_data5_); 2990 #line 176 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2991 _data_->_data5_ = NULL; 2992 #line 176 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2993 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code); 2994 #line 176 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2995 g_clear_error (&_data_->_inner_error_); 2996 #line 176 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 2997 return FALSE; 2998 #line 2999 "tracker-bus.c" 2999 } 3000 } 3001 #line 184 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3002 _data_->_tmp4_ = _data_->output; 3003 #line 184 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3004 _data_->_tmp5_ = g_data_output_stream_new ((GOutputStream*) _data_->_tmp4_); 3005 #line 184 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3006 _data_->data_stream = _data_->_tmp5_; 3007 #line 185 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3008 _data_->_tmp6_ = _data_->data_stream; 3009 #line 185 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3010 g_data_output_stream_set_byte_order (_data_->_tmp6_, G_DATA_STREAM_BYTE_ORDER_HOST_ENDIAN); 3011 #line 186 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3012 _data_->_tmp7_ = _data_->data_stream; 3013 #line 186 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3014 _data_->_tmp8_ = _data_->sparql; 3015 #line 186 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3016 _data_->_tmp8__length1 = _data_->sparql_length1; 3017 #line 186 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3018 g_data_output_stream_put_int32 (_data_->_tmp7_, (gint32) _data_->_tmp8__length1, NULL, &_data_->_inner_error_); 3019 #line 186 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3020 if (_data_->_inner_error_ != NULL) { 3021 #line 186 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3022 if (((_data_->_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_data_->_inner_error_->domain == G_IO_ERROR)) || (_data_->_inner_error_->domain == G_DBUS_ERROR)) { 3023 #line 186 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3024 g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_); 3025 #line 186 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3026 g_error_free (_data_->_inner_error_); 3027 #line 186 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3028 _g_object_unref0 (_data_->data_stream); 3029 #line 186 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3030 _g_object_unref0 (_data_->output); 3031 #line 186 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3032 _g_object_unref0 (_data_->input); 3033 #line 186 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3034 block5_data_unref (_data_->_data5_); 3035 #line 186 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3036 _data_->_data5_ = NULL; 3037 #line 186 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3038 if (_data_->_state_ == 0) { 3039 #line 186 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3040 g_simple_async_result_complete_in_idle (_data_->_async_result); 3041 #line 3042 "tracker-bus.c" 3042 } else { 3043 #line 186 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3044 g_simple_async_result_complete (_data_->_async_result); 3045 #line 3046 "tracker-bus.c" 3046 } 3047 #line 186 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3048 g_object_unref (_data_->_async_result); 3049 #line 186 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3050 return FALSE; 3051 #line 3052 "tracker-bus.c" 3052 } else { 3053 #line 186 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3054 _g_object_unref0 (_data_->data_stream); 3055 #line 186 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3056 _g_object_unref0 (_data_->output); 3057 #line 186 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3058 _g_object_unref0 (_data_->input); 3059 #line 186 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3060 block5_data_unref (_data_->_data5_); 3061 #line 186 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3062 _data_->_data5_ = NULL; 3063 #line 186 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3064 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code); 3065 #line 186 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3066 g_clear_error (&_data_->_inner_error_); 3067 #line 186 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3068 return FALSE; 3069 #line 3070 "tracker-bus.c" 3070 } 3071 } 3072 { 3073 #line 187 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3074 _data_->i = 0; 3075 #line 3076 "tracker-bus.c" 3076 { 3077 #line 187 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3078 _data_->_tmp9_ = TRUE; 3079 #line 187 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3080 while (TRUE) { 3081 #line 187 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3082 _data_->_tmp10_ = _data_->_tmp9_; 3083 #line 187 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3084 if (!_data_->_tmp10_) { 3085 #line 187 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3086 _data_->_tmp11_ = _data_->i; 3087 #line 187 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3088 _data_->i = _data_->_tmp11_ + 1; 3089 #line 3090 "tracker-bus.c" 3090 } 3091 #line 187 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3092 _data_->_tmp9_ = FALSE; 3093 #line 187 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3094 _data_->_tmp12_ = _data_->i; 3095 #line 187 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3096 _data_->_tmp13_ = _data_->sparql; 3097 #line 187 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3098 _data_->_tmp13__length1 = _data_->sparql_length1; 3099 #line 187 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3100 if (!(_data_->_tmp12_ < _data_->_tmp13__length1)) { 3101 #line 187 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3102 break; 3103 #line 3104 "tracker-bus.c" 3104 } 3105 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3106 _data_->_tmp14_ = _data_->data_stream; 3107 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3108 _data_->_tmp15_ = _data_->sparql; 3109 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3110 _data_->_tmp15__length1 = _data_->sparql_length1; 3111 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3112 _data_->_tmp16_ = _data_->i; 3113 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3114 _data_->_tmp17_ = _data_->_tmp15_[_data_->_tmp16_]; 3115 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3116 _data_->_tmp18_ = strlen (_data_->_tmp17_); 3117 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3118 _data_->_tmp19_ = _data_->_tmp18_; 3119 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3120 g_data_output_stream_put_int32 (_data_->_tmp14_, (gint32) _data_->_tmp19_, NULL, &_data_->_inner_error_); 3121 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3122 if (_data_->_inner_error_ != NULL) { 3123 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3124 if (((_data_->_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_data_->_inner_error_->domain == G_IO_ERROR)) || (_data_->_inner_error_->domain == G_DBUS_ERROR)) { 3125 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3126 g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_); 3127 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3128 g_error_free (_data_->_inner_error_); 3129 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3130 _g_object_unref0 (_data_->data_stream); 3131 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3132 _g_object_unref0 (_data_->output); 3133 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3134 _g_object_unref0 (_data_->input); 3135 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3136 block5_data_unref (_data_->_data5_); 3137 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3138 _data_->_data5_ = NULL; 3139 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3140 if (_data_->_state_ == 0) { 3141 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3142 g_simple_async_result_complete_in_idle (_data_->_async_result); 3143 #line 3144 "tracker-bus.c" 3144 } else { 3145 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3146 g_simple_async_result_complete (_data_->_async_result); 3147 #line 3148 "tracker-bus.c" 3148 } 3149 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3150 g_object_unref (_data_->_async_result); 3151 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3152 return FALSE; 3153 #line 3154 "tracker-bus.c" 3154 } else { 3155 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3156 _g_object_unref0 (_data_->data_stream); 3157 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3158 _g_object_unref0 (_data_->output); 3159 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3160 _g_object_unref0 (_data_->input); 3161 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3162 block5_data_unref (_data_->_data5_); 3163 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3164 _data_->_data5_ = NULL; 3165 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3166 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code); 3167 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3168 g_clear_error (&_data_->_inner_error_); 3169 #line 188 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3170 return FALSE; 3171 #line 3172 "tracker-bus.c" 3172 } 3173 } 3174 #line 189 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3175 _data_->_tmp20_ = _data_->data_stream; 3176 #line 189 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3177 _data_->_tmp21_ = _data_->sparql; 3178 #line 189 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3179 _data_->_tmp21__length1 = _data_->sparql_length1; 3180 #line 189 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3181 _data_->_tmp22_ = _data_->i; 3182 #line 189 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3183 _data_->_tmp23_ = _data_->_tmp21_[_data_->_tmp22_]; 3184 #line 189 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3185 g_data_output_stream_put_string (_data_->_tmp20_, _data_->_tmp23_, NULL, &_data_->_inner_error_); 3186 #line 189 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3187 if (_data_->_inner_error_ != NULL) { 3188 #line 189 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3189 if (((_data_->_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_data_->_inner_error_->domain == G_IO_ERROR)) || (_data_->_inner_error_->domain == G_DBUS_ERROR)) { 3190 #line 189 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3191 g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_); 3192 #line 189 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3193 g_error_free (_data_->_inner_error_); 3194 #line 189 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3195 _g_object_unref0 (_data_->data_stream); 3196 #line 189 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3197 _g_object_unref0 (_data_->output); 3198 #line 189 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3199 _g_object_unref0 (_data_->input); 3200 #line 189 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3201 block5_data_unref (_data_->_data5_); 3202 #line 189 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3203 _data_->_data5_ = NULL; 3204 #line 189 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3205 if (_data_->_state_ == 0) { 3206 #line 189 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3207 g_simple_async_result_complete_in_idle (_data_->_async_result); 3208 #line 3209 "tracker-bus.c" 3209 } else { 3210 #line 189 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3211 g_simple_async_result_complete (_data_->_async_result); 3212 #line 3213 "tracker-bus.c" 3213 } 3214 #line 189 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3215 g_object_unref (_data_->_async_result); 3216 #line 189 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3217 return FALSE; 3218 #line 3219 "tracker-bus.c" 3219 } else { 3220 #line 189 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3221 _g_object_unref0 (_data_->data_stream); 3222 #line 189 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3223 _g_object_unref0 (_data_->output); 3224 #line 189 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3225 _g_object_unref0 (_data_->input); 3226 #line 189 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3227 block5_data_unref (_data_->_data5_); 3228 #line 189 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3229 _data_->_data5_ = NULL; 3230 #line 189 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3231 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code); 3232 #line 189 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3233 g_clear_error (&_data_->_inner_error_); 3234 #line 189 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3235 return FALSE; 3236 #line 3237 "tracker-bus.c" 3237 } 3238 } 3239 } 3240 } 3241 } 3242 #line 191 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3243 _g_object_unref0 (_data_->data_stream); 3244 #line 191 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3245 _data_->data_stream = NULL; 3246 #line 194 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3247 _data_->_data5_->sent_update = TRUE; 3248 #line 195 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3249 _data_->_tmp24_ = _data_->_data5_->dbus_res; 3250 #line 195 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3251 if (_data_->_tmp24_ == NULL) { 3252 #line 196 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3253 _data_->_state_ = 1; 3254 #line 196 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3255 return FALSE; 3256 #line 3257 "tracker-bus.c" 3257 _state_1: 3258 ; 3259 } 3260 #line 199 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3261 _data_->_tmp25_ = _data_->self->priv->bus; 3262 #line 199 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3263 _data_->_tmp26_ = _data_->_data5_->dbus_res; 3264 #line 199 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3265 _data_->_tmp27_ = NULL; 3266 #line 199 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3267 _data_->_tmp27_ = g_dbus_connection_send_message_with_reply_finish (_data_->_tmp25_, _data_->_tmp26_, &_data_->_inner_error_); 3268 #line 199 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3269 _data_->reply = _data_->_tmp27_; 3270 #line 199 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3271 if (_data_->_inner_error_ != NULL) { 3272 #line 199 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3273 if (((_data_->_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_data_->_inner_error_->domain == G_IO_ERROR)) || (_data_->_inner_error_->domain == G_DBUS_ERROR)) { 3274 #line 199 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3275 g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_); 3276 #line 199 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3277 g_error_free (_data_->_inner_error_); 3278 #line 199 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3279 _g_object_unref0 (_data_->data_stream); 3280 #line 199 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3281 _g_object_unref0 (_data_->output); 3282 #line 199 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3283 _g_object_unref0 (_data_->input); 3284 #line 199 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3285 block5_data_unref (_data_->_data5_); 3286 #line 199 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3287 _data_->_data5_ = NULL; 3288 #line 199 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3289 if (_data_->_state_ == 0) { 3290 #line 199 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3291 g_simple_async_result_complete_in_idle (_data_->_async_result); 3292 #line 3293 "tracker-bus.c" 3293 } else { 3294 #line 199 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3295 g_simple_async_result_complete (_data_->_async_result); 3296 #line 3297 "tracker-bus.c" 3297 } 3298 #line 199 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3299 g_object_unref (_data_->_async_result); 3300 #line 199 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3301 return FALSE; 3302 #line 3303 "tracker-bus.c" 3303 } else { 3304 #line 199 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3305 _g_object_unref0 (_data_->data_stream); 3306 #line 199 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3307 _g_object_unref0 (_data_->output); 3308 #line 199 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3309 _g_object_unref0 (_data_->input); 3310 #line 199 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3311 block5_data_unref (_data_->_data5_); 3312 #line 199 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3313 _data_->_data5_ = NULL; 3314 #line 199 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3315 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code); 3316 #line 199 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3317 g_clear_error (&_data_->_inner_error_); 3318 #line 199 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3319 return FALSE; 3320 #line 3321 "tracker-bus.c" 3321 } 3322 } 3323 #line 200 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3324 _data_->_tmp28_ = _data_->reply; 3325 #line 200 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3326 tracker_bus_connection_handle_error_reply (_data_->self, _data_->_tmp28_, &_data_->_inner_error_); 3327 #line 200 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3328 if (_data_->_inner_error_ != NULL) { 3329 #line 200 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3330 if (((_data_->_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_data_->_inner_error_->domain == G_IO_ERROR)) || (_data_->_inner_error_->domain == G_DBUS_ERROR)) { 3331 #line 200 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3332 g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_); 3333 #line 200 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3334 g_error_free (_data_->_inner_error_); 3335 #line 200 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3336 _g_object_unref0 (_data_->reply); 3337 #line 200 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3338 _g_object_unref0 (_data_->data_stream); 3339 #line 200 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3340 _g_object_unref0 (_data_->output); 3341 #line 200 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3342 _g_object_unref0 (_data_->input); 3343 #line 200 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3344 block5_data_unref (_data_->_data5_); 3345 #line 200 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3346 _data_->_data5_ = NULL; 3347 #line 200 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3348 if (_data_->_state_ == 0) { 3349 #line 200 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3350 g_simple_async_result_complete_in_idle (_data_->_async_result); 3351 #line 3352 "tracker-bus.c" 3352 } else { 3353 #line 200 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3354 g_simple_async_result_complete (_data_->_async_result); 3355 #line 3356 "tracker-bus.c" 3356 } 3357 #line 200 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3358 g_object_unref (_data_->_async_result); 3359 #line 200 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3360 return FALSE; 3361 #line 3362 "tracker-bus.c" 3362 } else { 3363 #line 200 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3364 _g_object_unref0 (_data_->reply); 3365 #line 200 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3366 _g_object_unref0 (_data_->data_stream); 3367 #line 200 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3368 _g_object_unref0 (_data_->output); 3369 #line 200 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3370 _g_object_unref0 (_data_->input); 3371 #line 200 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3372 block5_data_unref (_data_->_data5_); 3373 #line 200 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3374 _data_->_data5_ = NULL; 3375 #line 200 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3376 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code); 3377 #line 200 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3378 g_clear_error (&_data_->_inner_error_); 3379 #line 200 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3380 return FALSE; 3381 #line 3382 "tracker-bus.c" 3382 } 3383 } 3384 #line 203 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3385 _data_->_tmp29_ = g_ptr_array_new_with_free_func (_g_error_free0_); 3386 #line 203 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3387 _data_->_result_ = _data_->_tmp29_; 3388 #line 205 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3389 _data_->_tmp30_ = _data_->reply; 3390 #line 205 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3391 _data_->_tmp31_ = NULL; 3392 #line 205 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3393 _data_->_tmp31_ = g_dbus_message_get_body (_data_->_tmp30_); 3394 #line 205 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3395 _data_->_tmp32_ = NULL; 3396 #line 205 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3397 _data_->_tmp32_ = g_variant_get_child_value (_data_->_tmp31_, (gsize) 0); 3398 #line 205 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3399 _g_variant_unref0 (_data_->resultv); 3400 #line 205 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3401 _data_->resultv = _data_->_tmp32_; 3402 #line 206 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3403 _data_->_tmp33_ = _data_->resultv; 3404 #line 206 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3405 _data_->_tmp34_ = NULL; 3406 #line 206 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3407 _data_->_tmp34_ = g_variant_iter_new (_data_->_tmp33_); 3408 #line 206 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3409 _data_->iter = _data_->_tmp34_; 3410 #line 208 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3411 while (TRUE) { 3412 #line 208 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3413 _data_->_tmp35_ = _data_->iter; 3414 #line 208 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3415 _data_->_tmp36_ = FALSE; 3416 #line 208 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3417 _data_->_tmp36_ = g_variant_iter_next (_data_->_tmp35_, "s", &_data_->code, NULL); 3418 #line 208 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3419 if (!_data_->_tmp36_) { 3420 #line 208 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3421 break; 3422 #line 3423 "tracker-bus.c" 3423 } 3424 #line 209 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3425 _data_->_tmp37_ = _data_->iter; 3426 #line 209 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3427 _data_->_tmp38_ = FALSE; 3428 #line 209 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3429 _data_->_tmp38_ = g_variant_iter_next (_data_->_tmp37_, "s", &_data_->message, NULL); 3430 #line 209 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3431 if (_data_->_tmp38_) { 3432 #line 210 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3433 _data_->_tmp40_ = _data_->code; 3434 #line 210 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3435 if (g_strcmp0 (_data_->_tmp40_, "") != 0) { 3436 #line 210 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3437 _data_->_tmp41_ = _data_->message; 3438 #line 210 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3439 _data_->_tmp39_ = g_strcmp0 (_data_->_tmp41_, "") != 0; 3440 #line 3441 "tracker-bus.c" 3441 } else { 3442 #line 210 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3443 _data_->_tmp39_ = FALSE; 3444 #line 3445 "tracker-bus.c" 3445 } 3446 #line 210 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3447 _data_->_tmp42_ = _data_->_tmp39_; 3448 #line 210 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3449 if (_data_->_tmp42_) { 3450 #line 211 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3451 _data_->_tmp43_ = _data_->_result_; 3452 #line 211 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3453 _data_->_tmp44_ = _data_->message; 3454 #line 211 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3455 _data_->_tmp45_ = g_error_new_literal (TRACKER_SPARQL_ERROR, TRACKER_SPARQL_ERROR_INTERNAL, _data_->_tmp44_); 3456 #line 211 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3457 g_ptr_array_add (_data_->_tmp43_, _data_->_tmp45_); 3458 #line 3459 "tracker-bus.c" 3459 } else { 3460 #line 213 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3461 _data_->_tmp46_ = _data_->_result_; 3462 #line 213 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3463 g_ptr_array_add (_data_->_tmp46_, NULL); 3464 #line 3465 "tracker-bus.c" 3465 } 3466 #line 216 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3467 _g_free0 (_data_->message); 3468 #line 216 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3469 _data_->message = NULL; 3470 #line 3471 "tracker-bus.c" 3471 } 3472 #line 219 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3473 _g_free0 (_data_->code); 3474 #line 219 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3475 _data_->code = NULL; 3476 #line 3477 "tracker-bus.c" 3477 } 3478 #line 221 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3479 _data_->result = _data_->_result_; 3480 #line 221 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3481 _g_free0 (_data_->message); 3482 #line 221 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3483 _g_free0 (_data_->code); 3484 #line 221 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3485 _g_variant_iter_free0 (_data_->iter); 3486 #line 221 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3487 _g_variant_unref0 (_data_->resultv); 3488 #line 221 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3489 _g_object_unref0 (_data_->reply); 3490 #line 221 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3491 _g_object_unref0 (_data_->data_stream); 3492 #line 221 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3493 _g_object_unref0 (_data_->output); 3494 #line 221 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3495 _g_object_unref0 (_data_->input); 3496 #line 221 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3497 block5_data_unref (_data_->_data5_); 3498 #line 221 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3499 _data_->_data5_ = NULL; 3500 #line 221 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3501 if (_data_->_state_ == 0) { 3502 #line 221 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3503 g_simple_async_result_complete_in_idle (_data_->_async_result); 3504 #line 3505 "tracker-bus.c" 3505 } else { 3506 #line 221 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3507 g_simple_async_result_complete (_data_->_async_result); 3508 #line 3509 "tracker-bus.c" 3509 } 3510 #line 221 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3511 g_object_unref (_data_->_async_result); 3512 #line 221 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3513 return FALSE; 3514 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3515 _g_free0 (_data_->message); 3516 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3517 _g_free0 (_data_->code); 3518 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3519 _g_variant_iter_free0 (_data_->iter); 3520 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3521 _g_variant_unref0 (_data_->resultv); 3522 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3523 _g_ptr_array_unref0 (_data_->_result_); 3524 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3525 _g_object_unref0 (_data_->reply); 3526 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3527 _g_object_unref0 (_data_->data_stream); 3528 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3529 _g_object_unref0 (_data_->output); 3530 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3531 _g_object_unref0 (_data_->input); 3532 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3533 block5_data_unref (_data_->_data5_); 3534 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3535 _data_->_data5_ = NULL; 3536 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3537 if (_data_->_state_ == 0) { 3538 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3539 g_simple_async_result_complete_in_idle (_data_->_async_result); 3540 #line 3541 "tracker-bus.c" 3541 } else { 3542 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3543 g_simple_async_result_complete (_data_->_async_result); 3544 #line 3545 "tracker-bus.c" 3545 } 3546 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3547 g_object_unref (_data_->_async_result); 3548 #line 168 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3549 return FALSE; 3550 #line 3551 "tracker-bus.c" 3551 } 3552 3553 3554 static Block6Data* block6_data_ref (Block6Data* _data6_) { 3555 #line 224 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3556 g_atomic_int_inc (&_data6_->_ref_count_); 3557 #line 224 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3558 return _data6_; 3559 #line 3560 "tracker-bus.c" 3560 } 3561 3562 3563 static void block6_data_unref (void * _userdata_) { 3564 Block6Data* _data6_; 3565 _data6_ = (Block6Data*) _userdata_; 3566 #line 224 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3567 if (g_atomic_int_dec_and_test (&_data6_->_ref_count_)) { 3568 #line 3569 "tracker-bus.c" 3569 TrackerBusConnection * self; 3570 #line 224 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3571 self = _data6_->self; 3572 #line 224 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3573 _g_object_unref0 (_data6_->async_res); 3574 #line 224 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3575 _g_main_loop_unref0 (_data6_->loop); 3576 #line 224 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3577 _g_object_unref0 (self); 3578 #line 224 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3579 g_slice_free (Block6Data, _data6_); 3580 #line 3581 "tracker-bus.c" 3581 } 3582 } 3583 3584 3585 static void __lambda8_ (Block6Data* _data6_, GObject* o, GAsyncResult* res) { 3586 TrackerBusConnection * self;
variable 'self' set but not used
(emitted by gcc)
3587 GAsyncResult* _tmp0_; 3588 GAsyncResult* _tmp1_; 3589 #line 230 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3590 self = _data6_->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)

3591 #line 230 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3592 g_return_if_fail (res != NULL); 3593 #line 231 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3594 _tmp0_ = res; 3595 #line 231 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3596 _tmp1_ = _g_object_ref0 (_tmp0_); 3597 #line 231 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3598 _g_object_unref0 (_data6_->async_res); 3599 #line 231 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3600 _data6_->async_res = _tmp1_; 3601 #line 232 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3602 g_main_loop_quit (_data6_->loop); 3603 #line 3604 "tracker-bus.c" 3604 } 3605 3606 3607 static void ___lambda8__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) { 3608 #line 230 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3609 __lambda8_ (self, source_object, res); 3610 #line 230 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3611 block6_data_unref (self); 3612 #line 3613 "tracker-bus.c" 3613 } 3614 3615 3616 static GVariant* tracker_bus_connection_real_update_blank (TrackerSparqlConnection* base, const gchar* sparql, gint priority, GCancellable* cancellable, GError** error) { 3617 TrackerBusConnection * self; 3618 GVariant* result = NULL; 3619 Block6Data* _data6_; 3620 GMainContext* _tmp0_; 3621 GMainContext* context; 3622 GMainLoop* _tmp1_; 3623 const gchar* _tmp2_; 3624 gint _tmp3_; 3625 GCancellable* _tmp4_; 3626 GVariant* _tmp5_ = NULL; 3627 GVariant* _tmp6_; 3628 GError * _inner_error_ = NULL; 3629 #line 224 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3630 self = (TrackerBusConnection*) base; 3631 #line 224 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3632 g_return_val_if_fail (sparql != NULL, NULL); 3633 #line 224 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3634 _data6_ = g_slice_new0 (Block6Data); 3635 #line 224 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3636 _data6_->_ref_count_ = 1; 3637 #line 224 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3638 _data6_->self = g_object_ref (self); 3639 #line 226 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3640 _tmp0_ = g_main_context_new (); 3641 #line 226 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3642 context = _tmp0_; 3643 #line 227 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3644 _tmp1_ = g_main_loop_new (context, FALSE); 3645 #line 227 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3646 _data6_->loop = _tmp1_; 3647 #line 228 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3648 g_main_context_push_thread_default (context); 3649 #line 229 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3650 _data6_->async_res = NULL; 3651 #line 230 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3652 _tmp2_ = sparql; 3653 #line 230 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3654 _tmp3_ = priority; 3655 #line 230 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3656 _tmp4_ = cancellable; 3657 #line 230 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3658 tracker_sparql_connection_update_blank_async ((TrackerSparqlConnection*) self, _tmp2_, _tmp3_, _tmp4_, ___lambda8__gasync_ready_callback, block6_data_ref (_data6_)); 3659 #line 234 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3660 g_main_loop_run (_data6_->loop); 3661 #line 235 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3662 g_main_context_pop_thread_default (context); 3663 #line 236 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3664 _tmp5_ = tracker_sparql_connection_update_blank_finish ((TrackerSparqlConnection*) self, _data6_->async_res, &_inner_error_); 3665 #line 236 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3666 _tmp6_ = _tmp5_; 3667 #line 236 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3668 if (_inner_error_ != NULL) { 3669 #line 236 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3670 if (((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == G_IO_ERROR)) || (_inner_error_->domain == G_DBUS_ERROR)) { 3671 #line 236 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3672 g_propagate_error (error, _inner_error_); 3673 #line 236 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3674 _g_main_context_unref0 (context); 3675 #line 236 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3676 block6_data_unref (_data6_); 3677 #line 236 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3678 _data6_ = NULL; 3679 #line 236 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3680 return NULL; 3681 #line 3682 "tracker-bus.c" 3682 } else { 3683 #line 236 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3684 _g_main_context_unref0 (context); 3685 #line 236 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3686 block6_data_unref (_data6_); 3687 #line 236 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3688 _data6_ = NULL; 3689 #line 236 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3690 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 3691 #line 236 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3692 g_clear_error (&_inner_error_); 3693 #line 236 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3694 return NULL; 3695 #line 3696 "tracker-bus.c" 3696 } 3697 } 3698 #line 236 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3699 result = _tmp6_; 3700 #line 236 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3701 _g_main_context_unref0 (context); 3702 #line 236 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3703 block6_data_unref (_data6_); 3704 #line 236 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3705 _data6_ = NULL; 3706 #line 236 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3707 return result; 3708 #line 3709 "tracker-bus.c" 3709 } 3710 3711 3712 static void tracker_bus_connection_real_update_blank_async_data_free (gpointer _data) { 3713 TrackerBusConnectionUpdateBlankAsyncData* _data_; 3714 _data_ = _data; 3715 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3716 _g_free0 (_data_->sparql); 3717 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3718 _g_object_unref0 (_data_->cancellable); 3719 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3720 _g_variant_unref0 (_data_->result); 3721 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3722 _g_object_unref0 (_data_->self); 3723 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3724 g_slice_free (TrackerBusConnectionUpdateBlankAsyncData, _data_); 3725 #line 3726 "tracker-bus.c" 3726 } 3727 3728 3729 static void tracker_bus_connection_real_update_blank_async (TrackerSparqlConnection* base, const gchar* sparql, gint priority, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) { 3730 TrackerBusConnection * self; 3731 TrackerBusConnectionUpdateBlankAsyncData* _data_; 3732 TrackerBusConnection* _tmp0_; 3733 const gchar* _tmp1_; 3734 gchar* _tmp2_; 3735 gint _tmp3_; 3736 GCancellable* _tmp4_; 3737 GCancellable* _tmp5_; 3738 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3739 self = (TrackerBusConnection*) base; 3740 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3741 _data_ = g_slice_new0 (TrackerBusConnectionUpdateBlankAsyncData); 3742 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3743 _data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, tracker_bus_connection_real_update_blank_async); 3744 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3745 g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, tracker_bus_connection_real_update_blank_async_data_free); 3746 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3747 _tmp0_ = _g_object_ref0 (self); 3748 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3749 _data_->self = _tmp0_; 3750 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3751 _tmp1_ = sparql; 3752 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3753 _tmp2_ = g_strdup (_tmp1_); 3754 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3755 _g_free0 (_data_->sparql); 3756 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3757 _data_->sparql = _tmp2_; 3758 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3759 _tmp3_ = priority; 3760 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3761 _data_->priority = _tmp3_; 3762 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3763 _tmp4_ = cancellable; 3764 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3765 _tmp5_ = _g_object_ref0 (_tmp4_); 3766 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3767 _g_object_unref0 (_data_->cancellable); 3768 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3769 _data_->cancellable = _tmp5_; 3770 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3771 tracker_bus_connection_real_update_blank_async_co (_data_); 3772 #line 3773 "tracker-bus.c" 3773 } 3774 3775 3776 static GVariant* tracker_bus_connection_real_update_blank_finish (TrackerSparqlConnection* base, GAsyncResult* _res_, GError** error) { 3777 GVariant* result; 3778 TrackerBusConnectionUpdateBlankAsyncData* _data_; 3779 #line 20 "/home/martyn/Source/tracker/src/libtracker-bus/tracker-bus.vala" 3780