From: Sebastian Dröge Date: Sat, 3 Apr 2010 11:55:45 +0000 (+0200) Subject: gstreamer: Add copy() methods for all MiniObject subclasses X-Git-Tag: 0.9.1~177 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6bdb6c5a09fd568e8eafe843a6dcdce3eb98be55;p=thirdparty%2Fvala.git gstreamer: Add copy() methods for all MiniObject subclasses --- diff --git a/vapi/gstreamer-0.10.vapi b/vapi/gstreamer-0.10.vapi index 03ed4bb7c..e85e86a43 100644 --- a/vapi/gstreamer-0.10.vapi +++ b/vapi/gstreamer-0.10.vapi @@ -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)] 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 0d3d67b9a..ed8cc16d1 100644 --- a/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala +++ b/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala @@ -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]