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



Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez igalia com>
---
 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(-)
 create mode 100644 bindings/vala/grilo-0.1/grilo-0.1.deps

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>
-- 
1.7.0



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