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



Author: asabil
Date: Thu Feb 19 14:19:43 2009
New Revision: 2457
URL: http://svn.gnome.org/viewvc/vala?rev=2457&view=rev

Log:
2009-02-19  Ali Sabil  <ali sabil gmail com>

	* vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala:
	* vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata:

	Various ownership and missing type parameters fixes

	* 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	Thu Feb 19 14:19:43 2009
@@ -22,11 +22,11 @@
 	[CCode (cheader_filename = "gst/gst.h")]
 	public class Bin : Gst.Element, Gst.ChildProxy {
 		public weak Gst.Bus child_bus;
-		public weak GLib.List children;
+		public weak GLib.List<Gst.Pad> children;
 		public uint32 children_cookie;
 		public bool clock_dirty;
 		public weak Gst.Element clock_provider;
-		public weak GLib.List messages;
+		public weak GLib.List<Gst.Message> messages;
 		public int numchildren;
 		public bool polling;
 		public weak Gst.Clock provided_clock;
@@ -254,7 +254,7 @@
 		public Gst.ClockReturn wait_async (Gst.ClockCallback func);
 	}
 	[Compact]
-	[CCode (cheader_filename = "gst/gst.h")]
+	[CCode (type_id = "GST_TYPE_DATE", cheader_filename = "gst/gst.h")]
 	public class Date {
 	}
 	[Compact]
@@ -310,11 +310,11 @@
 		public uint16 numpads;
 		public uint16 numsinkpads;
 		public uint16 numsrcpads;
-		public weak GLib.List pads;
+		public weak GLib.List<Gst.Pad> pads;
 		public uint32 pads_cookie;
 		public Gst.State pending_state;
-		public weak GLib.List sinkpads;
-		public weak GLib.List srcpads;
+		public weak GLib.List<Gst.Pad> sinkpads;
+		public weak GLib.List<Gst.Pad> srcpads;
 		public weak GLib.Cond state_cond;
 		public uint32 state_cookie;
 		public void* state_lock;
@@ -338,7 +338,7 @@
 		[CCode (cname = "gst_element_class_get_pad_template")]
 		public class unowned Gst.PadTemplate get_pad_template (string name);
 		[CCode (cname = "gst_element_class_get_pad_template_list")]
-		public class unowned GLib.List get_pad_template_list ();
+		public class unowned GLib.List<Gst.Pad> get_pad_template_list ();
 		public virtual Gst.QueryType get_query_types ();
 		public unowned Gst.Pad get_request_pad (string name);
 		public virtual Gst.StateChangeReturn get_state (out Gst.State state, out Gst.State pending, Gst.ClockTime timeout);
@@ -372,7 +372,7 @@
 		public void release_request_pad (Gst.Pad pad);
 		public bool remove_pad (Gst.Pad pad);
 		[NoWrapper]
-		public virtual unowned Gst.Pad request_new_pad (Gst.PadTemplate templ, string name);
+		public virtual unowned Gst.Pad request_new_pad (Gst.PadTemplate templ, string? name);
 		public bool requires_clock ();
 		public bool seek (double rate, Gst.Format format, Gst.SeekFlags flags, Gst.SeekType cur_type, int64 cur, Gst.SeekType stop_type, int64 stop);
 		public bool seek_simple (Gst.Format format, Gst.SeekFlags seek_flags, int64 seek_pos);
@@ -387,8 +387,6 @@
 		public virtual void set_index (Gst.Index index);
 		public bool set_locked_state (bool locked_state);
 		public virtual Gst.StateChangeReturn set_state (Gst.State state);
-		public static unowned string state_change_return_get_name (Gst.StateChangeReturn state_ret);
-		public static unowned string state_get_name (Gst.State state);
 		public bool sync_state_with_parent ();
 		public void unlink (Gst.Element dest);
 		public void unlink_many (Gst.Element element_2, ...);
@@ -463,11 +461,10 @@
 		[CCode (has_construct_function = false)]
 		public Event.tag (Gst.TagList taglist);
 		public static Gst.EventTypeFlags type_get_flags (Gst.EventType type);
-		public static unowned string type_get_name (Gst.EventType type);
 		public static GLib.Quark type_to_quark (Gst.EventType type);
 	}
 	[Compact]
-	[CCode (cheader_filename = "gst/gst.h")]
+	[CCode (type_id = "GST_TYPE_GERROR", cheader_filename = "gst/gst.h")]
 	public class GError {
 	}
 	[CCode (cheader_filename = "gst/gst.h")]
@@ -530,7 +527,7 @@
 		public int64 value;
 	}
 	[Compact]
-	[CCode (copy_function = "gst_index_entry_copy", cheader_filename = "gst/gst.h")]
+	[CCode (copy_function = "gst_index_entry_copy", type_id = "GST_TYPE_INDEX_ENTRY", cheader_filename = "gst/gst.h")]
 	public class IndexEntry {
 		public void* data;
 		public int id;
@@ -588,7 +585,7 @@
 		public uint64 timestamp;
 		public Gst.MessageType type;
 		[CCode (has_construct_function = false)]
-		public Message.application (Gst.Object src, Gst.Structure structure);
+		public Message.application (Gst.Object src, owned Gst.Structure structure);
 		[CCode (has_construct_function = false)]
 		public Message.async_done (Gst.Object src);
 		[CCode (has_construct_function = false)]
@@ -600,11 +597,11 @@
 		[CCode (has_construct_function = false)]
 		public Message.clock_provide (Gst.Object src, Gst.Clock clock, bool ready);
 		[CCode (has_construct_function = false)]
-		public Message.custom (Gst.MessageType type, Gst.Object src, Gst.Structure structure);
+		public Message.custom (Gst.MessageType type, Gst.Object src, owned Gst.Structure structure);
 		[CCode (has_construct_function = false)]
 		public Message.duration (Gst.Object src, Gst.Format format, int64 duration);
 		[CCode (has_construct_function = false)]
-		public Message.element (Gst.Object src, Gst.Structure structure);
+		public Message.element (Gst.Object src, owned Gst.Structure structure);
 		[CCode (has_construct_function = false)]
 		public Message.eos (Gst.Object src);
 		[CCode (has_construct_function = false)]
@@ -643,7 +640,6 @@
 		public Message.state_dirty (Gst.Object src);
 		[CCode (has_construct_function = false)]
 		public Message.tag (Gst.Object src, Gst.TagList tag_list);
-		public static unowned string type_get_name (Gst.MessageType type);
 		public static GLib.Quark type_to_quark (Gst.MessageType type);
 		[CCode (has_construct_function = false)]
 		public Message.warning (Gst.Object src, GLib.Error error, string debug);
@@ -682,7 +678,7 @@
 		public void default_error (GLib.Error error, string debug);
 		public string get_name ();
 		public string get_name_prefix ();
-		public unowned Gst.Object get_parent ();
+		public Gst.Object get_parent ();
 		public string get_path_string ();
 		public bool has_ancestor (Gst.Object ancestor);
 		public unowned Gst.Object @ref ();
@@ -1009,7 +1005,6 @@
 		public void set_segment (double rate, Gst.Format format, int64 start_value, int64 stop_value);
 		public static Gst.QueryType type_get_by_nick (string nick);
 		public static unowned Gst.QueryTypeDefinition type_get_details (Gst.QueryType type);
-		public static unowned string type_get_name (Gst.QueryType query);
 		public static unowned Gst.Iterator type_iterate_definitions ();
 		public static Gst.QueryType type_register (string nick, string description);
 		public static GLib.Quark type_to_quark (Gst.QueryType query);
@@ -1059,7 +1054,7 @@
 		public virtual signal void plugin_added (void* plugin);
 	}
 	[Compact]
-	[CCode (copy_function = "gst_segment_copy", cheader_filename = "gst/gst.h")]
+	[CCode (copy_function = "gst_segment_copy", type_id = "GST_TYPE_SEGMENT", cheader_filename = "gst/gst.h")]
 	public class Segment {
 		public double abs_rate;
 		public int64 accum;
@@ -1094,7 +1089,8 @@
 		public int parent_refcount;
 		public GLib.Type type;
 		public Gst.Structure copy ();
-		public static unowned Gst.Structure empty_new (string name);
+		[CCode (cname = "gst_structure_empty_new", has_construct_function = false)]
+		public Structure.empty (string name);
 		public bool fixate_field_boolean (string field_name, bool target);
 		public bool fixate_field_nearest_double (string field_name, double target);
 		public bool fixate_field_nearest_fraction (string field_name, int target_numerator, int target_denominator);
@@ -1118,7 +1114,8 @@
 		public bool has_field (string fieldname);
 		public bool has_field_typed (string fieldname, GLib.Type type);
 		public bool has_name (string name);
-		public static unowned Gst.Structure id_empty_new (GLib.Quark quark);
+		[CCode (cname = "gst_structure_id_empty_new", has_construct_function = false)]
+		public Structure.id_empty (GLib.Quark quark);
 		public unowned Gst.Value? id_get_value (GLib.Quark field);
 		public void id_set (GLib.Quark fieldname, ...);
 		public void id_set_valist (GLib.Quark fieldname, void* varargs);
@@ -1602,7 +1599,9 @@
 		INFO,
 		DEBUG,
 		LOG,
-		COUNT
+		COUNT;
+		[CCode (cname = "gst_debug_level_get_name")]
+		public unowned string to_string ();
 	}
 	[CCode (cprefix = "GST_ELEMENT_", cheader_filename = "gst/gst.h")]
 	[Flags]
@@ -1629,7 +1628,9 @@
 		CUSTOM_DOWNSTREAM,
 		CUSTOM_DOWNSTREAM_OOB,
 		CUSTOM_BOTH,
-		CUSTOM_BOTH_OOB
+		CUSTOM_BOTH_OOB;
+		[CCode (cname = "gst_event_type_get_name")]
+		public unowned string to_string ();
 	}
 	[CCode (cprefix = "GST_EVENT_TYPE_", cheader_filename = "gst/gst.h")]
 	[Flags]
@@ -1649,7 +1650,9 @@
 		NOT_NEGOTIATED,
 		ERROR,
 		NOT_SUPPORTED,
-		CUSTOM_ERROR
+		CUSTOM_ERROR;
+		[CCode (cname = "gst_flow_get_name")]
+		public unowned string to_string ();
 	}
 	[CCode (cprefix = "GST_FORMAT_", cheader_filename = "gst/gst.h")]
 	public enum Format {
@@ -1741,7 +1744,9 @@
 		LATENCY,
 		ASYNC_START,
 		ASYNC_DONE,
-		ANY
+		ANY;
+		[CCode (cname = "gst_message_type_get_name")]
+		public unowned string to_string ();
 	}
 	[CCode (cprefix = "GST_MINI_OBJECT_FLAG_", cheader_filename = "gst/gst.h")]
 	[Flags]
@@ -1833,7 +1838,9 @@
 		SEGMENT,
 		CONVERT,
 		FORMATS,
-		BUFFERING
+		BUFFERING;
+		[CCode (cname = "gst_query_type_get_name")]
+		public unowned string to_string ();
 	}
 	[CCode (cprefix = "GST_RANK_", cheader_filename = "gst/gst.h")]
 	public enum Rank {
@@ -1882,7 +1889,9 @@
 		NULL,
 		READY,
 		PAUSED,
-		PLAYING
+		PLAYING;
+		[CCode (cname = "gst_element_state_get_name")]
+		public unowned string to_string ();
 	}
 	[CCode (cprefix = "GST_STATE_CHANGE_", cheader_filename = "gst/gst.h")]
 	public enum StateChange {
@@ -1898,7 +1907,9 @@
 		FAILURE,
 		SUCCESS,
 		ASYNC,
-		NO_PREROLL
+		NO_PREROLL;
+		[CCode (cname = "gst_element_state_change_return_get_name")]
+		public unowned string to_string ();
 	}
 	[CCode (cprefix = "GST_STREAM_ERROR_", cheader_filename = "gst/gst.h")]
 	public enum StreamError {
@@ -2003,21 +2014,21 @@
 	[CCode (cheader_filename = "gst/gst.h")]
 	public delegate void PadBlockCallback (Gst.Pad pad, bool blocked);
 	[CCode (cheader_filename = "gst/gst.h")]
-	public static delegate Gst.FlowReturn PadBufferAllocFunction (Gst.Pad pad, uint64 offset, uint size, Gst.Caps caps, out unowned Gst.Buffer buf);
+	public static delegate Gst.FlowReturn PadBufferAllocFunction (Gst.Pad pad, uint64 offset, uint size, Gst.Caps caps, out Gst.Buffer buf);
 	[CCode (cheader_filename = "gst/gst.h")]
-	public static delegate Gst.FlowReturn PadChainFunction (Gst.Pad pad, Gst.Buffer buffer);
+	public static delegate Gst.FlowReturn PadChainFunction (Gst.Pad pad, owned Gst.Buffer buffer);
 	[CCode (cheader_filename = "gst/gst.h")]
 	public static delegate bool PadCheckGetRangeFunction (Gst.Pad pad);
 	[CCode (cheader_filename = "gst/gst.h")]
 	public delegate bool PadDispatcherFunction (Gst.Pad pad);
 	[CCode (cheader_filename = "gst/gst.h")]
-	public static delegate bool PadEventFunction (Gst.Pad pad, Gst.Event event);
+	public static delegate bool PadEventFunction (Gst.Pad pad, owned Gst.Event event);
 	[CCode (cheader_filename = "gst/gst.h")]
 	public static delegate void PadFixateCapsFunction (Gst.Pad pad, Gst.Caps caps);
 	[CCode (cheader_filename = "gst/gst.h")]
 	public static delegate unowned Gst.Caps PadGetCapsFunction (Gst.Pad pad);
 	[CCode (cheader_filename = "gst/gst.h")]
-	public static delegate Gst.FlowReturn PadGetRangeFunction (Gst.Pad pad, uint64 offset, uint length, out unowned Gst.Buffer buffer);
+	public static delegate Gst.FlowReturn PadGetRangeFunction (Gst.Pad pad, uint64 offset, uint length, out Gst.Buffer buffer);
 	[CCode (cheader_filename = "gst/gst.h")]
 	public static delegate unowned GLib.List PadIntLinkFunction (Gst.Pad pad);
 	[CCode (cheader_filename = "gst/gst.h")]
@@ -2233,8 +2244,6 @@
 	[CCode (cheader_filename = "gst/gst.h")]
 	public static bool debug_is_colored ();
 	[CCode (cheader_filename = "gst/gst.h")]
-	public static unowned string debug_level_get_name (Gst.DebugLevel level);
-	[CCode (cheader_filename = "gst/gst.h")]
 	public static void debug_log (Gst.DebugCategory category, Gst.DebugLevel level, string file, string function, int line, GLib.Object object, string format);
 	[CCode (cheader_filename = "gst/gst.h")]
 	public static void debug_log_default (Gst.DebugCategory category, Gst.DebugLevel level, string file, string function, int line, GLib.Object object, Gst.DebugMessage message, void* unused);
@@ -2267,16 +2276,12 @@
 	[CCode (cheader_filename = "gst/gst.h")]
 	public static unowned GLib.List filter_run (GLib.List list, Gst.FilterFunc func, bool first);
 	[CCode (cheader_filename = "gst/gst.h")]
-	public static unowned string flow_get_name (Gst.FlowReturn ret);
-	[CCode (cheader_filename = "gst/gst.h")]
 	public static GLib.Quark flow_to_quark (Gst.FlowReturn ret);
 	[CCode (cheader_filename = "gst/gst.h")]
 	public static Gst.Format format_get_by_nick (string nick);
 	[CCode (cheader_filename = "gst/gst.h")]
 	public static Gst.FormatDefinition format_get_details (Gst.Format format);
 	[CCode (cheader_filename = "gst/gst.h")]
-	public static unowned string format_get_name (Gst.Format format);
-	[CCode (cheader_filename = "gst/gst.h")]
 	public static unowned Gst.Iterator format_iterate_definitions ();
 	[CCode (cheader_filename = "gst/gst.h")]
 	public static Gst.Format format_register (string nick, string description);

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	Thu Feb 19 14:19:43 2009
@@ -106,6 +106,16 @@
 	}
 
 	[Compact]
+	[Immutable]
+	[CCode (copy_function = "gst_structure_copy", cheader_filename = "gst/gst.h")]
+	public class Structure {
+		[CCode (cname = "gst_structure_empty_new", has_construct_function = false)]
+		public Structure.empty (string name);
+		[CCode (cname = "gst_structure_id_empty_new", has_construct_function = false)]
+		public Structure.id_empty (GLib.Quark quark);
+	}
+
+	[Compact]
 	public class DebugCategory {
 		[CCode (cname="GST_DEBUG_CATEGORY_INIT")]
 		public void init (string name, uint color, string description);

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	Thu Feb 19 14:19:43 2009
@@ -7,6 +7,8 @@
 GstBaseTransform.priv hidden="1"
 GstBaseTransform cheader_filename="gst/base/gstbasetransform.h"
 GstBin.priv hidden="1"
+GstBin.children type_arguments="Pad"
+GstBin.messages type_arguments="Message"
 gst_bin_add.element value_owned="1"
 gst_bin_add_many hidden="1"
 gst_bin_remove_many ellipsis="1"
@@ -54,7 +56,12 @@
 GstClockTimeDiff hidden="1"
 GstControlSource.get_value hidden="1"
 GstControlSource.get_value_array hidden="1"
+GstDebugLevel to_string="gst_debug_level_get_name"
+gst_debug_level_get_name hidden="1"
 GstElement::no_more_pads has_emitter="1"
+GstElement.pads type_arguments="Pad"
+GstElement.sinkpads type_arguments="Pad"
+GstElement.srcpads type_arguments="Pad"
 GstElementClass name="pointer"
 gst_element_add_pad.pad takes_ownership="1"
 gst_element_link_many ellipsis="1"
@@ -67,11 +74,15 @@
 gst_element_query_duration.duration is_out="1"
 gst_element_query_position.format is_ref="1"
 gst_element_query_position.cur is_out="1"
+gst_element_request_new_pad.name nullable="1"
 gst_element_send_event.event takes_ownership="1"
+gst_element_state_get_name hidden="1"
+gst_element_state_change_return_get_name hidden="1"
 gst_element_get_bus transfer_ownership="1"
 gst_element_make_from_uri transfer_ownership="1" nullable="1"
 gst_element_make_from_uri.elementname nullable="1"
 gst_element_get_static_pad transfer_ownership="1" nullable="1"
+gst_element_class_get_pad_template_list type_arguments="Pad"
 GstElementDetails is_value_type="1"
 gst_element_factory_make transfer_ownership="1" nullable="1"
 gst_element_factory_make.name nullable="1"
@@ -80,6 +91,7 @@
 GstEvent base_class="GstMiniObject"
 GstEvent.mini_object hidden="1"
 GstEventClass hidden="1"
+GstEventType to_string="gst_event_type_get_name"
 gst_event_new_custom.structure takes_ownership="1"
 gst_event_new_navigation.structure takes_ownership="1"
 gst_event_parse_buffer_size.format is_out="1"
@@ -111,6 +123,11 @@
 gst_event_parse_seek.stop_type is_out="1"
 gst_event_parse_seek.stop is_out="1"
 gst_event_parse_tag.taglist is_out="1" value_owned="1"
+gst_event_type_get_name hidden="1"
+GstFlowReturn to_string="gst_flow_get_name"
+gst_flow_get_name hidden="1"
+GstFormatReturn to_string="gst_format_get_name"
+gst_format_get_name hidden="1"
 GstFormatDefinition is_value_type="1"
 GstGhostPad base_class="GstPad"
 GstGhostPadClass hidden="1"
@@ -124,7 +141,11 @@
 GstMessage.mini_object hidden="1"
 GstMessageClass base_class="GstMiniObjectClass"
 GstMessageClass.mini_object_class hidden="1"
+GstMessageType to_string="gst_message_type_get_name"
 gst_message_make_writable hidden="1"
+gst_message_new_application.structure takes_ownership="1"
+gst_message_new_custom.structure takes_ownership="1"
+gst_message_new_element.structure takes_ownership="1"
 gst_message_new_error throws="0"
 gst_message_new_info throws="0"
 gst_message_new_warning throws="0"
@@ -150,6 +171,7 @@
 gst_message_parse_segment_done.format is_out="1"
 gst_message_parse_segment_done.position is_out="1"
 gst_message_parse_tag.tag_list is_out="1" value_owned="1"
+gst_message_type_get_name hidden="1"
 GstMiniObject is_fundamental="1"
 GstMiniObject.instance hidden="1"
 GstMiniObjectClass base_class="GTypeClass"
@@ -162,6 +184,7 @@
 gst_class_signal_emit_by_name hidden="1"
 gst_object_get_name transfer_ownership="1"
 gst_object_get_name_prefix transfer_ownership="1"
+gst_object_get_parent transfer_ownership="1"
 gst_object_get_path_string transfer_ownership="1"
 gst_object_sink hidden="1"
 gst_object_ref hidden="1"
@@ -174,6 +197,10 @@
 gst_pad_add_event_probe hidden="1"
 gst_pad_add_event_probe_full hidden="1"
 gst_pad_chain.buffer takes_ownership="1"
+GstPadChainFunction.buffer takes_ownership="1"
+GstPadEventFunction.event takes_ownership="1"
+GstPadBufferAllocFunction.buf takes_ownership="1"
+GstPadGetRangeFunction.buffer takes_ownership="1"
 gst_pad_get_allowed_caps transfer_ownership="1"
 gst_pad_get_caps transfer_ownership="1"
 gst_pad_get_negotiated_caps transfer_ownership="1"
@@ -199,6 +226,7 @@
 GstQuery.mini_object hidden="1"
 GstQueryClass base_class="GstMiniObjectClass"
 GstQueryClass.mini_object_class hidden="1"
+GstQueryType to_string="gst_query_type_get_name"
 gst_query_make_writable hidden="1"
 gst_query_parse_convert.src_format is_out="1"
 gst_query_parse_convert.src_value is_out="1"
@@ -221,6 +249,7 @@
 gst_query_parse_segment.format is_out="1"
 gst_query_parse_segment.start_value is_out="1"
 gst_query_parse_segment.stop_value is_out="1"
+gst_query_type_get_name hidden="1"
 gst_registry_feature_filter.filter delegate_target_pos="2.1"
 gst_registry_feature_filter transfer_ownership="1" type_arguments="PluginFeature"
 gst_registry_get_feature_list transfer_ownership="1" type_arguments="PluginFeature"
@@ -235,6 +264,8 @@
 gst_segment_clip.clip_start is_out="1"
 gst_segment_clip.clip_stop is_out="1"
 gst_segment_copy transfer_ownership="1"
+GstState to_string="gst_element_state_get_name"
+GstStateChangeReturn to_string="gst_element_state_change_return_get_name"
 GstStaticCaps is_value_type="1"
 GstStaticCaps.caps hidden="1"
 gst_static_caps_get transfer_ownership="1"
@@ -244,6 +275,8 @@
 GstStructure is_immutable="1"
 gst_structure_copy transfer_ownership="1"
 gst_structure_new ellipsis="1"
+gst_structure_empty_new hidden="1"
+gst_structure_id_empty_new hidden="1"
 gst_structure_from_string nullable="1" transfer_ownership="1"
 gst_structure_from_string.end is_out="1"
 gst_structure_set ellipsis="1"



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