[vala] rest-0.6: Fix XmlParser



commit e4ba1ecd04756ef0e885deda70b1d6af4c13a2cb
Author: Adrien Bustany <abustany gnome org>
Date:   Thu Jun 24 17:04:58 2010 +0200

    rest-0.6: Fix XmlParser
    
    This commit properly tags XmlParser as a GObject

 vapi/packages/rest-0.6/rest-0.6-custom.vala |    8 ++++++++
 vapi/packages/rest-0.6/rest-0.6.metadata    |    1 +
 vapi/rest-0.6.vapi                          |   11 ++---------
 3 files changed, 11 insertions(+), 9 deletions(-)
---
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 7c29039..3a19269 100644
--- a/vapi/packages/rest-0.6/rest-0.6-custom.vala
+++ b/vapi/packages/rest-0.6/rest-0.6-custom.vala
@@ -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 {
+		}
 }
 
diff --git a/vapi/packages/rest-0.6/rest-0.6.metadata b/vapi/packages/rest-0.6/rest-0.6.metadata
index 84f0f46..d8b6fb3 100644
--- a/vapi/packages/rest-0.6/rest-0.6.metadata
+++ b/vapi/packages/rest-0.6/rest-0.6.metadata
@@ -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"
diff --git a/vapi/rest-0.6.vapi b/vapi/rest-0.6.vapi
index 5a60555..3ad53d6 100644
--- a/vapi/rest-0.6.vapi
+++ b/vapi/rest-0.6.vapi
@@ -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);



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