]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gstreamer: Add copy() methods for all MiniObject subclasses
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 3 Apr 2010 11:55:45 +0000 (13:55 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 8 Apr 2010 08:30:51 +0000 (10:30 +0200)
vapi/gstreamer-0.10.vapi
vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala

index 03ed4bb7cbe9a0e8cefda29ca665cb2d4c48c5a3..e85e86a43655d74020da1db3ca577d86bf346099 100644 (file)
@@ -78,6 +78,7 @@ namespace Gst {
                public Buffer ();
                [CCode (has_construct_function = false)]
                public Buffer.and_alloc (uint size);
+               public Gst.Buffer copy ();
                public void copy_metadata (Gst.Buffer src, Gst.BufferCopyFlags flags);
                public Gst.Buffer create_sub (uint offset, uint size);
                [CCode (cname = "GST_BUFFER_DURATION_IS_VALID")]
@@ -110,6 +111,7 @@ namespace Gst {
        public class BufferList : Gst.MiniObject {
                [CCode (has_construct_function = false)]
                public BufferList ();
+               public Gst.BufferList copy ();
                public void @foreach (Gst.BufferListFunc func);
                public unowned Gst.Buffer? @get (uint group, uint idx);
                public Gst.BufferListIterator iterate ();
@@ -453,6 +455,7 @@ namespace Gst {
                public uint64 timestamp;
                [CCode (has_construct_function = false)]
                public Event.buffer_size (Gst.Format format, int64 minsize, int64 maxsize, bool @async);
+               public Gst.Event copy ();
                [CCode (has_construct_function = false)]
                public Event.custom (Gst.EventType type, owned Gst.Structure structure);
                [CCode (has_construct_function = false)]
@@ -644,6 +647,7 @@ namespace Gst {
                public Message.clock_lost (Gst.Object src, Gst.Clock clock);
                [CCode (has_construct_function = false)]
                public Message.clock_provide (Gst.Object src, Gst.Clock clock, bool ready);
+               public Gst.Message copy ();
                [CCode (has_construct_function = false)]
                public Message.custom (Gst.MessageType type, Gst.Object src, owned Gst.Structure structure);
                [CCode (has_construct_function = false)]
@@ -1052,6 +1056,7 @@ namespace Gst {
                public Query.buffering (Gst.Format format);
                [CCode (has_construct_function = false)]
                public Query.convert (Gst.Format src_format, int64 value, Gst.Format dest_format);
+               public Gst.Query copy ();
                [CCode (has_construct_function = false)]
                public Query.duration (Gst.Format format);
                [CCode (has_construct_function = false)]
index 0d3d67b9af455eef1566189795156dc9749f706b..ed8cc16d1c0d7def1b229e189008eceedc6b791d 100644 (file)
@@ -42,6 +42,7 @@ namespace Gst {
                public Event @ref ();
                public void unref ();
                public static void replace (ref Event? oldobj, Event? newobj);
+               public Event copy ();
 
                [CCode (cname = "GST_EVENT_SRC")]
                public unowned Gst.Object src ();
@@ -109,6 +110,7 @@ namespace Gst {
                public Buffer @ref ();
                public void unref ();
                public static void replace (ref Buffer? oldobj, Buffer? newobj);
+               public Buffer copy ();
        }
 
        [CCode (ref_function = "gst_buffer_list_ref", unref_function = "gst_buffer_list_unref")]
@@ -117,6 +119,7 @@ namespace Gst {
                public void make_writable ();
                public BufferList @ref ();
                public void unref ();
+               public BufferList copy ();
        }
 
        public class Bus {
@@ -192,6 +195,7 @@ namespace Gst {
                public void make_writable ();
                public Message @ref ();
                public void unref ();
+               public Message copy ();
        }
 
        [CCode (ref_function = "gst_query_ref", unref_function = "gst_query_unref")]
@@ -200,6 +204,7 @@ namespace Gst {
                public void make_writable ();
                public Query @ref ();
                public void unref ();
+               public Query copy ();
        }
 
        [Compact]