[vala] gstreamer: Fix and cleanup Gst.MiniObject bindings



commit 5723e9b20568a01907181f5e9e66503db5cf3aa1
Author: Sebastian Dröge <sebastian droege collabora co uk>
Date:   Thu Apr 8 15:53:08 2010 +0200

    gstreamer: Fix and cleanup Gst.MiniObject bindings

 vapi/gstreamer-0.10.vapi                           |   11 +++++++++--
 .../gstreamer-0.10/gstreamer-0.10-custom.vala      |    9 +++++++++
 .../gstreamer-0.10/gstreamer-0.10.metadata         |    2 ++
 3 files changed, 20 insertions(+), 2 deletions(-)
---
diff --git a/vapi/gstreamer-0.10.vapi b/vapi/gstreamer-0.10.vapi
index f2bfcc7..6920b39 100644
--- a/vapi/gstreamer-0.10.vapi
+++ b/vapi/gstreamer-0.10.vapi
@@ -717,16 +717,23 @@ namespace Gst {
 	}
 	[CCode (ref_function = "gst_mini_object_ref", unref_function = "gst_mini_object_unref", cheader_filename = "gst/gst.h")]
 	public class MiniObject {
-		public uint flags;
-		public int refcount;
+		public Gst.MiniObjectFlags flags;
 		[CCode (has_construct_function = false)]
 		public MiniObject (GLib.Type type);
 		public virtual Gst.MiniObject copy ();
 		public virtual void finalize ();
+		[CCode (cname = "GST_MINI_OBJECT_FLAG_IS_SET")]
+		public bool flag_is_set (Gst.MiniObjectFlags flag);
+		[CCode (cname = "GST_MINI_OBJECT_FLAG_SET")]
+		public void flag_set (Gst.MiniObjectFlags flag);
+		[CCode (cname = "GST_MINI_OBJECT_FLAG_UNSET")]
+		public void flag_unset (Gst.MiniObjectFlags flag);
 		public bool is_writable ();
 		[ReturnsModifiedPointer]
 		public void make_writable ();
+		public Gst.MiniObject @ref ();
 		public static void replace (ref Gst.MiniObject? oldobj, Gst.MiniObject? newobj);
+		public void unref ();
 	}
 	[CCode (ref_function = "gst_object_ref", unref_function = "gst_object_unref", cheader_filename = "gst/gst.h")]
 	public class Object : GLib.Object {
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 7aefe8b..8b6d23b 100644
--- a/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
+++ b/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
@@ -249,9 +249,18 @@ namespace Gst {
 		[ReturnsModifiedPointer]
 		public void make_writable ();
 
+		public MiniObject @ref ();
+		public void unref ();
         	public virtual MiniObject copy ();
 		public virtual void finalize ();
 		public static void replace (ref MiniObject? oldobj, MiniObject? newobj);
+
+		[CCode (cname = "GST_MINI_OBJECT_FLAG_SET")]
+		public void flag_set (MiniObjectFlags flag);
+		[CCode (cname = "GST_MINI_OBJECT_FLAG_UNSET")]
+		public void flag_unset (MiniObjectFlags flag);
+		[CCode (cname = "GST_MINI_OBJECT_FLAG_IS_SET")]
+		public bool flag_is_set (MiniObjectFlags flag);
 	}
 
 	[CCode (ref_function = "gst_message_ref", unref_function = "gst_message_unref")]
diff --git a/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata b/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata
index c72b136..58081ae 100644
--- a/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata
+++ b/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata
@@ -312,6 +312,8 @@ gst_message_type_to_quark hidden="1"
 GstMessageType to_string="gst_message_type_get_name"
 GstMiniObject is_fundamental="1"
 GstMiniObject.instance hidden="1"
+GstMiniObject.refcount hidden="1"
+GstMiniObject.flags type_name="MiniObjectFlags"
 GstMiniObjectClass hidden="1"
 gst_mini_object_make_writable hidden="1"
 gst_mini_object_copy hidden="1"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]