From: Adrien Bustany Date: Sun, 13 Jun 2010 18:00:57 +0000 (-0400) Subject: rest-0.6: Make Rest.ProxyCall a GObject X-Git-Tag: 0.9.2~55 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=405908c5e355152b8a24533c1cd88adcfc6781c8;p=thirdparty%2Fvala.git rest-0.6: Make Rest.ProxyCall a GObject The Rest.ProxyCall class was incorrectly detected as a Compact, non GObject class by vapigen. --- diff --git a/vapi/packages/rest-0.6/rest-0.6-custom.vala b/vapi/packages/rest-0.6/rest-0.6-custom.vala index fa7c1db25..7c2903932 100644 --- a/vapi/packages/rest-0.6/rest-0.6-custom.vala +++ b/vapi/packages/rest-0.6/rest-0.6-custom.vala @@ -3,5 +3,9 @@ namespace Rest { public class Proxy : GLib.Object { public Rest.ProxyCall new_call (); } + + [CCode (cheader_filename = "rest/rest-proxy-call.h")] + public class ProxyCall : GLib.Object { + } } diff --git a/vapi/rest-0.6.vapi b/vapi/rest-0.6.vapi index ca2f429cb..5a60555ab 100644 --- a/vapi/rest-0.6.vapi +++ b/vapi/rest-0.6.vapi @@ -52,9 +52,8 @@ namespace Rest { public bool simple_run (string payload, int64 len) throws GLib.Error; public bool simple_run_valist (string payload, int64 len, void* @params) throws GLib.Error; } - [Compact] [CCode (cheader_filename = "rest/rest-proxy-call.h")] - public class ProxyCall { + public class ProxyCall : GLib.Object { public weak GLib.Object parent; public void add_header (string header, string value); public void add_headers (...); @@ -103,11 +102,6 @@ namespace Rest { public XmlParser (); public unowned Rest.XmlNode parse_from_data (string data, int64 len); } - [Compact] - [CCode (cheader_filename = "rest/rest-xml-parser.h")] - public class XmlParserClass { - public weak GLib.ObjectClass parent_class; - } [CCode (cprefix = "", has_type_id = false, cheader_filename = "rest/oauth-proxy.h")] public enum OAuthSignatureMethod { PLAINTEXT,