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



Author: juergbi
Date: Sat Sep 27 12:49:56 2008
New Revision: 1803
URL: http://svn.gnome.org/viewvc/vala?rev=1803&view=rev

Log:
2008-09-27  JÃrg Billeter  <j bitron ch>

	* vapi/packages/gstreamer-0.10/:

	Fix gst_element_get_bus and gst_pipeline_get_bus bindings,
	fixes bug 548219

	* vapi/gstreamer-0.10.vapi: regenerated


Modified:
   trunk/ChangeLog
   trunk/vapi/gstreamer-0.10.vapi
   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	Sat Sep 27 12:49:56 2008
@@ -1,4 +1,4 @@
-/* gstreamer-0.10.vapi generated by vapigen, do not modify. */
+/* gstreamer-0.10.vapi generated by lt-vapigen, do not modify. */
 
 [CCode (cprefix = "Gst", lower_case_cprefix = "gst_")]
 namespace Gst {
@@ -511,33 +511,20 @@
 		public uint64 timestamp;
 		public weak Gst.Object src;
 		public weak Gst.Structure structure;
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Event ();
 		public weak Gst.Structure get_structure ();
 		public bool has_name (string name);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Event.buffer_size (Gst.Format format, int64 minsize, int64 maxsize, bool async);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Event.custom (Gst.EventType type, Gst.Structure# structure);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Event.eos ();
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Event.flush_start ();
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Event.flush_stop ();
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Event.latency (Gst.ClockTime latency);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Event.navigation (Gst.Structure# structure);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Event.new_segment (bool update, double rate, Gst.Format format, int64 start, int64 stop, int64 position);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Event.new_segment_full (bool update, double rate, double applied_rate, Gst.Format format, int64 start, int64 stop, int64 position);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Event.qos (double proportion, Gst.ClockTimeDiff diff, Gst.ClockTime timestamp);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Event.seek (double rate, Gst.Format format, Gst.SeekFlags flags, Gst.SeekType start_type, int64 start, Gst.SeekType stop_type, int64 stop);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Event.tag (Gst.TagList taglist);
 		public void parse_buffer_size (out Gst.Format format, out int64 minsize, out int64 maxsize, out bool async);
 		public void parse_latency (out Gst.ClockTime latency);
@@ -560,7 +547,6 @@
 		public weak Gst.Object @ref ();
 		public void unref ();
 		public void sink ();
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		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);
@@ -594,7 +580,6 @@
 		public uint64 offset;
 		public uint64 offset_end;
 		public uchar malloc_data;
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Buffer ();
 		public weak Gst.Buffer @ref ();
 		public void unref ();
@@ -610,7 +595,6 @@
 		public weak Gst.Buffer join (Gst.Buffer buf2);
 		public weak Gst.Buffer make_metadata_writable ();
 		public weak Gst.Buffer merge (Gst.Buffer buf2);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Buffer.and_alloc (uint size);
 		public void set_caps (Gst.Caps caps);
 		public weak Gst.Buffer span (uint offset, Gst.Buffer buf2, uint len);
@@ -689,9 +673,7 @@
 		public bool is_linked ();
 		public Gst.PadLinkReturn link (Gst.Pad sinkpad);
 		public void load_and_link (Gst.Object parent);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Pad.from_static_template (Gst.StaticPadTemplate templ, string name);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Pad.from_template (Gst.PadTemplate templ, string name);
 		public bool pause_task ();
 		public bool peer_accept_caps (Gst.Caps caps);
@@ -757,7 +739,6 @@
 		public weak GLib.PtrArray structs;
 		public weak Gst.Caps @ref ();
 		public void unref ();
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Caps ();
 		public void append (Gst.Caps caps2);
 		public void append_structure (Gst.Structure structure);
@@ -779,15 +760,10 @@
 		public weak Gst.Caps make_writable ();
 		public void merge (Gst.Caps caps2);
 		public void merge_structure (Gst.Structure structure);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Caps.any ();
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Caps.empty ();
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Caps.full (Gst.Structure struct1, ...);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Caps.full_valist (Gst.Structure structure, void* var_args);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Caps.simple (string media_type, string fieldname, ...);
 		public weak Gst.Caps normalize ();
 		public void remove_structure (uint idx);
@@ -829,7 +805,6 @@
 		public void warning_object (GLib.Object obj, string format, ...);
 		[CCode (cname = "GST_CAT_ERROR_OBJECT")]
 		public void error_object (GLib.Object obj, string format, ...);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public DebugCategory ();
 		public uint get_color ();
 		public weak string get_description ();
@@ -915,9 +890,7 @@
 		public void* find_custom (GLib.CompareFunc func);
 		public Gst.IteratorResult fold (Gst.IteratorFoldFunction func, GLib.Value ret);
 		public Gst.IteratorResult @foreach (GLib.Func func);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		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);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Iterator.list (GLib.Type type, GLib.Mutex @lock, uint master_cookie, GLib.List list, void* owner, Gst.IteratorItemFunction item, Gst.IteratorDisposeFunction free);
 		public void push (Gst.Iterator other);
 	}
@@ -930,45 +903,25 @@
 		public weak Gst.Object src;
 		public weak Gst.Structure structure;
 		public weak Gst.Structure get_structure ();
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Message.application (Gst.Object src, Gst.Structure structure);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Message.async_done (Gst.Object src);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Message.async_start (Gst.Object src, bool new_base_time);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Message.buffering (Gst.Object src, int percent);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Message.clock_lost (Gst.Object src, Gst.Clock clock);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Message.clock_provide (Gst.Object src, Gst.Clock clock, bool ready);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Message.custom (Gst.MessageType type, Gst.Object src, Gst.Structure structure);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Message.duration (Gst.Object src, Gst.Format format, int64 duration);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Message.element (Gst.Object src, Gst.Structure structure);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Message.eos (Gst.Object src);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Message.error (Gst.Object src, GLib.Error error, string debug);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Message.info (Gst.Object src, GLib.Error error, string debug);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Message.latency (Gst.Object src);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Message.new_clock (Gst.Object src, Gst.Clock clock);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Message.segment_done (Gst.Object src, Gst.Format format, int64 position);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Message.segment_start (Gst.Object src, Gst.Format format, int64 position);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Message.state_changed (Gst.Object src, Gst.State oldstate, Gst.State newstate, Gst.State pending);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Message.state_dirty (Gst.Object src);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Message.tag (Gst.Object src, Gst.TagList tag_list);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Message.warning (Gst.Object src, GLib.Error error, string debug);
 		public void parse_async_start (out bool new_base_time);
 		public void parse_buffering (out int percent);
@@ -999,7 +952,6 @@
 		public weak Gst.MiniObject copy ();
 		public bool is_writable ();
 		public weak Gst.MiniObject make_writable ();
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public MiniObject (GLib.Type type);
 		public void replace (Gst.MiniObject newdata);
 	}
@@ -1039,7 +991,6 @@
 	[CCode (cheader_filename = "gst/gst.h")]
 	public class Poll {
 		public bool add_fd (Gst.PollFD fd);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Poll (bool controllable);
 		public bool remove_fd (Gst.PollFD fd);
 		public void restart ();
@@ -1066,23 +1017,14 @@
 		public Gst.QueryType type;
 		public weak Gst.Structure structure;
 		public weak Gst.Structure get_structure ();
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Query.application (Gst.QueryType type, Gst.Structure structure);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Query.buffering (Gst.Format format);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Query.convert (Gst.Format src_format, int64 value, Gst.Format dest_format);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Query.duration (Gst.Format format);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Query.formats ();
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Query.latency ();
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Query.position (Gst.Format format);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Query.seeking (Gst.Format format);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Query.segment (Gst.Format format);
 		public void parse_buffering_percent (bool busy, int percent);
 		public void parse_buffering_range (Gst.Format format, int64 start, int64 stop, int64 estimated_total);
@@ -1169,7 +1111,6 @@
 		public void insert (Gst.TagList from, Gst.TagMergeMode mode);
 		public bool is_empty ();
 		public weak Gst.TagList merge (Gst.TagList list2, Gst.TagMergeMode mode);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public TagList ();
 		public void remove_tag (string tag);
 	}
@@ -1182,7 +1123,6 @@
 		public int bufsize;
 		public int bufoffset;
 		public void flush ();
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Trace (string filename, int size);
 		public static void read_tsc (int64 dst);
 		public void set_default ();
@@ -1258,7 +1198,6 @@
 		public bool clip (Gst.Format format, int64 start, int64 stop, int64 clip_start, int64 clip_stop);
 		public weak Gst.Segment copy ();
 		public void init (Gst.Format format);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Segment ();
 		public void set_duration (Gst.Format format, int64 duration);
 		public void set_last_stop (Gst.Format format, int64 position);
@@ -1308,9 +1247,7 @@
 		public void id_set_value (GLib.Quark field, GLib.Value value);
 		public bool map_in_place (Gst.StructureMapFunc func);
 		public int n_fields ();
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Structure (string name, string firstfield, ...);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Structure.valist (string name, string firstfield, void* varargs);
 		public weak string nth_field_name (uint index);
 		public void remove_all_fields ();
@@ -1348,7 +1285,7 @@
 		public weak Gst.Iterator iterate_sinks ();
 		public weak Gst.Iterator iterate_sorted ();
 		public weak Gst.Iterator iterate_sources ();
-		[CCode (array_length_pos = 0, delegate_target_pos = 0, type = "GstElement*")]
+		[CCode (type = "GstElement*")]
 		public Bin (string name);
 		public bool remove (Gst.Element element);
 		public void remove_many (Gst.Element element_1, ...);
@@ -1380,7 +1317,6 @@
 		public void disable_sync_message_emission ();
 		public void enable_sync_message_emission ();
 		public bool have_pending ();
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Bus ();
 		public weak Gst.Message peek ();
 		public weak Gst.Message poll (Gst.MessageType events, Gst.ClockTimeDiff timeout);
@@ -1417,9 +1353,9 @@
 		public void get_calibration (Gst.ClockTime internal, Gst.ClockTime external, Gst.ClockTime rate_num, Gst.ClockTime rate_denom);
 		public weak Gst.Clock get_master ();
 		public Gst.ClockTime get_time ();
-		[CCode (array_length_pos = 0, delegate_target_pos = 0, type = "GstClockID")]
+		[CCode (type = "GstClockID")]
 		public Clock.periodic_id (Gst.Clock clock, Gst.ClockTime start_time, Gst.ClockTime interval);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0, type = "GstClockID")]
+		[CCode (type = "GstClockID")]
 		public Clock.single_shot_id (Gst.Clock clock, Gst.ClockTime time);
 		public void set_calibration (Gst.ClockTime internal, Gst.ClockTime external, Gst.ClockTime rate_num, Gst.ClockTime rate_denom);
 		public bool set_master (Gst.Clock master);
@@ -1485,7 +1421,7 @@
 		public void found_tags (Gst.TagList list);
 		public void found_tags_for_pad (Gst.Pad pad, Gst.TagList list);
 		public Gst.ClockTime get_base_time ();
-		public weak Gst.Bus get_bus ();
+		public Gst.Bus get_bus ();
 		public weak Gst.Clock get_clock ();
 		public weak Gst.Pad get_compatible_pad (Gst.Pad pad, Gst.Caps caps);
 		public weak Gst.PadTemplate get_compatible_pad_template (Gst.PadTemplate compattempl);
@@ -1574,13 +1510,13 @@
 	[CCode (cheader_filename = "gst/gst.h")]
 	public class GhostPad : Gst.Pad {
 		public weak Gst.Pad get_target ();
-		[CCode (array_length_pos = 0, delegate_target_pos = 0, type = "GstPad*")]
+		[CCode (type = "GstPad*")]
 		public GhostPad (string name, Gst.Pad target);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0, type = "GstPad*")]
+		[CCode (type = "GstPad*")]
 		public GhostPad.from_template (string name, Gst.Pad target, Gst.PadTemplate templ);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0, type = "GstPad*")]
+		[CCode (type = "GstPad*")]
 		public GhostPad.no_target (string name, Gst.PadDirection dir);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0, type = "GstPad*")]
+		[CCode (type = "GstPad*")]
 		public GhostPad.no_target_from_template (string name, Gst.PadTemplate templ);
 		public bool set_target (Gst.Pad? newtarget);
 	}
@@ -1605,9 +1541,8 @@
 		public weak Gst.IndexEntry get_assoc_entry_full (int id, Gst.IndexLookupMethod method, Gst.AssocFlags flags, Gst.Format format, int64 value, GLib.CompareDataFunc func);
 		public Gst.IndexCertainty get_certainty ();
 		public int get_group ();
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Index ();
-		[CCode (array_length_pos = 0, delegate_target_pos = 0, type = "gint")]
+		[CCode (type = "gint")]
 		public Index.group (Gst.Index index);
 		public void set_certainty (Gst.IndexCertainty certainty);
 		public void set_filter (Gst.IndexFilter filter);
@@ -1632,7 +1567,6 @@
 		public void destroy ();
 		public static weak Gst.IndexFactory find (string name);
 		public static weak Gst.Index make (string name);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public IndexFactory (string name, string longdesc, GLib.Type type);
 	}
 	[CCode (cheader_filename = "gst/gst.h")]
@@ -1642,7 +1576,6 @@
 		public Gst.PadPresence presence;
 		public weak Gst.Caps caps;
 		public weak Gst.Caps get_caps ();
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public PadTemplate (string name_template, Gst.PadDirection direction, Gst.PadPresence presence, Gst.Caps caps);
 		[HasEmitter]
 		public virtual signal void pad_created (Gst.Pad pad);
@@ -1653,11 +1586,11 @@
 		public Gst.ClockTime stream_time;
 		public void auto_clock ();
 		public bool get_auto_flush_bus ();
-		public weak Gst.Bus get_bus ();
+		public Gst.Bus get_bus ();
 		public weak Gst.Clock get_clock ();
 		public Gst.ClockTime get_delay ();
 		public Gst.ClockTime get_last_stream_time ();
-		[CCode (array_length_pos = 0, delegate_target_pos = 0, type = "GstElement*")]
+		[CCode (type = "GstElement*")]
 		public Pipeline (string name);
 		public void set_auto_flush_bus (bool auto_flush);
 		public bool set_clock (Gst.Clock clock);
@@ -1789,7 +1722,6 @@
 		public weak Gst.Element get_element (uchar[] name);
 		public weak GLib.List get_topelements ();
 		public static weak Gst.Element make_element (void* cur, Gst.Object parent);
-		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public XML ();
 		public bool parse_doc (void* doc, uchar[] root);
 		public bool parse_file (uchar[] fname, uchar[] root);

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	Sat Sep 27 12:49:56 2008
@@ -42,6 +42,7 @@
 gst_element_query_position.format is_ref="1"
 gst_element_query_position.cur is_out="1"
 gst_element_send_event.event takes_ownership="1"
+gst_element_get_bus transfer_ownership="1"
 GstElementDetails is_value_type="1"
 gst_element_factory_make transfer_ownership="1" nullable="1"
 gst_element_factory_make.name nullable="1"
@@ -153,6 +154,7 @@
 GstParamSpecFraction.parent_instance hidden="1"
 GstParamSpecMiniObject base_class="GParamSpec"
 GstParamSpecMiniObject.parent_instance hidden="1"
+gst_pipeline_get_bus transfer_ownership="1"
 GstQuery base_class="GstMiniObject"
 GstQuery.mini_object hidden="1"
 GstQueryClass base_class="GstMiniObjectClass"



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