[tracker/miner-web: 24/31] libtracker-miner: Update TrackerMiner vala binding
- From: Adrien Bustany <abustany src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/miner-web: 24/31] libtracker-miner: Update TrackerMiner vala binding
- Date: Thu, 12 Nov 2009 20:40:03 +0000 (UTC)
commit 1c482c2766ec6f1d6a20a8aa58126844b92d6514
Author: Adrien Bustany <madcat mymadcat com>
Date: Wed Nov 11 15:00:20 2009 -0300
libtracker-miner: Update TrackerMiner vala binding
src/libtracker-miner/Makefile.am | 1 +
src/libtracker-miner/tracker-miner-0.7.vapi | 19 ++++++++++++-------
2 files changed, 13 insertions(+), 7 deletions(-)
---
diff --git a/src/libtracker-miner/Makefile.am b/src/libtracker-miner/Makefile.am
index 5ffd317..3562782 100644
--- a/src/libtracker-miner/Makefile.am
+++ b/src/libtracker-miner/Makefile.am
@@ -103,6 +103,7 @@ dbus_sources = \
VALAPKGS = \
--pkg dbus-glib-1 \
--pkg posix \
+ --pkg gio-2.0 \
--pkg tracker-miner-0.7
VALAFLAGS = \
diff --git a/src/libtracker-miner/tracker-miner-0.7.vapi b/src/libtracker-miner/tracker-miner-0.7.vapi
index 264777d..502cd06 100644
--- a/src/libtracker-miner/tracker-miner-0.7.vapi
+++ b/src/libtracker-miner/tracker-miner-0.7.vapi
@@ -3,17 +3,19 @@ namespace Tracker {
[Compact]
[CCode (cheader_filename = "libtracker-miner/tracker-miner.h")]
public abstract class Miner : GLib.Object {
- public bool commit ();
- public static GLib.Quark error_quark ();
- public bool execute_batch_update (string sparql) throws GLib.Error;
- public unowned GLib.PtrArray execute_sparql (string sparql) throws GLib.Error;
- public bool execute_update (string sparql) throws GLib.Error;
- public bool is_started ();
+ public void start ();
public int pause (string application, string reason) throws GLib.Error;
public bool resume (int cookie) throws GLib.Error;
- public void start ();
+ 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 static GLib.Quark error_quark ();
+
public abstract void error (GLib.Error error);
public abstract void paused ();
public abstract void progress (string status, double progress);
@@ -21,6 +23,9 @@ 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]