[gnome-photos/wip/rishi/online-miners: 10/10] tracker-queue: ...




commit 45bb1a183999b044ad5cd40aa1ba377b0d04aa2c
Author: Debarshi Ray <debarshir gnome org>
Date:   Sun Apr 4 01:32:53 2021 +0200

    tracker-queue: ...

 src/photos-tracker-queue.c | 8 ++++++++
 src/photos-tracker-queue.h | 2 ++
 2 files changed, 10 insertions(+)
---
diff --git a/src/photos-tracker-queue.c b/src/photos-tracker-queue.c
index 1b2b230c..f27ae336 100644
--- a/src/photos-tracker-queue.c
+++ b/src/photos-tracker-queue.c
@@ -381,6 +381,14 @@ photos_tracker_queue_create_notifier (PhotosTrackerQueue *self)
 }
 
 
+TrackerSparqlConnection *
+photos_tracker_queue_get_connection_online (PhotosTrackerQueue *self)
+{
+  g_return_val_if_fail (PHOTOS_IS_TRACKER_QUEUE (self), NULL);
+  return self->connection_online;
+}
+
+
 void
 photos_tracker_queue_select (PhotosTrackerQueue *self,
                              PhotosQuery *query,
diff --git a/src/photos-tracker-queue.h b/src/photos-tracker-queue.h
index 732ea03b..3ba6745d 100644
--- a/src/photos-tracker-queue.h
+++ b/src/photos-tracker-queue.h
@@ -37,6 +37,8 @@ PhotosTrackerQueue    *photos_tracker_queue_dup_singleton          (GCancellable
 
 TrackerNotifier       *photos_tracker_queue_create_notifier        (PhotosTrackerQueue *self);
 
+TrackerSparqlConnection *photos_tracker_queue_get_connection_online (PhotosTrackerQueue *self);
+
 void                   photos_tracker_queue_select                 (PhotosTrackerQueue *self,
                                                                     PhotosQuery *query,
                                                                     GCancellable *cancellable,


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