[tracker] Update vala bindings for libtracker-client
- From: Adrien Bustany <abustany src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] Update vala bindings for libtracker-client
- Date: Wed, 30 Jun 2010 07:11:55 +0000 (UTC)
commit 6b660aad8588c8c918525c14efb3b87f171734c8
Author: Adrien Bustany <abustany gnome org>
Date: Wed Jun 30 09:07:40 2010 +0200
Update vala bindings for libtracker-client
This commit adds bindings for the new function
tracker_resources_sparql_query_iterate, its async version and the
callback TrackerReplyIterator.
The functions are available in the vapi in any case (even if DBus FD
passing is not compiled in).
src/libtracker-client/tracker-client.vapi | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-client/tracker-client.vapi b/src/libtracker-client/tracker-client.vapi
index d72335c..0c5029d 100644
--- a/src/libtracker-client/tracker-client.vapi
+++ b/src/libtracker-client/tracker-client.vapi
@@ -42,8 +42,12 @@ namespace Tracker {
public void load_async (string uri, Tracker.ReplyVoid callback);
[CCode (cname = "tracker_resources_sparql_query")]
public GLib.PtrArray sparql_query (string query) throws GLib.Error;
+ [CCode (cname = "tracker_resources_sparql_query_iterate")]
+ public Tracker.ResultIterator sparql_query_iterate (string query) throws GLib.Error;
[CCode (cname = "tracker_resources_sparql_query_async")]
public void sparql_query_async (string query, Tracker.ReplyGPtrArray callback);
+ [CCode (cname = "tracker_resources_sparql_query_iterate_async")]
+ public void sparql_query_iterate_async (string query, Tracker.ReplyIterator callback);
[CCode (cname = "tracker_resources_sparql_update")]
public void sparql_update (string query) throws GLib.Error;
[CCode (cname = "tracker_resources_sparql_update_async")]
@@ -106,11 +110,21 @@ namespace Tracker {
WARNINGS
}
+ [Compact]
+ [CCode (cheader_filename = "libtracker-client/tracker-client.h")]
+ public class ResultIterator {
+ public int n_columns ();
+ public bool next ();
+ public unowned string value (uint column);
+ }
+
[CCode (cheader_filename = "libtracker-client/tracker-client.h", instance_pos = -2)]
public delegate void ReplyArray (string result, GLib.Error error);
[CCode (cheader_filename = "libtracker-client/tracker-client.h", instance_pos = -2)]
public delegate void ReplyGPtrArray (GLib.PtrArray result, GLib.Error error);
[CCode (cheader_filename = "libtracker-client/tracker-client.h", instance_pos = -2)]
+ public delegate void ReplyIterator (Tracker.ResultIterator iterator, GLib.Error error);
+ [CCode (cheader_filename = "libtracker-client/tracker-client.h", instance_pos = -2)]
public delegate void ReplyVoid (GLib.Error error);
[CCode (cheader_filename = "libtracker-client/tracker.h", instance_pos = -2)]
public delegate void WritebackCallback (GLib.HashTable resources);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]