]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gstreamer: Fix Gst.ElementFactory bindings
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 27 Mar 2010 15:47:21 +0000 (16:47 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 8 Apr 2010 08:30:51 +0000 (10:30 +0200)
Use correct ownership of returns/parameters, correct
generic types and hide private API.

vapi/gstreamer-0.10.vapi
vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata

index d0622c30e5d1d7ae94e6567b04ad5b8758bf19da..61dd1afdc27da4ab76b15d608eb5a7d5dffbc999 100644 (file)
@@ -429,25 +429,19 @@ namespace Gst {
        }
        [CCode (cheader_filename = "gst/gst.h")]
        public class ElementFactory : Gst.PluginFeature {
-               public Gst.ElementDetails details;
-               public weak GLib.List interfaces;
-               public uint numpadtemplates;
-               public weak GLib.List staticpadtemplates;
-               public GLib.Type type;
-               public weak string uri_protocols;
-               public uint uri_type;
                public bool can_sink_caps (Gst.Caps caps);
                public bool can_src_caps (Gst.Caps caps);
                public Gst.Element? create (string? name);
-               public static unowned Gst.ElementFactory find (string name);
+               public static Gst.ElementFactory? find (string name);
                public unowned string get_author ();
                public unowned string get_description ();
                public GLib.Type get_element_type ();
                public unowned string get_klass ();
                public unowned string get_longname ();
                public uint get_num_pad_templates ();
-               public unowned GLib.List get_static_pad_templates ();
-               public unowned string get_uri_protocols ();
+               public unowned GLib.List<Gst.StaticPadTemplate> get_static_pad_templates ();
+               [CCode (array_length = false, array_null_terminated = true)]
+               public string[]? get_uri_protocols ();
                public int get_uri_type ();
                public bool has_interface (string interfacename);
                public static Gst.Element? make (string factoryname, string? name);
index cf5c003f6af6ae599dd84a07ce176198a0babd4f..6e260501218479e2f6a8d528cc1ff9c5b3d32a20 100644 (file)
@@ -162,10 +162,14 @@ gst_element_register.plugin nullable="1"
 gst_element_message_full.text nullable="1"
 gst_element_message_full.debug nullable="1"
 GstElementDetails is_value_type="1"
+GstElementFactory.* hidden="1"
 gst_element_factory_make transfer_ownership="1" nullable="1"
 gst_element_factory_make.name nullable="1"
 gst_element_factory_create transfer_ownership="1" nullable="1"
 gst_element_factory_create.name nullable="1"
+gst_element_factory_get_static_pad_templates type_arguments="StaticPadTemplate"
+gst_element_factory_find transfer_ownership="1" nullable="1"
+gst_element_factory_get_uri_protocols is_array="1" array_null_terminated="1" transfer_ownership="1" nullable="1"
 GstEvent base_class="GstMiniObject"
 GstEvent.mini_object hidden="1"
 GstEventClass hidden="1"