]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gstreamer: Fix ownerships in Gst.Caps bindings and remove private API
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 27 Mar 2010 09:17:09 +0000 (10:17 +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 8c8eddd6ef6ea8763297d858dccee5d4eb5b9699..d92ac714d570ef143baa3da7d084d3acc6a62085 100644 (file)
@@ -159,12 +159,9 @@ namespace Gst {
        [CCode (ref_function = "gst_caps_ref", unref_function = "gst_caps_unref", cheader_filename = "gst/gst.h")]
        public class Caps {
                public Gst.CapsFlags flags;
-               public int refcount;
-               public weak GLib.PtrArray structs;
-               public GLib.Type type;
                [CCode (has_construct_function = false)]
                public Caps.any ();
-               public void append (Gst.Caps caps2);
+               public void append (owned Gst.Caps caps2);
                public void append_structure (owned Gst.Structure structure);
                public bool can_intersect (Gst.Caps caps2);
                public Gst.Caps copy ();
@@ -179,30 +176,31 @@ namespace Gst {
                public Caps.full_valist (Gst.Structure structure, void* var_args);
                public uint get_size ();
                public unowned Gst.Structure get_structure (uint index);
-               public unowned Gst.Caps intersect (Gst.Caps caps2);
+               public Gst.Caps intersect (Gst.Caps caps2);
                public bool is_always_compatible (Gst.Caps caps2);
                public bool is_any ();
                public bool is_empty ();
                public bool is_equal (Gst.Caps caps2);
                public bool is_equal_fixed (Gst.Caps caps2);
                public bool is_fixed ();
+               [CCode (cname = "GST_CAPS_IS_SIMPLE")]
+               public bool is_simple ();
                public bool is_subset (Gst.Caps superset);
-               public static unowned Gst.Caps load_thyself (void* parent);
+               public static Gst.Caps load_thyself (void* parent);
                [ReturnsModifiedPointer]
                public void make_writable ();
-               public void merge (Gst.Caps caps2);
-               public void merge_structure (Gst.Structure structure);
-               public unowned Gst.Caps normalize ();
-               public unowned Gst.Caps @ref ();
+               public void merge (owned Gst.Caps caps2);
+               public void merge_structure (owned Gst.Structure structure);
+               public Gst.Caps normalize ();
+               public Gst.Caps @ref ();
                public void remove_structure (uint idx);
-               public void replace (Gst.Caps newcaps);
                public void* save_thyself (void* parent);
                public void set_simple (string field, ...);
                public void set_simple_valist (string field, void* varargs);
                public void set_value (string field, Gst.Value value);
                [CCode (has_construct_function = false)]
                public Caps.simple (string media_type, string fieldname, ...);
-               public unowned Gst.Caps subtract (Gst.Caps subtrahend);
+               public Gst.Caps subtract (Gst.Caps subtrahend);
                public string to_string ();
                public void truncate ();
                public Gst.Caps union (Gst.Caps caps2);
index a907e08aa009117bd6562ab95667124409a78e6a..69c71de20d1ba425e98c5281d0d663348e2f3c77 100644 (file)
@@ -100,10 +100,14 @@ namespace Gst {
        public delegate bool DataProbeCallback (Gst.Pad pad, Gst.MiniObject data);
 
        public class Caps {
-               public unowned Caps @ref ();
+               public Caps @ref ();
                public void unref ();
+
                [ReturnsModifiedPointer]
                public void make_writable ();
+
+               [CCode (cname = "GST_CAPS_IS_SIMPLE")]
+               public bool is_simple ();
        }
 
        public class MiniObject {
index 51f3ab06fd9e1800afa9328a4492be4d602a6087..7a59d1d9e5255fe13e9cab6961e9f250e69c8d10 100644 (file)
@@ -60,7 +60,13 @@ gst_bus_set_sync_handler.func nullable="1"
 gst_bus_timed_pop transfer_ownership="1" nullable="1"
 gst_bus_timed_pop_filtered transfer_ownership="1" nullable="1"
 gst_bus_create_watch transfer_ownership="1"
-gst_caps_append_structure.structure transfer_ownership="1"
+GstCaps.type hidden="1"
+GstCaps.structs hidden="1"
+GstCaps.refcount hidden="1"
+gst_caps_append_structure.structure value_owned="1"
+gst_caps_append.caps2 value_owned="1"
+gst_caps_merge.caps2 value_owned="1"
+gst_caps_merge_structure.structure value_owned="1"
 gst_caps_copy transfer_ownership="1"
 gst_caps_copy_nth transfer_ownership="1"
 gst_caps_from_string transfer_ownership="1"
@@ -69,7 +75,12 @@ gst_caps_new_full ellipsis="1"
 gst_caps_new_simple ellipsis="1"
 gst_caps_set_simple ellipsis="1"
 gst_caps_union transfer_ownership="1"
+gst_caps_intersect transfer_ownership="1"
+gst_caps_normalize transfer_ownership="1"
+gst_caps_subtract transfer_ownership="1"
+gst_caps_load_thyself transfer_ownership="1"
 gst_caps_to_string transfer_ownership="1"
+gst_caps_replace hidden="1"
 GstChildProxy::child_added has_emitter="1"
 GstChildProxy::child_removed has_emitter="1"
 GstClockTime hidden="1"