[vala] Add rest-extras-0.7 bindings



commit 6990ea34e6e1260f9c041aa772a14020d668bdc0
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue Sep 23 12:56:37 2014 +0200

    Add rest-extras-0.7 bindings

 vapi/Makefile.am                      |    3 +
 vapi/metadata/RestExtras-0.7.metadata |   10 ++++
 vapi/rest-extras-0.7.deps             |    1 +
 vapi/rest-extras-0.7.vapi             |   91 +++++++++++++++++++++++++++++++++
 4 files changed, 105 insertions(+), 0 deletions(-)
---
diff --git a/vapi/Makefile.am b/vapi/Makefile.am
index f9cb467..bd0e356 100644
--- a/vapi/Makefile.am
+++ b/vapi/Makefile.am
@@ -752,6 +752,9 @@ rest-extras-0.6:
 rest-0.7:
        $(GENVAPI) --library $(srcdir)/rest-0.7 --metadatadir $(METADATADIR) --pkg gio-2.0 
$(GIRDIR)/Rest-0.7.gir
 
+rest-extras-0.7:
+       $(GENVAPI) --library $(srcdir)/rest-extras-0.7 --metadatadir $(METADATADIR) --pkg rest-0.7 
$(GIRDIR)/RestExtras-0.7.gir
+
 tracker-indexer-module-1.0:
        $(GENVAPI) --library $(srcdir)/tracker-indexer-module-1.0 
$(PACKAGESDIR)/tracker-indexer-module-1.0/tracker-indexer-module-1.0-custom.vala 
$(PACKAGESDIR)/tracker-indexer-module-1.0/tracker-indexer-module-1.0.gi
 
diff --git a/vapi/metadata/RestExtras-0.7.metadata b/vapi/metadata/RestExtras-0.7.metadata
new file mode 100644
index 0000000..2fb127a
--- /dev/null
+++ b/vapi/metadata/RestExtras-0.7.metadata
@@ -0,0 +1,10 @@
+RestExtras name="Rest"
+
+FlickrProxy cheader_filename="rest-extras/flickr-proxy.h"
+FlickrProxyCall cheader_filename="rest-extras/flickr-proxy-call.h"
+
+LastfmProxy cheader_filename="rest-extras/lastfm-proxy.h"
+LastfmProxyCall cheader_filename="rest-extras/lastfm-proxy-call.h"
+
+YoutubeProxy cheader_filename="rest-extras/youtube-proxy.h"
+YoutubeProxyUploadCallback cheader_filename="rest-extras/youtube-proxy.h"
diff --git a/vapi/rest-extras-0.7.deps b/vapi/rest-extras-0.7.deps
new file mode 100644
index 0000000..5cbb18a
--- /dev/null
+++ b/vapi/rest-extras-0.7.deps
@@ -0,0 +1 @@
+rest-0.7
diff --git a/vapi/rest-extras-0.7.vapi b/vapi/rest-extras-0.7.vapi
new file mode 100644
index 0000000..7c2a98c
--- /dev/null
+++ b/vapi/rest-extras-0.7.vapi
@@ -0,0 +1,91 @@
+/* rest-extras-0.7.vapi generated by vapigen, do not modify. */
+
+[CCode (cprefix = "", gir_namespace = "RestExtras", gir_version = "0.7", lower_case_cprefix = "_")]
+namespace Rest {
+       [CCode (cheader_filename = "rest-extras/flickr-proxy.h", type_id = "flickr_proxy_get_type ()")]
+       public class FlickrProxy : Rest.Proxy {
+               [CCode (cname = "flickr_proxy_new", has_construct_function = false, type = "RestProxy*")]
+               public FlickrProxy (string api_key, string shared_secret);
+               [CCode (cname = "flickr_proxy_build_login_url")]
+               public string build_login_url (string frob, string perms);
+               [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_new_upload")]
+               public Rest.FlickrProxyCall new_upload ();
+               [CCode (cname = "flickr_proxy_new_upload_for_file")]
+               public Rest.FlickrProxyCall new_upload_for_file (string filename) throws GLib.Error;
+               [CCode (cname = "flickr_proxy_set_token")]
+               public void set_token (string token);
+               [CCode (cname = "flickr_proxy_sign")]
+               public string sign (GLib.HashTable<void*,void*> @params);
+               [CCode (cname = "flickr_proxy_new_with_token", has_construct_function = false, type = 
"RestProxy*")]
+               public FlickrProxy.with_token (string api_key, string shared_secret, string token);
+               [NoAccessorMethod]
+               public string api_key { owned get; construct; }
+               [NoAccessorMethod]
+               public string shared_secret { owned get; construct; }
+               [NoAccessorMethod]
+               public string token { owned get; set; }
+       }
+       [CCode (cheader_filename = "rest-extras/flickr-proxy-call.h", type_id = "flickr_proxy_call_get_type 
()")]
+       public class FlickrProxyCall : Rest.ProxyCall {
+               [CCode (has_construct_function = false)]
+               protected FlickrProxyCall ();
+               public bool upload { construct; }
+       }
+       [CCode (cheader_filename = "rest-extras/lastfm-proxy.h", type_id = "lastfm_proxy_get_type ()")]
+       public class LastfmProxy : Rest.Proxy {
+               [CCode (cname = "lastfm_proxy_new", has_construct_function = false, type = "RestProxy*")]
+               public LastfmProxy (string api_key, string secret);
+               [CCode (cname = "lastfm_proxy_build_login_url")]
+               public string build_login_url (string token);
+               [CCode (cname = "lastfm_proxy_get_api_key")]
+               public unowned string get_api_key ();
+               [CCode (cname = "lastfm_proxy_get_secret")]
+               public unowned string get_secret ();
+               [CCode (cname = "lastfm_proxy_get_session_key")]
+               public unowned string get_session_key ();
+               [CCode (cname = "lastfm_proxy_is_successful")]
+               public static bool is_successful (Rest.XmlNode root) throws GLib.Error;
+               [CCode (cname = "lastfm_proxy_set_session_key")]
+               public void set_session_key (string session_key);
+               [CCode (cname = "lastfm_proxy_sign")]
+               public string sign (GLib.HashTable<void*,void*> @params);
+               [CCode (cname = "lastfm_proxy_new_with_session", has_construct_function = false, type = 
"RestProxy*")]
+               public LastfmProxy.with_session (string api_key, string secret, string session_key);
+               [NoAccessorMethod]
+               public string api_key { owned get; construct; }
+               [NoAccessorMethod]
+               public string secret { owned get; construct; }
+               [NoAccessorMethod]
+               public string session_key { owned get; set; }
+       }
+       [CCode (cheader_filename = "rest-extras/lastfm-proxy-call.h", type_id = "lastfm_proxy_call_get_type 
()")]
+       public class LastfmProxyCall : Rest.ProxyCall {
+               [CCode (has_construct_function = false)]
+               protected LastfmProxyCall ();
+       }
+       [CCode (cheader_filename = "rest-extras/youtube-proxy.h", type_id = "youtube_proxy_get_type ()")]
+       public class YoutubeProxy : Rest.Proxy {
+               [CCode (cname = "youtube_proxy_new", has_construct_function = false, type = "RestProxy*")]
+               public YoutubeProxy (string developer_key);
+               [CCode (cname = "youtube_proxy_set_user_auth")]
+               public void set_user_auth (string user_auth);
+               [CCode (cname = "youtube_proxy_upload_async")]
+               public bool upload_async (string filename, GLib.HashTable<void*,void*> fields, bool 
incomplete, [CCode (delegate_target_pos = 5.1, scope = "async")] owned Rest.YoutubeProxyUploadCallback 
callback, GLib.Object weak_object) throws GLib.Error;
+               [CCode (cname = "youtube_proxy_new_with_auth", has_construct_function = false, type = 
"RestProxy*")]
+               public YoutubeProxy.with_auth (string developer_key, string user_auth);
+               [NoAccessorMethod]
+               public string developer_key { owned get; construct; }
+               [NoAccessorMethod]
+               public string user_auth { owned get; set; }
+       }
+       [CCode (cheader_filename = "rest-extras/youtube-proxy.h", instance_pos = 6.9)]
+       public delegate void YoutubeProxyUploadCallback (Rest.YoutubeProxy proxy, string payload, size_t 
total, size_t uploaded, GLib.Error error, GLib.Object weak_object);
+}


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