[tracker-miners/sam/new-with-ontologies] Use tracker_sparql_connection_new_with_ontologies()



commit 0d2fbc6b4a7bd4b9cd4face4b2de0887a1ec57e0
Author: Sam Thursfield <sam afuera me uk>
Date:   Fri Mar 13 01:39:43 2020 +0100

    Use tracker_sparql_connection_new_with_ontologies()
    
    This corresponds with an API break in tracker.git to fix
    https://gitlab.gnome.org/GNOME/tracker/issues/192

 src/miners/fs/tracker-main.c                        | 10 +++++-----
 src/miners/rss/tracker-main.c                       |  1 -
 tests/libtracker-miner/tracker-file-notifier-test.c |  2 +-
 tests/libtracker-miner/tracker-miner-fs-test.c      |  2 +-
 4 files changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/src/miners/fs/tracker-main.c b/src/miners/fs/tracker-main.c
index 1c6a2e9c0..d779093cb 100644
--- a/src/miners/fs/tracker-main.c
+++ b/src/miners/fs/tracker-main.c
@@ -795,11 +795,11 @@ setup_connection_and_endpoint (TrackerDomainOntology    *domain,
 
        store = tracker_domain_ontology_get_cache (domain);
        ontology = tracker_domain_ontology_get_ontology (domain);
-       *sparql_conn = tracker_sparql_connection_new (get_fts_connection_flags (),
-                                                     store,
-                                                     ontology,
-                                                     NULL,
-                                                     error);
+       *sparql_conn = tracker_sparql_connection_new_with_ontology (get_fts_connection_flags (),
+                                                                   store,
+                                                                   ontology,
+                                                                   NULL,
+                                                                   error);
        if (!*sparql_conn)
                return FALSE;
 
diff --git a/src/miners/rss/tracker-main.c b/src/miners/rss/tracker-main.c
index b78f0303b..58f2f38b6 100644
--- a/src/miners/rss/tracker-main.c
+++ b/src/miners/rss/tracker-main.c
@@ -103,7 +103,6 @@ setup_connection_and_endpoint (TrackerDomainOntology    *domain,
        *sparql_conn = tracker_sparql_connection_new (get_fts_connection_flags (),
                                                      store,
                                                      NULL,
-                                                     NULL,
                                                      error);
        if (!*sparql_conn)
                return FALSE;
diff --git a/tests/libtracker-miner/tracker-file-notifier-test.c 
b/tests/libtracker-miner/tracker-file-notifier-test.c
index c3b036a20..2be7e5987 100644
--- a/tests/libtracker-miner/tracker-file-notifier-test.c
+++ b/tests/libtracker-miner/tracker-file-notifier-test.c
@@ -273,7 +273,7 @@ test_common_context_setup (TestCommonContext *fixture,
 
        data_loc = g_file_get_child (fixture->test_file, ".data");
        ontology = g_file_new_for_path (TEST_ONTOLOGIES_DIR);
-       fixture->connection = tracker_sparql_connection_new (0, data_loc, ontology, NULL, &error);
+       fixture->connection = tracker_sparql_connection_new_with_ontology (0, data_loc, ontology, NULL, 
&error);
        g_assert_no_error (error);
 
        fixture->ops = NULL;
diff --git a/tests/libtracker-miner/tracker-miner-fs-test.c b/tests/libtracker-miner/tracker-miner-fs-test.c
index 0c6c7bd30..aaf9306e9 100644
--- a/tests/libtracker-miner/tracker-miner-fs-test.c
+++ b/tests/libtracker-miner/tracker-miner-fs-test.c
@@ -273,7 +273,7 @@ fixture_setup (TrackerMinerFSTestFixture *fixture,
 
        file = g_file_get_child (fixture->test_root, ".db");
        ontology = g_file_new_for_path (TEST_ONTOLOGIES_DIR);
-       fixture->connection = tracker_sparql_connection_new (0, file, ontology, NULL, &error);
+       fixture->connection = tracker_sparql_connection_new_with_ontology (0, file, ontology, NULL, &error);
        g_assert_no_error (error);
        g_object_unref (file);
        g_object_unref (ontology);


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