[tracker/miner-web: 26/31] libtracker-miner: Update the vala bindings for TrackerMiner



commit de1993f45e83b4710c0cb977d1c96839a50956d6
Author: Adrien Bustany <madcat mymadcat com>
Date:   Wed Nov 11 17:45:53 2009 -0300

    libtracker-miner: Update the vala bindings for TrackerMiner

 src/libtracker-miner/tracker-miner-0.7.vapi |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-0.7.vapi b/src/libtracker-miner/tracker-miner-0.7.vapi
index 502cd06..bb3c327 100644
--- a/src/libtracker-miner/tracker-miner-0.7.vapi
+++ b/src/libtracker-miner/tracker-miner-0.7.vapi
@@ -9,10 +9,14 @@ namespace Tracker {
 		public bool is_started ();
 		public void stop ();
 
-		public unowned GLib.PtrArray execute_sparql (string sparql, GLib.Cancellable cancellable, Tracker.Miner.UpdateCallback callback);
-		public bool execute_update (string sparql, GLib.Cancellable cancellable, Tracker.Miner.UpdateCallback callback);
-		public bool execute_batch_update (string sparql, GLib.Cancellable cancellable, Tracker.Miner.UpdateCallback callback);
-		public bool commit (GLib.Cancellable cancellable, Tracker.Miner.UpdateCallback callback);
+		public async void execute_sparql (string sparql, GLib.Cancellable cancellable);
+		public unowned GLib.PtrArray execute_sparql_finish (GLib.AsyncResult result) throws GLib.Error;
+		public async void execute_update (string sparql, GLib.Cancellable cancellable);
+		public void execute_update_finish (GLib.AsyncResult result) throws GLib.Error;
+		public async void execute_batch_update (string sparql, GLib.Cancellable cancellable);
+		public void execute_batch_update_finish (GLib.AsyncResult result) throws GLib.Error;
+		public async void commit (GLib.Cancellable cancellable);
+		public void commit_finish (GLib.AsyncResult result) throws GLib.Error;
 
 		public static GLib.Quark error_quark ();
 
@@ -23,9 +27,6 @@ namespace Tracker {
 		public abstract void started ();
 		public abstract void stopped ();
 		public abstract void terminated ();
-
-		public delegate void UpdateCallback (Tracker.Miner source, GLib.Error? error);
-		public delegate void QueryCallback (Tracker.Miner source, GLib.PtrArray result, GLib.Error? error);
 	}
 
 	[CCode (cheader_filename = "libtracker-miner/tracker-miner-dbus.h")]



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