[vala] gstreamer: Add copy() methods for all MiniObject subclasses
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gstreamer: Add copy() methods for all MiniObject subclasses
- Date: Thu, 8 Apr 2010 08:32:51 +0000 (UTC)
commit 6bdb6c5a09fd568e8eafe843a6dcdce3eb98be55
Author: Sebastian Dröge <sebastian droege collabora co uk>
Date: Sat Apr 3 13:55:45 2010 +0200
gstreamer: Add copy() methods for all MiniObject subclasses
vapi/gstreamer-0.10.vapi | 5 +++++
.../gstreamer-0.10/gstreamer-0.10-custom.vala | 5 +++++
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/vapi/gstreamer-0.10.vapi b/vapi/gstreamer-0.10.vapi
index 03ed4bb..e85e86a 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 0d3d67b..ed8cc16 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]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]