Commit ccd5454b authored by Carlos Garnacho's avatar Carlos Garnacho

Adapt to tracker_sparql_connection_bus_new() API change

It now takes an optional object_path argument (default on NULL object_path
being /org/freedesktop/Tracker1/Endpoint).
parent 26b731af
Pipeline #143596 failed with stage
in 50 seconds
......@@ -151,7 +151,7 @@ main (int argc, char **argv)
add_feed);
connection = tracker_sparql_connection_bus_new ("org.freedesktop.Tracker1.Miner.RSS",
NULL, &error);
NULL, NULL, &error);
if (!connection) {
g_printerr ("%s: %s\n",
......
......@@ -415,7 +415,7 @@ main (int argc, char *argv[])
dbus_name = tracker_domain_ontology_get_domain (domain_ontology, "Tracker1.Miner.Files");
sparql_connection = tracker_sparql_connection_bus_new (dbus_name,
NULL, &error);
NULL, NULL, &error);
if (error) {
g_critical ("Could not connect to filesystem miner endpoint: %s",
......
......@@ -728,7 +728,7 @@ tracker_controller_dbus_start (TrackerController *controller,
priv = tracker_controller_get_instance_private (controller);
priv->connection = tracker_sparql_connection_bus_new ("org.freedesktop.Tracker1.Miner.Files",
NULL, &err);
NULL, NULL, &err);
if (!priv->connection) {
g_propagate_error (error, err);
......
......@@ -971,7 +971,7 @@ daemon_run (void)
GError *error = NULL;
sparql_connection = tracker_sparql_connection_bus_new ("org.freedesktop.Tracker1.Miner.Files",
NULL, &error);
NULL, NULL, &error);
if (!sparql_connection) {
g_critical ("%s, %s",
......
......@@ -189,7 +189,7 @@ import_turtle_files (void)
gchar **p;
connection = tracker_sparql_connection_bus_new ("org.freedesktop.Tracker1.Miner.Files",
NULL, &error);
NULL, NULL, &error);
if (!connection) {
g_printerr ("%s: %s\n",
......
......@@ -73,7 +73,7 @@ delete_info_recursively (GFile *file)
GError *error = NULL;
connection = tracker_sparql_connection_bus_new ("org.freedesktop.Tracker1.Miner.Files",
NULL, &error);
NULL, NULL, &error);
if (error)
goto error;
......
......@@ -1573,7 +1573,7 @@ search_run (void)
#endif
connection = tracker_sparql_connection_bus_new ("org.freedesktop.Tracker1.Miner.Files",
NULL, &error);
NULL, NULL, &error);
if (!connection) {
g_printerr ("%s: %s\n",
......
......@@ -80,7 +80,7 @@ status_stat (void)
GError *error = NULL;
connection = tracker_sparql_connection_bus_new ("org.freedesktop.Tracker1.Miner.Files",
NULL, &error);
NULL, NULL, &error);
if (!connection) {
g_printerr ("%s: %s\n",
......@@ -310,7 +310,7 @@ collect_debug (void)
g_print ("[%s]\n", _("Data Statistics"));
connection = tracker_sparql_connection_bus_new ("org.freedesktop.Tracker1.Miner.Files",
NULL, &error);
NULL, NULL, &error);
if (!connection) {
g_print ("** %s, %s **\n",
......@@ -387,7 +387,7 @@ get_file_and_folder_count (int *files,
GError *error = NULL;
connection = tracker_sparql_connection_bus_new ("org.freedesktop.Tracker1.Miner.Files",
NULL, &error);
NULL, NULL, &error);
if (files) {
*files = 0;
......
......@@ -968,7 +968,7 @@ tag_run (void)
GError *error = NULL;
connection = tracker_sparql_connection_bus_new ("org.freedesktop.Tracker1.Miner.Files",
NULL, &error);
NULL, NULL, &error);
if (!connection) {
g_printerr ("%s: %s\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment