[vala] gstreamer-0.10: Fix gst_xml_* bindings



commit 392bb600fbda248bba205964c4536e8ad512469a
Author: Eric Alber <eric alber gmail com>
Date:   Thu Sep 3 22:17:58 2009 +0200

    gstreamer-0.10: Fix gst_xml_* bindings
    
    Fixes bug 593853.

 vapi/gstreamer-0.10.vapi                           |    6 +++---
 .../gstreamer-0.10/gstreamer-0.10-custom.vala      |    8 +++++++-
 .../gstreamer-0.10/gstreamer-0.10.metadata         |    3 +++
 3 files changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/vapi/gstreamer-0.10.vapi b/vapi/gstreamer-0.10.vapi
index b68f116..86b34de 100644
--- a/vapi/gstreamer-0.10.vapi
+++ b/vapi/gstreamer-0.10.vapi
@@ -1282,13 +1282,13 @@ namespace Gst {
 		public weak GLib.List topelements;
 		[CCode (has_construct_function = false)]
 		public XML ();
-		public unowned Gst.Element get_element (uchar[] name);
+		public unowned Gst.Element get_element (string name);
 		public unowned GLib.List get_topelements ();
 		public static unowned Gst.Element make_element (void* cur, Gst.Object parent);
 		[NoWrapper]
 		public virtual void object_saved (Gst.Object object, void* self);
-		public bool parse_doc (void* doc, uchar[] root);
-		public bool parse_file (uchar[] fname, uchar[] root);
+		public bool parse_doc (void* doc, string root);
+		public bool parse_file (string fname, string root);
 		public bool parse_memory (uchar[] buffer, uint size, string root);
 		public static void* write (Gst.Element element);
 		public static int write_file (Gst.Element element, GLib.FileStream @out);
diff --git a/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala b/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
index 335a6a6..29cd913 100644
--- a/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
+++ b/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
@@ -237,5 +237,11 @@ namespace Gst {
 		public uint array_get_size ();
 		public weak Gst.Value? array_get_value (uint index);
 		public void array_prepend_value (Gst.Value prepend_value);
-	} 
+	}
+
+	public class XML {
+		public bool parse_doc(void* doc, string root);
+		public bool parse_file(string fname, string root);
+		public unowned Element get_element(string name);
+	}
 }
diff --git a/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata b/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata
index 1cd33ab..919d303 100644
--- a/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata
+++ b/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata
@@ -404,4 +404,7 @@ GstURIHandler::new_uri has_emitter="1"
 gst_uri_handler_get_protocols is_array="1"
 gst_uri_handler_get_protocols_full is_array="1"
 gst_version_string transfer_ownership="1"
+gst_xml_parse_doc hidden="1"
+gst_xml_parse_file hidden="1"
+gst_xml_get_element hidden="1"
 xml* name="pointer"



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