[vala] Add bindings for rest-extras-0.6



commit 227400bdab84e0df3c3719f7baa8ca059522c56b
Author: Adrien Bustany <abustany gnome org>
Date:   Thu May 27 13:25:44 2010 -0400

    Add bindings for rest-extras-0.6

 .../rest-extras-0.6/rest-extras-0.6-custom.vala    |   14 ++
 .../packages/rest-extras-0.6/rest-extras-0.6.files |    1 +
 vapi/packages/rest-extras-0.6/rest-extras-0.6.gi   |  164 ++++++++++++++++++++
 .../rest-extras-0.6/rest-extras-0.6.metadata       |    7 +
 .../rest-extras-0.6/rest-extras-0.6.namespace      |    1 +
 vapi/rest-extras-0.6.deps                          |    1 +
 vapi/rest-extras-0.6.vapi                          |   57 +++++++
 7 files changed, 245 insertions(+), 0 deletions(-)
---
diff --git a/vapi/packages/rest-extras-0.6/rest-extras-0.6-custom.vala b/vapi/packages/rest-extras-0.6/rest-extras-0.6-custom.vala
new file mode 100644
index 0000000..a53a344
--- /dev/null
+++ b/vapi/packages/rest-extras-0.6/rest-extras-0.6-custom.vala
@@ -0,0 +1,14 @@
+namespace Rest {
+	[CCode (cname="FacebookProxy", cheader_filename = "rest-extras/facebook-proxy.h")]
+	public class FacebookProxy : Rest.Proxy {
+	}
+	[CCode (cname="FacebookProxyCall", cheader_filename = "rest-extras/facebook-proxy-call.h")]
+	public class FacebookProxyCall : Rest.ProxyCall {
+	}
+	[CCode (cname="FlickrProxy", cheader_filename = "rest-extras/flickr-proxy.h")]
+	public class FlickrProxy : Rest.Proxy {
+	}
+	[CCode (cname="FlickrProxyCall", cheader_filename = "rest-extras/flickr-proxy-call.h")]
+	public class FlickrProxyCall : Rest.ProxyCall {
+	}
+}
diff --git a/vapi/packages/rest-extras-0.6/rest-extras-0.6.files b/vapi/packages/rest-extras-0.6/rest-extras-0.6.files
new file mode 100644
index 0000000..39c0eed
--- /dev/null
+++ b/vapi/packages/rest-extras-0.6/rest-extras-0.6.files
@@ -0,0 +1 @@
+include/rest-0.6/rest-extras/*.h
diff --git a/vapi/packages/rest-extras-0.6/rest-extras-0.6.gi b/vapi/packages/rest-extras-0.6/rest-extras-0.6.gi
new file mode 100644
index 0000000..f06c22e
--- /dev/null
+++ b/vapi/packages/rest-extras-0.6/rest-extras-0.6.gi
@@ -0,0 +1,164 @@
+<?xml version="1.0"?>
+<api version="1.0">
+	<namespace name="Rest">
+		<struct name="FacebookProxy">
+			<method name="build_login_url" symbol="facebook_proxy_build_login_url">
+				<return-type type="char*"/>
+				<parameters>
+					<parameter name="proxy" type="FacebookProxy*"/>
+					<parameter name="frob" type="char*"/>
+				</parameters>
+			</method>
+			<method name="build_permission_url" symbol="facebook_proxy_build_permission_url">
+				<return-type type="char*"/>
+				<parameters>
+					<parameter name="proxy" type="FacebookProxy*"/>
+					<parameter name="perms" type="char*"/>
+				</parameters>
+			</method>
+			<method name="get_api_key" symbol="facebook_proxy_get_api_key">
+				<return-type type="char*"/>
+				<parameters>
+					<parameter name="proxy" type="FacebookProxy*"/>
+				</parameters>
+			</method>
+			<method name="get_app_secret" symbol="facebook_proxy_get_app_secret">
+				<return-type type="char*"/>
+				<parameters>
+					<parameter name="proxy" type="FacebookProxy*"/>
+				</parameters>
+			</method>
+			<method name="get_session_key" symbol="facebook_proxy_get_session_key">
+				<return-type type="char*"/>
+				<parameters>
+					<parameter name="proxy" type="FacebookProxy*"/>
+				</parameters>
+			</method>
+			<method name="new" symbol="facebook_proxy_new">
+				<return-type type="RestProxy*"/>
+				<parameters>
+					<parameter name="api_key" type="char*"/>
+					<parameter name="app_secret" type="char*"/>
+				</parameters>
+			</method>
+			<method name="new_with_session" symbol="facebook_proxy_new_with_session">
+				<return-type type="RestProxy*"/>
+				<parameters>
+					<parameter name="api_key" type="char*"/>
+					<parameter name="app_secret" type="char*"/>
+					<parameter name="session_key" type="char*"/>
+				</parameters>
+			</method>
+			<method name="set_app_secret" symbol="facebook_proxy_set_app_secret">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="proxy" type="FacebookProxy*"/>
+					<parameter name="secret" type="char*"/>
+				</parameters>
+			</method>
+			<method name="set_session_key" symbol="facebook_proxy_set_session_key">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="proxy" type="FacebookProxy*"/>
+					<parameter name="session_key" type="char*"/>
+				</parameters>
+			</method>
+			<method name="sign" symbol="facebook_proxy_sign">
+				<return-type type="char*"/>
+				<parameters>
+					<parameter name="proxy" type="FacebookProxy*"/>
+					<parameter name="params" type="GHashTable*"/>
+				</parameters>
+			</method>
+			<field name="parent" type="RestProxy"/>
+			<field name="priv" type="FacebookProxyPrivate*"/>
+		</struct>
+		<struct name="FacebookProxyCall">
+			<field name="parent" type="RestProxyCall"/>
+		</struct>
+		<struct name="FacebookProxyCallClass">
+			<field name="parent_class" type="RestProxyCallClass"/>
+			<field name="_padding_dummy" type="gpointer[]"/>
+		</struct>
+		<struct name="FacebookProxyClass">
+			<field name="parent_class" type="RestProxyClass"/>
+			<field name="_padding_dummy" type="gpointer[]"/>
+		</struct>
+		<struct name="FlickrProxy">
+			<method name="build_login_url" symbol="flickr_proxy_build_login_url">
+				<return-type type="char*"/>
+				<parameters>
+					<parameter name="proxy" type="FlickrProxy*"/>
+					<parameter name="frob" type="char*"/>
+				</parameters>
+			</method>
+			<method name="get_api_key" symbol="flickr_proxy_get_api_key">
+				<return-type type="char*"/>
+				<parameters>
+					<parameter name="proxy" type="FlickrProxy*"/>
+				</parameters>
+			</method>
+			<method name="get_shared_secret" symbol="flickr_proxy_get_shared_secret">
+				<return-type type="char*"/>
+				<parameters>
+					<parameter name="proxy" type="FlickrProxy*"/>
+				</parameters>
+			</method>
+			<method name="get_token" symbol="flickr_proxy_get_token">
+				<return-type type="char*"/>
+				<parameters>
+					<parameter name="proxy" type="FlickrProxy*"/>
+				</parameters>
+			</method>
+			<method name="is_successful" symbol="flickr_proxy_is_successful">
+				<return-type type="gboolean"/>
+				<parameters>
+					<parameter name="root" type="RestXmlNode*"/>
+					<parameter name="error" type="GError**"/>
+				</parameters>
+			</method>
+			<method name="new" symbol="flickr_proxy_new">
+				<return-type type="RestProxy*"/>
+				<parameters>
+					<parameter name="api_key" type="char*"/>
+					<parameter name="shared_secret" type="char*"/>
+				</parameters>
+			</method>
+			<method name="new_with_token" symbol="flickr_proxy_new_with_token">
+				<return-type type="RestProxy*"/>
+				<parameters>
+					<parameter name="api_key" type="char*"/>
+					<parameter name="shared_secret" type="char*"/>
+					<parameter name="token" type="char*"/>
+				</parameters>
+			</method>
+			<method name="set_token" symbol="flickr_proxy_set_token">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="proxy" type="FlickrProxy*"/>
+					<parameter name="token" type="char*"/>
+				</parameters>
+			</method>
+			<method name="sign" symbol="flickr_proxy_sign">
+				<return-type type="char*"/>
+				<parameters>
+					<parameter name="proxy" type="FlickrProxy*"/>
+					<parameter name="params" type="GHashTable*"/>
+				</parameters>
+			</method>
+			<field name="parent" type="RestProxy"/>
+			<field name="priv" type="FlickrProxyPrivate*"/>
+		</struct>
+		<struct name="FlickrProxyCall">
+			<field name="parent" type="RestProxyCall"/>
+		</struct>
+		<struct name="FlickrProxyCallClass">
+			<field name="parent_class" type="RestProxyCallClass"/>
+			<field name="_padding_dummy" type="gpointer[]"/>
+		</struct>
+		<struct name="FlickrProxyClass">
+			<field name="parent_class" type="RestProxyClass"/>
+			<field name="_padding_dummy" type="gpointer[]"/>
+		</struct>
+	</namespace>
+</api>
diff --git a/vapi/packages/rest-extras-0.6/rest-extras-0.6.metadata b/vapi/packages/rest-extras-0.6/rest-extras-0.6.metadata
new file mode 100644
index 0000000..11e2178
--- /dev/null
+++ b/vapi/packages/rest-extras-0.6/rest-extras-0.6.metadata
@@ -0,0 +1,7 @@
+FacebookProxy cheader_filename="rest-extras/facebook-proxy.h"
+FacebookProxyCall cheader_filename="rest-extras/facebook-proxy-call.h"
+FlickrProxy cheader_filename="rest-extras/flickr-proxy.h"
+FlickrProxyCall cheader_filename="rest-extras/flickr-proxy-call.h"
+*.parent hidden="1"
+*.priv hidden="1"
+*Class hidden="1"
diff --git a/vapi/packages/rest-extras-0.6/rest-extras-0.6.namespace b/vapi/packages/rest-extras-0.6/rest-extras-0.6.namespace
new file mode 100644
index 0000000..1506a72
--- /dev/null
+++ b/vapi/packages/rest-extras-0.6/rest-extras-0.6.namespace
@@ -0,0 +1 @@
+Rest
diff --git a/vapi/rest-extras-0.6.deps b/vapi/rest-extras-0.6.deps
new file mode 100644
index 0000000..9835603
--- /dev/null
+++ b/vapi/rest-extras-0.6.deps
@@ -0,0 +1 @@
+rest-0.6
diff --git a/vapi/rest-extras-0.6.vapi b/vapi/rest-extras-0.6.vapi
new file mode 100644
index 0000000..3166f6a
--- /dev/null
+++ b/vapi/rest-extras-0.6.vapi
@@ -0,0 +1,57 @@
+/* rest-extras-0.6.vapi generated by vapigen, do not modify. */
+
+[CCode (cprefix = "Rest", lower_case_cprefix = "rest_")]
+namespace Rest {
+	[CCode (cname = "FacebookProxy", cheader_filename = "rest-extras/facebook-proxy.h")]
+	public class FacebookProxy : Rest.Proxy {
+		[CCode (cname = "facebook_proxy_new", type = "RestProxy*", has_construct_function = false)]
+		public FacebookProxy (string api_key, string app_secret);
+		[CCode (cname = "facebook_proxy_build_login_url")]
+		public unowned string build_login_url (string frob);
+		[CCode (cname = "facebook_proxy_build_permission_url")]
+		public unowned string build_permission_url (string perms);
+		[CCode (cname = "facebook_proxy_get_api_key")]
+		public unowned string get_api_key ();
+		[CCode (cname = "facebook_proxy_get_app_secret")]
+		public unowned string get_app_secret ();
+		[CCode (cname = "facebook_proxy_get_session_key")]
+		public unowned string get_session_key ();
+		[CCode (cname = "facebook_proxy_set_app_secret")]
+		public void set_app_secret (string secret);
+		[CCode (cname = "facebook_proxy_set_session_key")]
+		public void set_session_key (string session_key);
+		[CCode (cname = "facebook_proxy_sign")]
+		public unowned string sign (GLib.HashTable @params);
+		[CCode (cname = "facebook_proxy_new_with_session", type = "RestProxy*", has_construct_function = false)]
+		public FacebookProxy.with_session (string api_key, string app_secret, string session_key);
+	}
+	[Compact]
+	[CCode (free_function = "rest_proxy_call_free", cname = "FacebookProxyCall", cheader_filename = "rest-extras/facebook-proxy-call.h")]
+	public class FacebookProxyCall : Rest.ProxyCall {
+	}
+	[CCode (cname = "FlickrProxy", cheader_filename = "rest-extras/flickr-proxy.h")]
+	public class FlickrProxy : Rest.Proxy {
+		[CCode (cname = "flickr_proxy_new", type = "RestProxy*", has_construct_function = false)]
+		public FlickrProxy (string api_key, string shared_secret);
+		[CCode (cname = "flickr_proxy_build_login_url")]
+		public unowned string build_login_url (string frob);
+		[CCode (cname = "flickr_proxy_get_api_key")]
+		public unowned string get_api_key ();
+		[CCode (cname = "flickr_proxy_get_shared_secret")]
+		public unowned string get_shared_secret ();
+		[CCode (cname = "flickr_proxy_get_token")]
+		public unowned string get_token ();
+		[CCode (cname = "flickr_proxy_is_successful")]
+		public static bool is_successful (Rest.XmlNode root) throws GLib.Error;
+		[CCode (cname = "flickr_proxy_set_token")]
+		public void set_token (string token);
+		[CCode (cname = "flickr_proxy_sign")]
+		public unowned string sign (GLib.HashTable @params);
+		[CCode (cname = "flickr_proxy_new_with_token", type = "RestProxy*", has_construct_function = false)]
+		public FlickrProxy.with_token (string api_key, string shared_secret, string token);
+	}
+	[Compact]
+	[CCode (free_function = "rest_proxy_call_free", cname = "FlickrProxyCall", cheader_filename = "rest-extras/flickr-proxy-call.h")]
+	public class FlickrProxyCall : Rest.ProxyCall {
+	}
+}



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