[tracker] Removed Insert and Delete DBus APIs
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] Removed Insert and Delete DBus APIs
- Date: Fri, 25 Sep 2009 08:24:06 +0000 (UTC)
commit 93ce2612f7ad5de7a276d44f07a12ef153879956
Author: Philip Van Hoof <philip codeminded be>
Date: Fri Sep 25 10:22:15 2009 +0200
Removed Insert and Delete DBus APIs
Please always use either SparqlUpdate or BatchSparqlUpdate followed by
BatchCommit for inserting and removing statements.
data/dbus/tracker-resources.xml | 16 ---------
src/tracker-explorer/explorer.vala | 2 -
src/tracker-store/tracker-resources.c | 57 ---------------------------------
src/tracker-store/tracker-resources.h | 12 -------
4 files changed, 0 insertions(+), 87 deletions(-)
---
diff --git a/data/dbus/tracker-resources.xml b/data/dbus/tracker-resources.xml
index 9a2d59a..7b28ac5 100644
--- a/data/dbus/tracker-resources.xml
+++ b/data/dbus/tracker-resources.xml
@@ -3,22 +3,6 @@
<node name="/org/freedesktop/Tracker1">
<interface name="org.freedesktop.Tracker1.Resources">
- <!-- Insert single statement -->
- <method name="Insert">
- <annotation name="org.freedesktop.DBus.GLib.Async" value="true"/>
- <arg type="s" name="subject" direction="in" />
- <arg type="s" name="predicate" direction="in" />
- <arg type="s" name="object" direction="in" />
- </method>
-
- <!-- Delete single statement -->
- <method name="Delete">
- <annotation name="org.freedesktop.DBus.GLib.Async" value="true"/>
- <arg type="s" name="subject" direction="in" />
- <arg type="s" name="predicate" direction="in" />
- <arg type="s" name="object" direction="in" />
- </method>
-
<!-- Load statements from Turtle file -->
<method name="Load">
<annotation name="org.freedesktop.DBus.GLib.Async" value="true"/>
diff --git a/src/tracker-explorer/explorer.vala b/src/tracker-explorer/explorer.vala
index 9e6fd7d..495b6d1 100644
--- a/src/tracker-explorer/explorer.vala
+++ b/src/tracker-explorer/explorer.vala
@@ -8,8 +8,6 @@ extern static const string SRCDIR;
[DBus (name = "org.freedesktop.Tracker1.Resources")]
interface Resources : GLib.Object {
- public abstract void Delete (string subject, string predicate, string object_) throws DBus.Error;
- public abstract void Insert (string subject, string predicate, string object_) throws DBus.Error;
public abstract void Load (string url) throws DBus.Error;
public abstract string[,] SparqlQuery (string query) throws DBus.Error;
public abstract void SparqlUpdate (string query) throws DBus.Error;
diff --git a/src/tracker-store/tracker-resources.c b/src/tracker-store/tracker-resources.c
index 22f31d7..5f259b0 100644
--- a/src/tracker-store/tracker-resources.c
+++ b/src/tracker-store/tracker-resources.c
@@ -119,63 +119,6 @@ destroy_method_info (gpointer user_data)
g_slice_free (TrackerDBusMethodInfo, user_data);
}
-
-void
-tracker_resources_insert (TrackerResources *self,
- const gchar *subject,
- const gchar *predicate,
- const gchar *object,
- DBusGMethodInvocation *context,
- GError **error)
-{
- guint request_id;
-
- request_id = tracker_dbus_get_next_request_id ();
-
- tracker_dbus_async_return_if_fail (subject != NULL, context);
- tracker_dbus_async_return_if_fail (predicate != NULL, context);
- tracker_dbus_async_return_if_fail (object != NULL, context);
-
- tracker_dbus_request_new (request_id,
- "D-Bus request to insert statement: "
- "'%s' '%s' '%s'",
- subject, predicate, object);
-
- tracker_store_insert_statement (subject, predicate, object);
-
- dbus_g_method_return (context);
-
- tracker_dbus_request_success (request_id);
-}
-
-void
-tracker_resources_delete (TrackerResources *self,
- const gchar *subject,
- const gchar *predicate,
- const gchar *object,
- DBusGMethodInvocation *context,
- GError **error)
-{
- guint request_id;
-
- request_id = tracker_dbus_get_next_request_id ();
-
- tracker_dbus_async_return_if_fail (subject != NULL, context);
- tracker_dbus_async_return_if_fail (predicate != NULL, context);
- tracker_dbus_async_return_if_fail (object != NULL, context);
-
- tracker_dbus_request_new (request_id,
- "D-Bus request to delete statement: "
- "'%s' '%s' '%s'",
- subject, predicate, object);
-
- tracker_store_delete_statement (subject, predicate, object);
-
- dbus_g_method_return (context);
-
- tracker_dbus_request_success (request_id);
-}
-
static void
turtle_import_callback (GError *error, gpointer user_data)
{
diff --git a/src/tracker-store/tracker-resources.h b/src/tracker-store/tracker-resources.h
index 1d7fe56..22ffc8c 100644
--- a/src/tracker-store/tracker-resources.h
+++ b/src/tracker-store/tracker-resources.h
@@ -55,18 +55,6 @@ void tracker_resources_prepare (TrackerResources *object,
GSList *event_sources);
/* DBus methods */
-void tracker_resources_insert (TrackerResources *self,
- const gchar *subject,
- const gchar *predicate,
- const gchar *object,
- DBusGMethodInvocation *context,
- GError **error);
-void tracker_resources_delete (TrackerResources *self,
- const gchar *subject,
- const gchar *predicate,
- const gchar *object,
- DBusGMethodInvocation *context,
- GError **error);
void tracker_resources_load (TrackerResources *object,
const gchar *uri,
DBusGMethodInvocation *context,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]