]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
rest-0.6: Make Rest.ProxyCall a GObject
authorAdrien Bustany <abustany@gnome.org>
Sun, 13 Jun 2010 18:00:57 +0000 (14:00 -0400)
committerAdrien Bustany <abustany@gnome.org>
Sun, 13 Jun 2010 18:03:25 +0000 (14:03 -0400)
The Rest.ProxyCall class was incorrectly detected as a Compact, non
GObject class by vapigen.

vapi/packages/rest-0.6/rest-0.6-custom.vala
vapi/rest-0.6.vapi

index fa7c1db254fe8a52a13663a6b55ee073a2736a16..7c2903932e327952983ea16f61ec59a1dd3ca499 100644 (file)
@@ -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 {
+       }
 }
 
index ca2f429cb16c6ea74b9c5a1965ff375e560a0592..5a60555ab427f23e1a2ea27f7fdd387d77221667 100644 (file)
@@ -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,