[tracker/direct-access: 6/18] tracker-store: Store sender for turtle import tasks as well
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/direct-access: 6/18] tracker-store: Store sender for turtle import tasks as well
- Date: Tue, 6 Jul 2010 08:17:34 +0000 (UTC)
commit dd0160557817eaccb72a6b14c950263857eaed5f
Author: Jürg Billeter <j bitron ch>
Date: Wed Jun 30 17:00:40 2010 +0200
tracker-store: Store sender for turtle import tasks as well
src/tracker-store/tracker-resources.c | 6 +++++-
src/tracker-store/tracker-store.c | 2 ++
src/tracker-store/tracker-store.h | 1 +
3 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-store/tracker-resources.c b/src/tracker-store/tracker-resources.c
index ee9ba19..37c6804 100644
--- a/src/tracker-store/tracker-resources.c
+++ b/src/tracker-store/tracker-resources.c
@@ -184,6 +184,7 @@ tracker_resources_load (TrackerResources *object,
TrackerDBusMethodInfo *info;
guint request_id;
GFile *file;
+ gchar *sender;
request_id = tracker_dbus_get_next_request_id ();
@@ -202,9 +203,12 @@ tracker_resources_load (TrackerResources *object,
info->request_id = request_id;
info->context = context;
+ sender = dbus_g_method_get_sender (context);
+
tracker_store_queue_turtle_import (file, turtle_import_callback,
- info, destroy_method_info);
+ sender, info, destroy_method_info);
+ g_free (sender);
g_object_unref (file);
}
diff --git a/src/tracker-store/tracker-store.c b/src/tracker-store/tracker-store.c
index 024958c..903fbfa 100644
--- a/src/tracker-store/tracker-store.c
+++ b/src/tracker-store/tracker-store.c
@@ -577,6 +577,7 @@ tracker_store_sparql_update_blank (const gchar *sparql,
void
tracker_store_queue_turtle_import (GFile *file,
TrackerStoreTurtleCallback callback,
+ const gchar *client_id,
gpointer user_data,
GDestroyNotify destroy)
{
@@ -594,6 +595,7 @@ tracker_store_queue_turtle_import (GFile *file,
task->user_data = user_data;
task->callback.update_callback = callback;
task->destroy = destroy;
+ task->client_id = g_strdup (client_id);
g_queue_push_tail (private->update_queues[TRACKER_STORE_PRIORITY_TURTLE], task);
diff --git a/src/tracker-store/tracker-store.h b/src/tracker-store/tracker-store.h
index 986673c..d9b9a88 100644
--- a/src/tracker-store/tracker-store.h
+++ b/src/tracker-store/tracker-store.h
@@ -74,6 +74,7 @@ void tracker_store_sparql_update_blank (const gchar *sparql,
GDestroyNotify destroy);
void tracker_store_queue_turtle_import (GFile *file,
TrackerStoreTurtleCallback callback,
+ const gchar *client_id,
gpointer user_data,
GDestroyNotify destroy);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]