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



Author: tvermeir
Date: Tue Dec  9 11:35:25 2008
New Revision: 2126
URL: http://svn.gnome.org/viewvc/vala?rev=2126&view=rev

Log:
	* vala/valacodewriter.vala:
	* vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala:
	* vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata:
	Fix *_make_writable functions in gstreamer by marking them
	with ReturnsModifiedPointer
	* vapi/gstreamer-0.10.vapi: regenerated



Modified:
   trunk/ChangeLog
   trunk/vala/valacodewriter.vala
   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/vala/valacodewriter.vala
==============================================================================
--- trunk/vala/valacodewriter.vala	(original)
+++ trunk/vala/valacodewriter.vala	Tue Dec  9 11:35:25 2008
@@ -822,6 +822,10 @@
 			write_indent ();
 			write_string ("[NoWrapper]");
 		}
+		if (m.returns_modified_pointer) {
+			write_indent ();
+			write_string ("[ReturnsModifiedPointer]");
+		}
 		if (m.no_array_length) {
 			bool array_found = (m.return_type is ArrayType);
 			foreach (FormalParameter param in m.get_parameters ()) {

Modified: trunk/vapi/gstreamer-0.10.vapi
==============================================================================
--- trunk/vapi/gstreamer-0.10.vapi	(original)
+++ trunk/vapi/gstreamer-0.10.vapi	Tue Dec  9 11:35:25 2008
@@ -81,7 +81,10 @@
 		public bool is_metadata_writable ();
 		public bool is_span_fast (Gst.Buffer buf2);
 		public weak Gst.Buffer join (Gst.Buffer buf2);
-		public Gst.Buffer make_metadata_writable ();
+		[ReturnsModifiedPointer]
+		public void make_metadata_writable ();
+		[ReturnsModifiedPointer]
+		public void make_writable ();
 		public weak Gst.Buffer merge (Gst.Buffer buf2);
 		public Buffer ();
 		public weak Gst.Buffer @ref ();
@@ -159,7 +162,8 @@
 		public bool is_fixed ();
 		public bool is_subset (Gst.Caps superset);
 		public static weak Gst.Caps load_thyself (void* parent);
-		public weak Gst.Caps make_writable ();
+		[ReturnsModifiedPointer]
+		public void make_writable ();
 		public void merge (Gst.Caps caps2);
 		public void merge_structure (Gst.Structure structure);
 		public weak Gst.Caps normalize ();
@@ -574,8 +578,8 @@
 		public Iterator (uint size, GLib.Type type, GLib.Mutex @lock, uint master_cookie, Gst.IteratorNextFunction next, Gst.IteratorItemFunction item, Gst.IteratorResyncFunction resync, Gst.IteratorFreeFunction free);
 		public void push (Gst.Iterator other);
 	}
-	[CCode (cheader_filename = "gst/gst.h")]
-	public class Message : Gst.MiniObject {
+	[CCode (ref_function = "gst_message_ref", unref_function = "gst_message_unref", cheader_filename = "gst/gst.h")]
+	public class Message {
 		public weak GLib.Cond cond;
 		public weak GLib.Mutex @lock;
 		public weak Gst.Object src;
@@ -609,6 +613,8 @@
 		public Message.info (Gst.Object src, GLib.Error error, string debug);
 		[CCode (has_construct_function = false)]
 		public Message.latency (Gst.Object src);
+		[ReturnsModifiedPointer]
+		public void make_writable ();
 		[CCode (has_construct_function = false)]
 		public Message.new_clock (Gst.Object src, Gst.Clock clock);
 		public void parse_async_start (out bool new_base_time);
@@ -651,7 +657,8 @@
 		public int refcount;
 		public weak Gst.MiniObject copy ();
 		public bool is_writable ();
-		public weak Gst.MiniObject make_writable ();
+		[ReturnsModifiedPointer]
+		public void make_writable ();
 		[CCode (has_construct_function = false)]
 		public MiniObject (GLib.Type type);
 		public void replace (Gst.MiniObject newdata);
@@ -953,8 +960,8 @@
 		public static void ignored (Gst.Poll set, Gst.PollFD fd);
 		public void init ();
 	}
-	[CCode (cheader_filename = "gst/gst.h")]
-	public class Query : Gst.MiniObject {
+	[CCode (ref_function = "gst_query_ref", unref_function = "gst_query_unref", cheader_filename = "gst/gst.h")]
+	public class Query {
 		public weak Gst.Structure structure;
 		public Gst.QueryType type;
 		[CCode (has_construct_function = false)]
@@ -970,6 +977,8 @@
 		public weak Gst.Structure get_structure ();
 		[CCode (has_construct_function = false)]
 		public Query.latency ();
+		[ReturnsModifiedPointer]
+		public void make_writable ();
 		public void parse_buffering_percent (bool busy, int percent);
 		public void parse_buffering_range (Gst.Format format, int64 start, int64 stop, int64 estimated_total);
 		public void parse_buffering_stats (Gst.BufferingMode mode, int avg_in, int avg_out, int64 buffering_left);

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	Tue Dec  9 11:35:25 2008
@@ -52,6 +52,10 @@
 		public void flag_set (BufferFlag flag);
 		[CCode (cname = "GST_BUFFER_FLAG_UNSET")]
 		public void flag_unset (BufferFlag flag);
+		[ReturnsModifiedPointer]
+		public void make_metadata_writable ();
+		[ReturnsModifiedPointer]
+		public void make_writable ();
 	}
 
 	[CCode (cheader_filename = "gst/gst.h")]
@@ -77,6 +81,23 @@
 	public class Caps {
 		public weak Caps @ref ();
 		public void unref ();
+		[ReturnsModifiedPointer]
+		public void make_writable ();
+	}
+
+	public class MiniObject {
+		[ReturnsModifiedPointer]
+		public void make_writable ();
+	}
+
+	public class Message {
+		[ReturnsModifiedPointer]
+		public void make_writable ();
+	}
+
+	public class Query {
+		[ReturnsModifiedPointer]
+		public void make_writable ();
 	}
 
 	[Compact]

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	Tue Dec  9 11:35:25 2008
@@ -17,7 +17,8 @@
 GstBufferClass.mini_object_class hidden="1"
 gst_buffer_new hidden="1"
 gst_buffer_create_sub transfer_ownership="1"
-gst_buffer_make_metadata_writable transfer_ownership="1"
+gst_buffer_make_writable hidder="1"
+gst_buffer_make_metadata_writable hidden="1"
 gst_buffer_try_new_and_alloc transfer_ownership="1"
 gst_bus_add_watch_full.func value_owned="1"
 gst_bus_add_watch_full.notify hidden="1"
@@ -26,6 +27,7 @@
 gst_caps_new_full ellipsis="1"
 gst_caps_set_simple ellipsis="1"
 gst_caps_union transfer_ownership="1"
+gst_caps_make_writable hidden="1"
 GstChildProxy::child_added has_emitter="1"
 GstChildProxy::child_removed has_emitter="1"
 GstClockTime hidden="1"
@@ -98,6 +100,7 @@
 GstMessage.mini_object hidden="1"
 GstMessageClass base_class="GstMiniObjectClass"
 GstMessageClass.mini_object_class hidden="1"
+gst_message_make_writable hidden="1"
 gst_message_new_error throws="0"
 gst_message_new_info throws="0"
 gst_message_new_warning throws="0"
@@ -127,6 +130,7 @@
 GstMiniObject.instance hidden="1"
 GstMiniObjectClass base_class="GTypeClass"
 GstMiniObjectClass.type_class hidden="1"
+gst_mini_object_make_writable hidden="1"
 GstObjectClass name="pointer"
 gst_object_default_error throws="0"
 gst_class_signal_connect hidden="1"
@@ -163,6 +167,7 @@
 GstQuery.mini_object hidden="1"
 GstQueryClass base_class="GstMiniObjectClass"
 GstQueryClass.mini_object_class hidden="1"
+gst_query_make_writable hidden="1"
 gst_query_parse_convert.src_format is_out="1"
 gst_query_parse_convert.src_value is_out="1"
 gst_query_parse_convert.dest_format is_out="1"



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