[gnome-photos/wip/foo: 3/13] tracker-queue: Add photos_tracker_queue_update_blank



commit 10826ad82ffd595b8909a2f6b686cac5218b7ac6
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Mar 29 01:21:37 2013 +0100

    tracker-queue: Add photos_tracker_queue_update_blank

 src/photos-tracker-queue.c |   27 ++++++++++++++++++++++++++-
 src/photos-tracker-queue.h |    9 ++++++++-
 2 files changed, 34 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-tracker-queue.c b/src/photos-tracker-queue.c
index 312b3d0..09a2b93 100644
--- a/src/photos-tracker-queue.c
+++ b/src/photos-tracker-queue.c
@@ -1,6 +1,6 @@
 /*
  * Photos - access, organize and share your photos on GNOME
- * Copyright © 2012 Red Hat, Inc.
+ * Copyright © 2012, 2013 Red Hat, Inc.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -295,3 +295,28 @@ photos_tracker_queue_update (PhotosTrackerQueue *self,
   g_queue_push_tail (self->priv->queue, data);
   photos_tracker_queue_check (self);
 }
+
+
+void
+photos_tracker_queue_update_blank (PhotosTrackerQueue *self,
+                                   const gchar *sparql,
+                                   GCancellable *cancellable,
+                                   GAsyncReadyCallback callback,
+                                   gpointer user_data,
+                                   GDestroyNotify destroy_data)
+{
+  PhotosTrackerQueueData *data;
+
+  if (cancellable != NULL)
+    g_object_ref (cancellable);
+
+  data = photos_tracker_queue_data_new (sparql,
+                                        PHOTOS_TRACKER_QUERY_UPDATE_BLANK,
+                                        cancellable,
+                                        callback,
+                                        user_data,
+                                        destroy_data);
+
+  g_queue_push_tail (self->priv->queue, data);
+  photos_tracker_queue_check (self);
+}
diff --git a/src/photos-tracker-queue.h b/src/photos-tracker-queue.h
index 4d655ed..3075963 100644
--- a/src/photos-tracker-queue.h
+++ b/src/photos-tracker-queue.h
@@ -1,6 +1,6 @@
 /*
  * Photos - access, organize and share your photos on GNOME
- * Copyright © 2012 Red Hat, Inc.
+ * Copyright © 2012, 2013 Red Hat, Inc.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -84,6 +84,13 @@ void                   photos_tracker_queue_update                 (PhotosTracke
                                                                     gpointer user_data,
                                                                     GDestroyNotify destroy_data);
 
+void                   photos_tracker_queue_update_blank           (PhotosTrackerQueue *self,
+                                                                    const gchar *sparql,
+                                                                    GCancellable *cancellable,
+                                                                    GAsyncReadyCallback callback,
+                                                                    gpointer user_data,
+                                                                    GDestroyNotify destroy_data);
+
 G_END_DECLS
 
 #endif /* PHOTOS_TRACKER_QUEUE_H */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]