vala r1612 - in trunk: . vapi vapi/packages/gstreamer-0.10



Author: jhaitsma
Date: Wed Jun 18 05:59:36 2008
New Revision: 1612
URL: http://svn.gnome.org/viewvc/vala?rev=1612&view=rev

Log:
2008-06-18  Jaap A. Haitsma  <jaap haitsma org>

	* vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala:
	* vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata:
	Fix Gst.object.ref, unref and sink bindings
	Fixes bug #536307	

	* vapi/gstreamer-0.10.vapi: regenerated


Modified:
   trunk/ChangeLog
   trunk/vapi/gstreamer-0.10.vapi
   trunk/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
   trunk/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata

Modified: trunk/vapi/gstreamer-0.10.vapi
==============================================================================
--- trunk/vapi/gstreamer-0.10.vapi	(original)
+++ trunk/vapi/gstreamer-0.10.vapi	Wed Jun 18 05:59:36 2008
@@ -1,4 +1,4 @@
-/* gstreamer-0.10.vapi generated by lt-vapigen, do not modify. */
+/* gstreamer-0.10.vapi generated by vapigen, do not modify. */
 
 [CCode (cprefix = "Gst", lower_case_cprefix = "gst_")]
 namespace Gst {
@@ -505,6 +505,38 @@
 		KEY_UNIT,
 		SEGMENT
 	}
+	[CCode (ref_function = "gst_object_ref", unref_function = "gst_object_unref", cheader_filename = "gst/gst.h")]
+	public class Object : GLib.Object {
+		public int refcount;
+		public weak GLib.Mutex @lock;
+		public weak string name_prefix;
+		public weak Gst.Object parent;
+		public uint flags;
+		public weak Gst.Object @ref ();
+		public void unref ();
+		public void sink ();
+		public Object ();
+		public static bool check_uniqueness (GLib.List list, string name);
+		public static void default_deep_notify (GLib.Object object, Gst.Object orig, GLib.ParamSpec pspec, string excluded_props);
+		public void default_error (GLib.Error error, string debug);
+		public weak string get_name ();
+		public weak string get_name_prefix ();
+		public weak Gst.Object get_parent ();
+		public weak string get_path_string ();
+		public bool has_ancestor (Gst.Object ancestor);
+		public void replace (Gst.Object newobj);
+		public bool set_name (string name);
+		public void set_name_prefix (string name_prefix);
+		public bool set_parent (Gst.Object parent);
+		public void unparent ();
+		public virtual void restore_thyself (void* self);
+		public virtual void* save_thyself (void* parent);
+		public string name { get; set construct; }
+		public virtual signal void deep_notify (Gst.Object orig, GLib.ParamSpec pspec);
+		public virtual signal void object_saved (void* parent);
+		public virtual signal void parent_set (Gst.Object parent);
+		public virtual signal void parent_unset (Gst.Object parent);
+	}
 	[CCode (ref_function = "gst_buffer_ref", unref_function = "gst_buffer_unref", cheader_filename = "gst/gst.h")]
 	public class Buffer : Gst.MiniObject {
 		[NoArrayLength]
@@ -1387,37 +1419,6 @@
 		public IndexFactory (string name, string longdesc, GLib.Type type);
 	}
 	[CCode (cheader_filename = "gst/gst.h")]
-	public class Object : GLib.Object {
-		public int refcount;
-		public weak GLib.Mutex @lock;
-		public weak string name_prefix;
-		public weak Gst.Object parent;
-		public uint flags;
-		public static bool check_uniqueness (GLib.List list, string name);
-		public static void default_deep_notify (GLib.Object object, Gst.Object orig, GLib.ParamSpec pspec, string excluded_props);
-		public void default_error (GLib.Error error, string debug);
-		public weak string get_name ();
-		public weak string get_name_prefix ();
-		public weak Gst.Object get_parent ();
-		public weak string get_path_string ();
-		public bool has_ancestor (Gst.Object ancestor);
-		public static void* @ref (void* object);
-		public void replace (Gst.Object newobj);
-		public bool set_name (string name);
-		public void set_name_prefix (string name_prefix);
-		public bool set_parent (Gst.Object parent);
-		public static void sink (void* object);
-		public void unparent ();
-		public static void unref (void* object);
-		public virtual void restore_thyself (void* self);
-		public virtual void* save_thyself (void* parent);
-		public string name { get; set construct; }
-		public virtual signal void deep_notify (Gst.Object orig, GLib.ParamSpec pspec);
-		public virtual signal void object_saved (void* parent);
-		public virtual signal void parent_set (Gst.Object parent);
-		public virtual signal void parent_unset (Gst.Object parent);
-	}
-	[CCode (cheader_filename = "gst/gst.h")]
 	public class Pad : Gst.Object {
 		public void* element_private;
 		public weak Gst.PadTemplate padtemplate;

Modified: trunk/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
==============================================================================
--- trunk/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala	(original)
+++ trunk/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala	Wed Jun 18 05:59:36 2008
@@ -28,6 +28,12 @@
 	public struct ClockTimeDiff : int64 {
 	}
 
+	[CCode (ref_function = "gst_object_ref", unref_function = "gst_object_unref")]
+	public class Object {
+		public weak Object @ref ();
+		public void unref ();
+		public void sink ();
+	}
 	[CCode (ref_function = "gst_buffer_ref", unref_function = "gst_buffer_unref")]
 	public class Buffer : Gst.MiniObject {
 		public Buffer ();

Modified: trunk/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata
==============================================================================
--- trunk/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata	(original)
+++ trunk/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata	Wed Jun 18 05:59:36 2008
@@ -77,6 +77,9 @@
 gst_object_default_error throws="0"
 gst_class_signal_connect hidden="1"
 gst_class_signal_emit_by_name hidden="1"
+gst_object_sink hidden="1"
+gst_object_ref hidden="1"
+gst_object_unref hidden="1"
 GstPad.querytypefunc hidden="1"
 gst_pad_push.buffer takes_ownership="1"
 gst_pad_push_event.event takes_ownership="1"



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