[tracker] thunderbird: Add bindings for tracker_sparql_connection_get_async
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] thunderbird: Add bindings for tracker_sparql_connection_get_async
- Date: Thu, 4 Aug 2011 17:09:55 +0000 (UTC)
commit 44dd7bfc27478f62012cddd60d9899802ad172c7
Author: Adrien Bustany <adrien bustany nokia com>
Date: Thu Aug 4 18:32:03 2011 +0300
thunderbird: Add bindings for tracker_sparql_connection_get_async
src/plugins/thunderbird/chrome/content/bindings.js | 21 ++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/thunderbird/chrome/content/bindings.js b/src/plugins/thunderbird/chrome/content/bindings.js
index 68c49dd..e2534c3 100644
--- a/src/plugins/thunderbird/chrome/content/bindings.js
+++ b/src/plugins/thunderbird/chrome/content/bindings.js
@@ -29,12 +29,18 @@ org.bustany.TrackerBird.TrackerSparql = {
}
// GLib types
+ tracker.Object = new ctypes.StructType ("GObject");
tracker.Cancellable = new ctypes.StructType ("GCancellable");
tracker.Error = new ctypes.StructType ("GError", [
{domain : ctypes.uint32_t},
{code : ctypes.int32_t},
{message : ctypes.char.ptr}
]);
+ tracker.AsyncResult = new ctypes.StructType ("GAsyncResult");
+ tracker.AsyncReadyCallback = new ctypes.FunctionType(
+ ctypes.default_abi,
+ ctypes.void_t,
+ [ tracker.Object.ptr, tracker.AsyncResult.ptr, ctypes.voidptr_t ]);
// TrackerSparql types
tracker.Connection = ctypes.StructType ("TrackerSparqlConnection");
@@ -71,6 +77,21 @@ org.bustany.TrackerBird.TrackerSparql = {
tracker.Error.ptr.ptr
);
+ tracker.connection_open_async = tracker._lib.declare (
+ "tracker_sparql_connection_get_async",
+ ctypes.default_abi,
+ ctypes.void_t,
+ tracker.Cancellable.ptr,
+ tracker.AsyncReadyCallback.ptr,
+ ctypes.voidptr_t);
+
+ tracker.connection_open_finish = tracker._lib.declare (
+ "tracker_sparql_connection_get_finish",
+ ctypes.default_abi,
+ tracker.Connection.ptr,
+ tracker.AsyncResult.ptr,
+ tracker.Error.ptr.ptr);
+
tracker.connection_query = tracker._lib.declare (
"tracker_sparql_connection_query",
ctypes.default_abi,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]