]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gstreamer: Fix Gst.Bin parameter/return ownerships and generic type
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 27 Mar 2010 08:44:45 +0000 (09:44 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 8 Apr 2010 08:30:50 +0000 (10:30 +0200)
vapi/gstreamer-0.10.vapi
vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata

index b5883f54a8c19f0e3dcd30a6a47466b3c603f319..5e03c60824665bc9e6123e314f4e6892479629f6 100644 (file)
@@ -22,7 +22,7 @@ namespace Gst {
        [CCode (cheader_filename = "gst/gst.h")]
        public class Bin : Gst.Element, Gst.ChildProxy {
                public weak Gst.Bus child_bus;
-               public weak GLib.List<Gst.Pad> children;
+               public weak GLib.List<Gst.Element> children;
                public uint32 children_cookie;
                public bool clock_dirty;
                public weak Gst.Element clock_provider;
@@ -37,11 +37,11 @@ namespace Gst {
                [NoWrapper]
                public virtual bool add_element (Gst.Element element);
                public void add_many (params owned Gst.Element[] elements);
-               public Gst.Pad find_unconnected_pad (Gst.PadDirection direction);
-               public unowned Gst.Pad find_unlinked_pad (Gst.PadDirection direction);
-               public Gst.Element get_by_interface (GLib.Type iface);
-               public Gst.Element get_by_name (string name);
-               public Gst.Element get_by_name_recurse_up (string name);
+               public Gst.Pad? find_unconnected_pad (Gst.PadDirection direction);
+               public Gst.Pad? find_unlinked_pad (Gst.PadDirection direction);
+               public Gst.Element? get_by_interface (GLib.Type iface);
+               public Gst.Element? get_by_name (string name);
+               public Gst.Element? get_by_name_recurse_up (string name);
                [NoWrapper]
                public virtual void handle_message (Gst.Message message);
                public Gst.Iterator iterate_all_by_interface (GLib.Type iface);
@@ -51,10 +51,10 @@ namespace Gst {
                public Gst.Iterator iterate_sorted ();
                public Gst.Iterator iterate_sources ();
                public bool recalculate_latency ();
-               public bool remove (Gst.Element element);
+               public bool remove (owned Gst.Element element);
                [NoWrapper]
                public virtual bool remove_element (Gst.Element element);
-               public void remove_many (Gst.Element element_1, ...);
+               public void remove_many (params owned Gst.Element[] elements);
                [NoAccessorMethod]
                public bool async_handling { get; set; }
                public virtual signal bool do_latency ();
index 38a32c47c2b4224df90b9fc51ff7efc0a73fd315..4a3dbce5e39b02ad88cc2a0665e8d11205a61c86 100644 (file)
@@ -46,6 +46,7 @@ namespace Gst {
 
        public class Bin {
                public void add_many (params owned Gst.Element[] elements);
+               public void remove_many (params owned Gst.Element[] elements);
        }
 
        [CCode (ref_function = "gst_buffer_ref", unref_function = "gst_buffer_unref")]
index 49ab653d3078b1c43b12fee8f81b79c42b886cc4..50782bf75cebb3edafdf329643dec161e2d63649 100644 (file)
@@ -2,21 +2,23 @@ Gst cprefix="Gst" lower_case_cprefix="gst_" cheader_filename="gst/gst.h"
 GstAllocTrace.mem_live type_arguments="pointer"
 gst_alloc_trace_list type_arguments="AllocTrace"
 GstBin.priv hidden="1"
-GstBin.children type_arguments="Pad"
+GstBin.children type_arguments="Element"
 GstBin.messages type_arguments="Message"
 gst_bin_add.element value_owned="1"
+gst_bin_remove.element value_owned="1"
 gst_bin_add_many hidden="1"
-gst_bin_remove_many ellipsis="1"
-gst_bin_get_by_name transfer_ownership="1"
-gst_bin_get_by_name_recurse_up transfer_ownership="1"
-gst_bin_get_by_interface transfer_ownership="1"
+gst_bin_remove_many hidden="1"
+gst_bin_get_by_name transfer_ownership="1" nullable="1"
+gst_bin_get_by_name_recurse_up transfer_ownership="1" nullable="1"
+gst_bin_get_by_interface transfer_ownership="1" nullable="1"
 gst_bin_iterate_elements transfer_ownership="1"
 gst_bin_iterate_recurse transfer_ownership="1"
 gst_bin_iterate_sinks transfer_ownership="1"
 gst_bin_iterate_sorted transfer_ownership="1"
 gst_bin_iterate_sources transfer_ownership="1"
 gst_bin_iterate_all_by_interface transfer_ownership="1"
-gst_bin_find_unconnected_pad transfer_ownership="1"
+gst_bin_find_unconnected_pad transfer_ownership="1" nullable="1"
+gst_bin_find_unlinked_pad transfer_ownership="1" nullable="1"
 GstBuffer base_class="GstMiniObject"
 GstBuffer.data is_array="1" array_length_cname="size" array_length_type="guint" type_name="uint8"
 GstBuffer.mini_object hidden="1"