]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
rest-0.6: Fix XmlParser
authorAdrien Bustany <abustany@gnome.org>
Thu, 24 Jun 2010 15:04:58 +0000 (17:04 +0200)
committerAdrien Bustany <abustany@gnome.org>
Thu, 24 Jun 2010 15:05:34 +0000 (17:05 +0200)
This commit properly tags XmlParser as a GObject

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

index 7c2903932e327952983ea16f61ec59a1dd3ca499..3a192694c209b7388a6083a5bd853d4dfe7e9f4e 100644 (file)
@@ -7,5 +7,13 @@ namespace Rest {
        [CCode (cheader_filename = "rest/rest-proxy-call.h")]
        public class ProxyCall : GLib.Object {
        }
+
+       [CCode (cheader_filename = "rest/rest-xml-parser.h")]
+       public class XmlParser : GLib.Object {
+       }
+
+       [CCode (cheader_filename = "rest/oauth-proxy.h")]
+               public class OAuthProxy : Rest.Proxy {
+               }
 }
 
index 84f0f468907d288492c25ba6209911b46ce5390e..d8b6fb3a8433a8c81570696b0b87e2935d0aed7c 100644 (file)
@@ -10,6 +10,7 @@ OAuthProxyAuthCallback cheader_filename="rest/oauth-proxy.h" has_target="1"
 RestProxyCallAsyncCallback cheader_filename="rest/rest-proxy-call.h" has_target="1"
 *.priv hidden="1"
 *Class hidden="1"
+*.parent hidden="1"
 
 rest_proxy_call_get_params type_arguments="string,string"
 rest_proxy_bind ellipsis="1"
index 5a60555ab427f23e1a2ea27f7fdd387d77221667..3ad53d6a03404f2e9ee1cfc5c2cee71214003e34 100644 (file)
@@ -2,10 +2,8 @@
 
 [CCode (cprefix = "Rest", lower_case_cprefix = "rest_")]
 namespace Rest {
-       [Compact]
        [CCode (cheader_filename = "rest/oauth-proxy.h")]
-       public class OAuthProxy {
-               public weak Rest.Proxy parent;
+       public class OAuthProxy : Rest.Proxy {
                [CCode (cname = "oauth_proxy_new", type = "RestProxy*", has_construct_function = false)]
                public OAuthProxy (string consumer_key, string consumer_secret, string url_format, bool binding_required);
                [CCode (cname = "oauth_proxy_access_token")]
@@ -36,11 +34,9 @@ namespace Rest {
        [Compact]
        [CCode (cheader_filename = "rest/oauth-proxy-call.h")]
        public class OAuthProxyCall {
-               public weak Rest.ProxyCall parent;
        }
        [CCode (cheader_filename = "rest/rest-proxy.h")]
        public class Proxy : GLib.Object {
-               public weak GLib.Object parent;
                [CCode (has_construct_function = false)]
                public Proxy (string url_format, bool binding_required);
                public bool bind (...);
@@ -54,7 +50,6 @@ namespace Rest {
        }
        [CCode (cheader_filename = "rest/rest-proxy-call.h")]
        public class ProxyCall : GLib.Object {
-               public weak GLib.Object parent;
                public void add_header (string header, string value);
                public void add_headers (...);
                public void add_headers_from_valist (void* headers);
@@ -94,10 +89,8 @@ namespace Rest {
                public unowned Rest.XmlNode find (string tag);
                public unowned string get_attr (string attr_name);
        }
-       [Compact]
        [CCode (cheader_filename = "rest/rest-xml-parser.h")]
-       public class XmlParser {
-               public weak GLib.Object parent;
+       public class XmlParser : GLib.Object {
                [CCode (has_construct_function = false)]
                public XmlParser ();
                public unowned Rest.XmlNode parse_from_data (string data, int64 len);