[tracker/miner-web: 8/49] libtracker-miner: Add default values in vala bindings for TrackerMiner



commit a4d9205888db224855da7fb94e2802d2ad18e5a3
Author: Adrien Bustany <madcat mymadcat com>
Date:   Fri Nov 13 09:14:13 2009 -0300

    libtracker-miner: Add default values in vala bindings for TrackerMiner
    
    All the async functions of TrackerMiner (execute_update, execute_sparql...) can
    take an optional GCancellable argument. This commits defines a default value of
    null for this argument.

 src/libtracker-miner/tracker-miner-0.7.vapi |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-0.7.vapi b/src/libtracker-miner/tracker-miner-0.7.vapi
index bb3c327..1a9a83d 100644
--- a/src/libtracker-miner/tracker-miner-0.7.vapi
+++ b/src/libtracker-miner/tracker-miner-0.7.vapi
@@ -9,13 +9,13 @@ namespace Tracker {
 		public bool is_started ();
 		public void stop ();
 
-		public async void execute_sparql (string sparql, GLib.Cancellable cancellable);
+		public async void execute_sparql (string sparql, GLib.Cancellable cancellable = null);
 		public unowned GLib.PtrArray execute_sparql_finish (GLib.AsyncResult result) throws GLib.Error;
-		public async void execute_update (string sparql, GLib.Cancellable cancellable);
+		public async void execute_update (string sparql, GLib.Cancellable cancellable = null);
 		public void execute_update_finish (GLib.AsyncResult result) throws GLib.Error;
-		public async void execute_batch_update (string sparql, GLib.Cancellable cancellable);
+		public async void execute_batch_update (string sparql, GLib.Cancellable cancellable = null);
 		public void execute_batch_update_finish (GLib.AsyncResult result) throws GLib.Error;
-		public async void commit (GLib.Cancellable cancellable);
+		public async void commit (GLib.Cancellable cancellable = null);
 		public void commit_finish (GLib.AsyncResult result) throws GLib.Error;
 
 		public static GLib.Quark error_quark ();



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