[tracker/wip/carlosg/portal: 36/36] libtracker-sparql: Allow NULL store in tracker_sparql_connection_new_async()



commit ee166fa4186c21d00f31a3e90a292fa34dd5937a
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Jul 17 13:38:02 2020 +0200

    libtracker-sparql: Allow NULL store in tracker_sparql_connection_new_async()
    
    Make it on par with tracker_sparql_connection_new(), since a NULL store means
    "use in-memory database".

 src/libtracker-sparql/tracker-backend.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libtracker-sparql/tracker-backend.vala b/src/libtracker-sparql/tracker-backend.vala
index fc3682872..9a84a648a 100644
--- a/src/libtracker-sparql/tracker-backend.vala
+++ b/src/libtracker-sparql/tracker-backend.vala
@@ -44,7 +44,7 @@ public static Tracker.Sparql.Connection tracker_sparql_connection_new (Tracker.S
        return conn;
 }
 
-public static async Tracker.Sparql.Connection tracker_sparql_connection_new_async 
(Tracker.Sparql.ConnectionFlags flags, File store, File ontology, Cancellable? cancellable = null) throws 
GLib.Error, Tracker.Sparql.Error, IOError {
+public static async Tracker.Sparql.Connection tracker_sparql_connection_new_async 
(Tracker.Sparql.ConnectionFlags flags, File? store, File ontology, Cancellable? cancellable = null) throws 
GLib.Error, Tracker.Sparql.Error, IOError {
        var conn = new Tracker.Direct.Connection (flags, store, ontology);
        yield conn.init_async (Priority.DEFAULT, cancellable);
        return conn;


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