[gnome-photos] tracker-queue: Add queue_update
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] tracker-queue: Add queue_update
- Date: Thu, 16 Aug 2012 18:07:17 +0000 (UTC)
commit 9ad480cb1ad346ba13e037461213cc33694978ce
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Aug 15 01:00:49 2012 +0200
tracker-queue: Add queue_update
src/photos-tracker-queue.c | 25 +++++++++++++++++++++++++
src/photos-tracker-queue.h | 7 +++++++
2 files changed, 32 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-tracker-queue.c b/src/photos-tracker-queue.c
index 2b9299d..735e9fd 100644
--- a/src/photos-tracker-queue.c
+++ b/src/photos-tracker-queue.c
@@ -260,3 +260,28 @@ photos_tracker_queue_select (PhotosTrackerQueue *self,
g_queue_push_tail (self->priv->queue, data);
photos_tracker_queue_check (self);
}
+
+
+void
+photos_tracker_queue_update (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,
+ 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 a50730b..ecbe832 100644
--- a/src/photos-tracker-queue.h
+++ b/src/photos-tracker-queue.h
@@ -73,6 +73,13 @@ void photos_tracker_queue_select (PhotosTracke
gpointer user_data,
GDestroyNotify destroy_data);
+void photos_tracker_queue_update (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]