From: Sebastian Dröge Date: Fri, 9 Apr 2010 10:45:28 +0000 (+0200) Subject: gstreamer: Use generic Gst.Iterator with correct type arguments everywhere X-Git-Tag: 0.9.1~152 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eafc4a69982b64852c187fdb8640b65315281e0c;p=thirdparty%2Fvala.git gstreamer: Use generic Gst.Iterator with correct type arguments everywhere --- diff --git a/vapi/gstreamer-0.10.vapi b/vapi/gstreamer-0.10.vapi index 94316d6e5..bfe496608 100644 --- a/vapi/gstreamer-0.10.vapi +++ b/vapi/gstreamer-0.10.vapi @@ -44,12 +44,12 @@ namespace Gst { public Gst.Element? get_by_name_recurse_up (string name); [NoWrapper] public virtual void handle_message (Gst.Message message); - public Gst.Iterator iterate_all_by_interface (GLib.Type iface); - public Gst.Iterator iterate_elements (); - public Gst.Iterator iterate_recurse (); - public Gst.Iterator iterate_sinks (); - public Gst.Iterator iterate_sorted (); - public Gst.Iterator iterate_sources (); + public Gst.Iterator iterate_all_by_interface (GLib.Type iface); + public Gst.Iterator iterate_elements (); + public Gst.Iterator iterate_recurse (); + public Gst.Iterator iterate_sinks (); + public Gst.Iterator iterate_sorted (); + public Gst.Iterator iterate_sources (); public bool recalculate_latency (); public bool remove (Gst.Element element); [NoWrapper] @@ -391,8 +391,8 @@ namespace Gst { public bool is_indexable (); public bool is_locked_state (); public Gst.Iterator iterate_pads (); - public Gst.Iterator iterate_sink_pads (); - public Gst.Iterator iterate_src_pads (); + public Gst.Iterator iterate_sink_pads (); + public Gst.Iterator iterate_src_pads (); public bool link (Gst.Element dest); public bool link_filtered (Gst.Element dest, Gst.Caps filter); public bool link_many (Gst.Element element_2, ...); @@ -855,8 +855,8 @@ namespace Gst { public bool is_blocked (); public bool is_blocking (); public bool is_linked (); - public unowned Gst.Iterator iterate_internal_links (); - public unowned Gst.Iterator iterate_internal_links_default (); + public Gst.Iterator iterate_internal_links (); + public Gst.Iterator iterate_internal_links_default (); public Gst.PadLinkReturn link (Gst.Pad sinkpad); public void load_and_link (Gst.Object parent); public bool pause_task (); @@ -1110,7 +1110,7 @@ namespace Gst { public void set_uri (string uri); public static Gst.QueryType type_get_by_nick (string nick); public static unowned Gst.QueryTypeDefinition type_get_details (Gst.QueryType type); - public static unowned Gst.Iterator type_iterate_definitions (); + public static 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); public static bool types_contains (Gst.QueryType types, Gst.QueryType type); @@ -2611,7 +2611,7 @@ namespace Gst { [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 Gst.Iterator format_iterate_definitions (); + public static Gst.Iterator format_iterate_definitions (); [CCode (cheader_filename = "gst/gst.h")] public static Gst.Format format_register (string nick, string description); [CCode (cheader_filename = "gst/gst.h")] diff --git a/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata b/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata index 0ce94ab32..09715ba7a 100644 --- a/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata +++ b/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata @@ -12,12 +12,12 @@ gst_bin_remove_many hidden="1" gst_bin_get_by_name transfer_ownership="1" nullable="1" gst_bin_get_by_name_recurse_up transfer_ownership="1" nullable="1" gst_bin_get_by_interface transfer_ownership="1" nullable="1" -gst_bin_iterate_elements transfer_ownership="1" -gst_bin_iterate_recurse transfer_ownership="1" -gst_bin_iterate_sinks transfer_ownership="1" -gst_bin_iterate_sorted transfer_ownership="1" -gst_bin_iterate_sources transfer_ownership="1" -gst_bin_iterate_all_by_interface transfer_ownership="1" +gst_bin_iterate_elements transfer_ownership="1" type_arguments="Element" +gst_bin_iterate_recurse transfer_ownership="1" type_arguments="Element" +gst_bin_iterate_sinks transfer_ownership="1" type_arguments="Element" +gst_bin_iterate_sorted transfer_ownership="1" type_arguments="Element" +gst_bin_iterate_sources transfer_ownership="1" type_arguments="Element" +gst_bin_iterate_all_by_interface transfer_ownership="1" type_arguments="Element" gst_bin_find_unconnected_pad transfer_ownership="1" nullable="1" gst_bin_find_unlinked_pad transfer_ownership="1" nullable="1" GstBuffer base_class="GstMiniObject" @@ -149,7 +149,7 @@ gst_element_class_get_pad_template nullable="1" gst_element_class_get_pad_template_list type_arguments="PadTemplate" gst_element_post_message.message takes_ownership="1" gst_element_get_compatible_pad.caps nullable="1" -gst_element_iterate_*pads transfer_ownership="1" +gst_element_iterate_*pads transfer_ownership="1" type_arguments="Pad" gst_element_get_factory nullable="1" gst_element_get_index transfer_ownership="1" nullable="1" gst_element_set_index.index nullable="1" @@ -171,7 +171,6 @@ gst_element_factory_create.name nullable="1" gst_element_factory_get_static_pad_templates type_arguments="StaticPadTemplate" gst_element_factory_find transfer_ownership="1" nullable="1" gst_element_factory_get_uri_protocols is_array="1" array_null_terminated="1" transfer_ownership="1" nullable="1" -gst_element_iterate_pads transfer_ownership="1" type_arguments="Pad" gst_error_get_message transfer_ownership="1" GstEvent base_class="GstMiniObject" GstEvent.mini_object hidden="1" @@ -194,6 +193,7 @@ GstFlowReturn to_string="gst_flow_get_name" gst_flow_get_name hidden="1" GstFormat to_string="gst_format_get_name" gst_format_get_name hidden="1" +gst_format_iterate_definitions type_arguments="FormatDefinition" transfer_ownership="1" GstFormatDefinition is_value_type="1" GstGhostPad base_class="GstPad" GstGhostPadClass hidden="1" @@ -367,6 +367,7 @@ gst_pad_send_event.event takes_ownership="1" gst_pad_set_query_type_function hidden="1" gst_pad_set_caps.caps nullable="1" gst_pad_template_new.caps takes_ownership="1" +gst_pad_iterate_internal_links* transfer_ownership="1" type_arguments="Pad" gst_ghost_pad_new.name nullable="1" gst_ghost_pad_new_from_template.name nullable="1" gst_ghost_pad_new_no_target.name nullable="1" @@ -412,6 +413,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_query_type_iterate_definitions transfer_ownership="1" type_arguments="QueryTypeDefinition" 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"