[tracker/libtracker-sparql: 8/44] libtracker-sparql: Add async API
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/libtracker-sparql: 8/44] libtracker-sparql: Add async API
- Date: Tue, 10 Aug 2010 12:53:06 +0000 (UTC)
commit 925ee309c6f2efdf3395ddec31a68abc16cb1afd
Author: Jürg Billeter <j bitron ch>
Date: Tue Jul 13 14:42:27 2010 +0200
libtracker-sparql: Add async API
src/libtracker-sparql/tracker-connection.vala | 3 ++-
src/libtracker-sparql/tracker-cursor.vala | 1 +
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-sparql/tracker-connection.vala b/src/libtracker-sparql/tracker-connection.vala
index f576d5c..f774b2c 100644
--- a/src/libtracker-sparql/tracker-connection.vala
+++ b/src/libtracker-sparql/tracker-connection.vala
@@ -18,5 +18,6 @@
*/
public abstract class Tracker.Sparql.Connection : Object {
- public abstract Cursor query (string sparql) throws GLib.Error;
+ public abstract Cursor query (string sparql, Cancellable? cancellable = null) throws GLib.Error;
+ public async abstract Cursor query_async (string sparql, Cancellable? cancellable = null) throws GLib.Error;
}
diff --git a/src/libtracker-sparql/tracker-cursor.vala b/src/libtracker-sparql/tracker-cursor.vala
index bc69ba3..8aac0ed 100644
--- a/src/libtracker-sparql/tracker-cursor.vala
+++ b/src/libtracker-sparql/tracker-cursor.vala
@@ -23,5 +23,6 @@ public abstract class Tracker.Sparql.Cursor : Object {
public abstract unowned string get_string (int column, out int length = null);
public abstract bool next (Cancellable? cancellable = null) throws GLib.Error;
+ public async abstract bool next_async (Cancellable? cancellable = null) throws GLib.Error;
public abstract void rewind ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]