From: Marcin Lewandowski Date: Mon, 18 Feb 2013 03:12:28 +0000 (-0800) Subject: gstreamer-0.10: add some deprecation annotations X-Git-Tag: 0.19.0~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cdeb4db5675e615179866c36b9536c182a442de9;p=thirdparty%2Fvala.git gstreamer-0.10: add some deprecation annotations Fixes bug 682207. --- diff --git a/vapi/gstreamer-0.10.vapi b/vapi/gstreamer-0.10.vapi index d7d4b3ee0..d9fb40eeb 100644 --- a/vapi/gstreamer-0.10.vapi +++ b/vapi/gstreamer-0.10.vapi @@ -47,6 +47,7 @@ namespace Gst { [NoWrapper] public virtual bool add_element (Gst.Element element); public void add_many (params Gst.Element[] elements); + [Deprecated (replacement = "Gst.Bin.find_unlinked_pad")] public Gst.Pad? find_unconnected_pad (Gst.PadDirection direction); public Gst.Pad? find_unlinked_pad (Gst.PadDirection direction); public Gst.Element? get_by_interface (GLib.Type iface); @@ -121,6 +122,7 @@ namespace Gst { public static void replace (ref Gst.Buffer? oldobj, Gst.Buffer? newobj); public void set_caps (Gst.Caps caps); public Gst.Buffer span (uint32 offset, Gst.Buffer buf2, uint32 len); + [Deprecated (replacement = "Gst.Buffer.copy_metadata")] public void stamp (Gst.Buffer src); [CCode (cname = "GST_BUFFER_TIMESTAMP_IS_VALID")] public bool timestamp_is_valid (); @@ -426,6 +428,7 @@ namespace Gst { public unowned Gst.PadTemplate? get_compatible_pad_template (Gst.PadTemplate compattempl); public unowned Gst.ElementFactory? get_factory (); public virtual Gst.Index? get_index (); + [Deprecated] public Gst.Pad? get_pad (string name); [CCode (cname = "gst_element_class_get_pad_template")] public class unowned Gst.PadTemplate? get_pad_template (string name); @@ -433,6 +436,7 @@ namespace Gst { public class unowned GLib.List get_pad_template_list (); [CCode (array_length = false)] public virtual unowned Gst.QueryType[]? get_query_types (); + [Deprecated (replacement = "Gst.Element.request_pad")] public Gst.Pad? get_request_pad (string name); public Gst.ClockTime get_start_time (); public virtual Gst.StateChangeReturn get_state (out Gst.State state, out Gst.State pending, Gst.ClockTime timeout); @@ -481,6 +485,7 @@ namespace Gst { public virtual void set_bus (Gst.Bus? bus); public virtual bool set_clock (Gst.Clock? clock); [CCode (cname = "gst_element_class_set_details")] + [Deprecated (replacement = "Gst.Element.set_details_simple")] public class void set_details (Gst.ElementDetails details); [CCode (cname = "gst_element_class_set_details_simple")] public class void set_details_simple (string longname, string classification, string description, string author); @@ -508,9 +513,11 @@ namespace Gst { [CCode (has_construct_function = false)] protected ElementFactory (); public bool can_sink_all_caps (Gst.Caps caps); + [Deprecated (replacement = "Gst.ElementFactory.can_sink_all_caps")] public bool can_sink_any_caps (Gst.Caps caps); public bool can_sink_caps (Gst.Caps caps); public bool can_src_all_caps (Gst.Caps caps); + [Deprecated (replacement = "Gst.ElementFactory.can_src_all_caps")] public bool can_src_any_caps (Gst.Caps caps); public bool can_src_caps (Gst.Caps caps); [CCode (returns_floating_reference = true)] @@ -924,7 +931,9 @@ namespace Gst { public Gst.PadDirection get_direction (); public void* get_element_private (); public Gst.Caps get_fixed_caps_func (); + [Deprecated (replacement = "Gst.Pad.iterate_internal_links")] public GLib.List get_internal_links (); + [Deprecated (replacement = "Gst.Pad.iterate_internal_links_default")] public GLib.List get_internal_links_default (); public Gst.Caps get_negotiated_caps (); public unowned Gst.PadTemplate get_pad_template (); @@ -986,6 +995,7 @@ namespace Gst { public void set_fixatecaps_function (Gst.PadFixateCapsFunction fixatecaps); public void set_getcaps_function (Gst.PadGetCapsFunction getcaps); public void set_getrange_function (Gst.PadGetRangeFunction @get); + [Deprecated (replacement = "Gst.Pad.set_iterate_internal_links_function")] public void set_internal_link_function (Gst.PadIntLinkFunction intlink); public void set_iterate_internal_links_function (Gst.PadIterIntLinkFunction iterintlink); public void set_link_function (Gst.PadLinkFunction link); @@ -1054,10 +1064,12 @@ namespace Gst { public Gst.Bus get_bus (); public Gst.Clock? get_clock (); public Gst.ClockTime get_delay (); + [Deprecated (replacement = "Gst.Element.get_start_time")] public Gst.ClockTime get_last_stream_time (); public void set_auto_flush_bus (bool auto_flush); public bool set_clock (Gst.Clock? clock); public void set_delay (Gst.ClockTime delay); + [Deprecated (replacement = "Gst.Element.set_start_time")] public void set_new_stream_time (Gst.ClockTime time); public void use_clock (Gst.Clock? clock); public bool auto_flush_bus { get; set; } @@ -1511,16 +1523,21 @@ namespace Gst { public void* ns; public weak GLib.List topelements; [CCode (has_construct_function = false)] + [Deprecated] public XML (); public unowned Gst.Element get_element (string name); public unowned GLib.List get_topelements (); + [Deprecated] public static unowned Gst.Element make_element (void* cur, Gst.Object parent); [NoWrapper] public virtual void object_saved (Gst.Object object, void* self); public bool parse_doc (void* doc, string root); public bool parse_file (string fname, string root); + [Deprecated] public bool parse_memory (uchar[] buffer, uint size, string root); + [Deprecated] public static void* write (Gst.Element element); + [Deprecated] public static int write_file (Gst.Element element, GLib.FileStream @out); public virtual signal void object_loaded (Gst.Object object, void* self); } diff --git a/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata b/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata index 753671762..a61e1e211 100644 --- a/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata +++ b/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata @@ -17,7 +17,7 @@ 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_unconnected_pad transfer_ownership="1" nullable="1" replacement="Gst.Bin.find_unlinked_pad" gst_bin_find_unlinked_pad transfer_ownership="1" nullable="1" GstBuffer base_class="GstMiniObject" GstBuffer.data type_name="unowned uint8[]" array_length_cname="size" array_length_type="guint" @@ -33,6 +33,7 @@ gst_buffer_try_new_and_alloc transfer_ownership="1" nullable="1" gst_buffer_join hidden="1" gst_buffer_merge transfer_ownership="1" gst_buffer_span transfer_ownership="1" +gst_buffer_stamp replacement="Gst.Buffer.copy_metadata" GstBufferList base_class="MiniObject" GstBufferListClass hidden="1" gst_buffer_list_get nullable="1" @@ -139,13 +140,14 @@ gst_element_get_bus transfer_ownership="1" nullable="1" gst_element_set_bus.bus nullable="1" gst_element_make_from_uri hidden="1" gst_element_get_static_pad transfer_ownership="1" nullable="1" -gst_element_get_pad transfer_ownership="1" nullable="1" -gst_element_get_request_pad transfer_ownership="1" nullable="1" +gst_element_get_pad transfer_ownership="1" nullable="1" deprecated="1" +gst_element_get_request_pad transfer_ownership="1" nullable="1" replacement="Gst.Element.request_pad" gst_element_request_pad transfer_ownership="1" nullable="1" gst_element_request_pad.name nullable="1" gst_element_request_pad.caps nullable="1" gst_element_get_compatible_pad transfer_ownership="1" nullable="1" gst_element_get_compatible_pad_template nullable="1" +gst_element_class_set_details replacement="Gst.Element.set_details_simple" 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" @@ -173,6 +175,8 @@ gst_element_factory_get_uri_protocols is_array="1" array_null_terminated="1" tra gst_element_factory_list_get_elements transfer_ownership="1" type_arguments="ElementFactory" gst_element_factory_list_filter transfer_ownership="1" type_arguments="ElementFactory" gst_element_factory_list_filter.list transfer_ownership="0" type_arguments="ElementFactory" +gst_element_factory_can_sink_any_caps replacement="Gst.ElementFactory.can_sink_all_caps" +gst_element_factory_can_src_any_caps replacement="Gst.ElementFactory.can_src_all_caps" GstElementFactoryListType hidden="1" gst_error_get_message transfer_ownership="1" GstEvent base_class="GstMiniObject" @@ -384,14 +388,15 @@ gst_pad_dispatcher.data hidden="1" gst_pad_start_task.data hidden="1" gst_pad_event_default.event takes_ownership="1" gst_pad_get_fixed_caps_func hidden="1" -gst_pad_get_internal_links transfer_ownership="1" type_arguments="Pad" -gst_pad_get_internal_links_default transfer_ownership="1" type_arguments="Pad" +gst_pad_get_internal_links transfer_ownership="1" type_arguments="Pad" replacement="Gst.Pad.iterate_internal_links" +gst_pad_get_internal_links_default transfer_ownership="1" type_arguments="Pad" replacement="Gst.Pad.iterate_internal_links_default" gst_pad_get_parent_element transfer_ownership="1" nullable="1" gst_pad_get_peer nullable="1" gst_pad_get_query_types is_array="1" no_array_length="1" nullable="1" gst_pad_get_query_types_default is_array="1" no_array_length="1" nullable="1" gst_pad_get_range.buffer transfer_ownership="1" gst_pad_pull_range.buffer transfer_ownership="1" +gst_pad_set_internal_link_function replacement="Gst.Pad.set_iterate_internal_links_function" GstPadChainFunction.buffer takes_ownership="1" GstPadChainListFunction.list takes_ownership="1" GstPadEventFunction.event takes_ownership="1" @@ -461,6 +466,8 @@ gst_pipeline_get_bus transfer_ownership="1" gst_pipeline_get_clock transfer_ownership="1" nullable="1" gst_pipeline_set_clock.clock nullable="1" gst_pipeline_use_clock.clock nullable="1" +gst_pipeline_get_last_stream_time replacement="Gst.Element.get_start_time" +gst_pipeline_set_new_stream_time replacement="Gst.Element.set_start_time" GstQuery base_class="GstMiniObject" GstQuery.mini_object hidden="1" GstQueryClass hidden="1" @@ -669,9 +676,15 @@ GstURIHandler::new_uri has_emitter="1" gst_uri_handler_get_protocols is_array="1" gst_uri_handler_get_protocols_full is_array="1" gst_version_string transfer_ownership="1" -gst_xml_parse_doc hidden="1" -gst_xml_parse_file hidden="1" -gst_xml_get_element hidden="1" +gst_xml_write deprecated="1" +gst_xml_write_file deprecated="1" +gst_xml_new deprecated="1" +gst_xml_parse_doc hidden="1" deprecated="1" +gst_xml_parse_file hidden="1" deprecated="1" +gst_xml_parse_memory deprecated="1" +gst_xml_get_element hidden="1" deprecated="1" +gst_xml_get_topelements deprecated="1" +gst_xml_make_element deprecated="1" xml* name="pointer" GstTagSetterIFace hidden="1" gst_tag_setter_add_tag_values ellipsis="1"