diff --git a/vapi/gstreamer-0.10.vapi b/vapi/gstreamer-0.10.vapi index 75f793c..e47a4a7 100644 --- a/vapi/gstreamer-0.10.vapi +++ b/vapi/gstreamer-0.10.vapi @@ -1280,16 +1280,17 @@ namespace Gst { public class XML : Gst.Object { public void* ns; public weak GLib.List topelements; - public unowned Gst.Element get_element (uchar[] name); + [CCode (cname = "gst_xml_parse_element")] + 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); [CCode (has_construct_function = false)] public XML (); [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_memory (uchar[] buffer, uint size, string root); + public bool parse_doc (void* doc, string root); + public bool parse_file (string fname, string root); + public bool parse_memory (string buffer, uint size, string root); public static void* write (Gst.Element element); public static int write_file (Gst.Element element, GLib.FileStream @out); public virtual signal void object_loaded (Gst.Object object, void* self); 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 11560ca..c54f972 100644 --- a/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala +++ b/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala @@ -233,5 +233,17 @@ 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 + { + [CCode (cname = "gst_xml_parse_doc")] + public bool parse_doc(void* doc, string root); + [CCode (cname = "gst_xml_parse_file")] + public bool parse_file(string fname, string root); + [CCode (cname = "gst_xml_parse_memory")] + public bool parse_memory(string buffer, uint size, string root); + [CCode (cname = "gst_xml_parse_element")] + 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 310c154..11eeb9e 100644 --- a/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata +++ b/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata @@ -401,4 +401,8 @@ 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_parse_memory hidden="1" +gst_xml_get_element hidden="1" xml* name="pointer"