[grilo] [vala] update GI and vapi files for async methods support



commit 713d1badf5a6cd0168ddb4c6bf1800690d3b5d73
Author: Víctor Manuel Jáquez Leal <vjaquez igalia com>
Date:   Sat Apr 10 17:44:06 2010 +0200

    [vala] update GI and vapi files for async methods support

 bindings/vala/grilo-0.1.vapi           |    2 ++
 bindings/vala/grilo-0.1/grilo-0.1.deps |    1 +
 bindings/vala/grilo-0.1/grilo-0.1.gi   |   28 ++++++++++++++++++++++++++++
 3 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/bindings/vala/grilo-0.1.vapi b/bindings/vala/grilo-0.1.vapi
index 567d56a..9b340ab 100644
--- a/bindings/vala/grilo-0.1.vapi
+++ b/bindings/vala/grilo-0.1.vapi
@@ -196,6 +196,8 @@ namespace Grl {
 		public unowned string get_name ();
 		public virtual unowned GLib.List key_depends (Grl.KeyID key_id);
 		public virtual void resolve (GLib.List keys, Grl.Media media, Grl.MetadataResolutionFlags flags, Grl.MetadataSourceResolveCb callback);
+		public virtual async unowned Grl.Media resolve_async (GLib.List keys, Grl.Media media, Grl.MetadataResolutionFlags flags) throws GLib.Error;
+		public unowned Grl.Media resolve_finish (GLib.AsyncResult res) throws GLib.Error;
 		public virtual void set_metadata (Grl.Media media, GLib.List keys, Grl.MetadataWritingFlags flags, Grl.MetadataSourceSetMetadataCb callback);
 		public virtual unowned GLib.List slow_keys ();
 		public virtual unowned GLib.List supported_keys ();
diff --git a/bindings/vala/grilo-0.1/grilo-0.1.deps b/bindings/vala/grilo-0.1/grilo-0.1.deps
new file mode 100644
index 0000000..cd10dfd
--- /dev/null
+++ b/bindings/vala/grilo-0.1/grilo-0.1.deps
@@ -0,0 +1 @@
+gio-2.0
diff --git a/bindings/vala/grilo-0.1/grilo-0.1.gi b/bindings/vala/grilo-0.1/grilo-0.1.gi
index 08f1ead..a5c536f 100644
--- a/bindings/vala/grilo-0.1/grilo-0.1.gi
+++ b/bindings/vala/grilo-0.1/grilo-0.1.gi
@@ -656,6 +656,25 @@
 					<parameter name="user_data" type="gpointer"/>
 				</parameters>
 			</method>
+			<method name="resolve_async" symbol="grl_metadata_source_resolve_async">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="source" type="GrlMetadataSource*"/>
+					<parameter name="keys" type="GList*"/>
+					<parameter name="media" type="GrlMedia*"/>
+					<parameter name="flags" type="GrlMetadataResolutionFlags"/>
+					<parameter name="callback" type="GAsyncReadyCallback"/>
+					<parameter name="user_data" type="gpointer"/>
+				</parameters>
+			</method>
+			<method name="resolve_finish" symbol="grl_metadata_source_resolve_finish">
+				<return-type type="GrlMedia*"/>
+				<parameters>
+					<parameter name="source" type="GrlMetadataSource*"/>
+					<parameter name="res" type="GAsyncResult*"/>
+					<parameter name="error" type="GError**"/>
+				</parameters>
+			</method>
 			<method name="set_metadata" symbol="grl_metadata_source_set_metadata">
 				<return-type type="void"/>
 				<parameters>
@@ -708,6 +727,15 @@
 					<parameter name="rs" type="GrlMetadataSourceResolveSpec*"/>
 				</parameters>
 			</vfunc>
+			<vfunc name="resolve_async">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="source" type="GrlMetadataSource*"/>
+					<parameter name="keys" type="GList*"/>
+					<parameter name="media" type="GrlMedia*"/>
+					<parameter name="flags" type="GrlMetadataResolutionFlags"/>
+				</parameters>
+			</vfunc>
 			<vfunc name="set_metadata">
 				<return-type type="void"/>
 				<parameters>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]