[tracker/direct-access: 61/158] tracker-utils: Port tracker-status to libtracker-sparql



commit 7b254f6efbf3c543f51a14d418cd506fe2d5f2f0
Author: Jürg Billeter <j bitron ch>
Date:   Mon Jul 19 12:39:29 2010 +0200

    tracker-utils: Port tracker-status to libtracker-sparql

 src/tracker-utils/tracker-status.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/tracker-utils/tracker-status.c b/src/tracker-utils/tracker-status.c
index 095fbdd..3147619 100644
--- a/src/tracker-utils/tracker-status.c
+++ b/src/tracker-utils/tracker-status.c
@@ -28,7 +28,7 @@
 #include <glib.h>
 #include <glib/gi18n.h>
 
-#include <libtracker-client/tracker-client.h>
+#include <libtracker-sparql/tracker-sparql.h>
 #include <libtracker-common/tracker-common.h>
 #include <libtracker-miner/tracker-miner.h>
 
@@ -465,7 +465,7 @@ main (gint argc, gchar *argv[])
 {
 	TrackerMinerManager *manager;
 	GOptionContext *context;
-	TrackerClient *client;
+	TrackerSparqlConnection *connection;
 	GSList *miners_available;
 	GSList *miners_running;
 	GSList *l;
@@ -537,9 +537,9 @@ main (gint argc, gchar *argv[])
 		g_thread_init (NULL);
 	}
 
-	client = tracker_client_new (0, G_MAXINT);
+	connection = tracker_sparql_connection_get (NULL);
 
-	if (!client) {
+	if (!connection) {
 		g_printerr ("%s\n",
 		            _("Could not establish a D-Bus connection to Tracker"));
 
@@ -602,7 +602,7 @@ main (gint argc, gchar *argv[])
 		g_slist_foreach (miners_running, (GFunc) g_free, NULL);
 		g_slist_free (miners_running);
 
-		g_object_unref (client);
+		g_object_unref (connection);
 		return EXIT_SUCCESS;
 	}
 
@@ -747,7 +747,7 @@ main (gint argc, gchar *argv[])
 
 	if (!follow) {
 		/* Do nothing further */
-		g_object_unref (client);
+		g_object_unref (connection);
 		g_print ("\n");
 		return EXIT_SUCCESS;
 	}
@@ -782,7 +782,7 @@ main (gint argc, gchar *argv[])
 	g_hash_table_unref (miners_progress);
 	g_hash_table_unref (miners_status);
 
-	g_object_unref (client);
+	g_object_unref (connection);
 	g_object_unref (manager);
 
 	return EXIT_SUCCESS;



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