[tracker] firefox: Add bindings for tracker_sparql_connection_get_async



commit b8acfd7a33b18b4248c2b854264aada2c7df94a3
Author: Adrien Bustany <adrien bustany nokia com>
Date:   Thu Aug 4 18:36:51 2011 +0300

    firefox: Add bindings for tracker_sparql_connection_get_async

 src/plugins/firefox/chrome/content/bindings.js |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/firefox/chrome/content/bindings.js b/src/plugins/firefox/chrome/content/bindings.js
index 6df8d21..87c2756 100644
--- a/src/plugins/firefox/chrome/content/bindings.js
+++ b/src/plugins/firefox/chrome/content/bindings.js
@@ -29,12 +29,18 @@ org.bustany.TrackerFox.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");
@@ -64,6 +70,21 @@ org.bustany.TrackerFox.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]