From: Rico Tzschichholz Date: Mon, 3 Jul 2017 07:38:40 +0000 (+0200) Subject: vapi: Update GIR-based bindings X-Git-Tag: 0.37.1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=baab7fc8bac850a89395f201db105b57cc7c1e99;p=thirdparty%2Fvala.git vapi: Update GIR-based bindings --- diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi index ae1a10252..9dccb045c 100644 --- a/vapi/gstreamer-1.0.vapi +++ b/vapi/gstreamer-1.0.vapi @@ -3471,7 +3471,13 @@ namespace Gst { PAUSED_TO_PLAYING, PLAYING_TO_PAUSED, PAUSED_TO_READY, - READY_TO_NULL + READY_TO_NULL, + NULL_TO_NULL, + READY_TO_READY, + PAUSED_TO_PAUSED, + PLAYING_TO_PLAYING; + [Version (since = "1.14")] + public static unowned string get_name (Gst.StateChange transition); } [CCode (cheader_filename = "gst/gst.h", cprefix = "GST_STATE_CHANGE_", type_id = "gst_state_change_return_get_type ()")] public enum StateChangeReturn { @@ -3965,6 +3971,9 @@ namespace Gst { public static unowned string? preset_get_app_dir (); [CCode (cheader_filename = "gst/gst.h")] public static bool preset_set_app_dir (string app_dir); + [CCode (array_length = false, array_null_terminated = true, cheader_filename = "gst/gst.h")] + [Version (since = "1.14")] + public static string[] protection_filter_systems_by_available_decryptors (string system_identifiers); [CCode (cheader_filename = "gst/gst.h")] [Version (since = "1.6")] public static unowned string protection_select_system ([CCode (array_length = false, array_null_terminated = true)] string[] system_identifiers); diff --git a/vapi/gstreamer-base-1.0.vapi b/vapi/gstreamer-base-1.0.vapi index b2b88b9ad..70d8b1c3b 100644 --- a/vapi/gstreamer-base-1.0.vapi +++ b/vapi/gstreamer-base-1.0.vapi @@ -384,9 +384,11 @@ namespace Gst { [Version (since = "1.6")] public void clear (); public void free (); + public unowned Gst.Base.FlowCombiner @ref (); public void remove_pad (Gst.Pad pad); [Version (since = "1.6")] public void reset (); + public void unref (); public Gst.FlowReturn update_flow (Gst.FlowReturn fret); [Version (since = "1.6")] public Gst.FlowReturn update_pad_flow (Gst.Pad pad, Gst.FlowReturn fret); @@ -458,6 +460,7 @@ namespace Gst { public int overhead; [CCode (has_construct_function = false)] public ParseFrame (Gst.Buffer buffer, Gst.Base.ParseFrameFlags flags, int overhead); + public Gst.Base.ParseFrame copy (); public void free (); public void init (); } diff --git a/vapi/gstreamer-controller-1.0.vapi b/vapi/gstreamer-controller-1.0.vapi index d9d31d87a..63a103c43 100644 --- a/vapi/gstreamer-controller-1.0.vapi +++ b/vapi/gstreamer-controller-1.0.vapi @@ -33,6 +33,8 @@ namespace Gst { public double cache_cubic_z; public Gst.ClockTime timestamp; public double value; + public Gst.Controller.ControlPoint copy (); + public void free (); } [CCode (cheader_filename = "gst/controller/controller.h", cname = "GstDirectControlBinding", lower_case_cprefix = "gst_direct_control_binding_", type_id = "gst_direct_control_binding_get_type ()")] [GIR (name = "DirectControlBinding")] diff --git a/vapi/gstreamer-pbutils-1.0.vapi b/vapi/gstreamer-pbutils-1.0.vapi index 93080731b..c20c69f7c 100644 --- a/vapi/gstreamer-pbutils-1.0.vapi +++ b/vapi/gstreamer-pbutils-1.0.vapi @@ -242,6 +242,7 @@ namespace Gst { public class InstallPluginsContext { [CCode (has_construct_function = false)] public InstallPluginsContext (); + public Gst.PbUtils.InstallPluginsContext copy (); public void free (); [Version (since = "1.6")] public void set_confirm_search (bool confirm_search); diff --git a/vapi/gstreamer-rtsp-1.0.vapi b/vapi/gstreamer-rtsp-1.0.vapi index 7da23eddd..402448464 100644 --- a/vapi/gstreamer-rtsp-1.0.vapi +++ b/vapi/gstreamer-rtsp-1.0.vapi @@ -17,6 +17,8 @@ namespace Gst { public class AuthParam { public weak string name; public weak string value; + public Gst.RTSP.AuthParam copy (); + public void free (); } [CCode (cheader_filename = "gst/rtsp/rtsp.h", has_type_id = false)] [Compact] diff --git a/vapi/metadata/GstBase-1.0-custom.vala b/vapi/metadata/GstBase-1.0-custom.vala index b198a6f26..00d04f2bd 100644 --- a/vapi/metadata/GstBase-1.0-custom.vala +++ b/vapi/metadata/GstBase-1.0-custom.vala @@ -23,5 +23,11 @@ namespace Gst { public ByteWriter.with_size (uint size, bool fixed); public ByteWriter.with_data ([CCode (array_length_type = "guint")] uint8[] data, uint size, bool initialized); } + + // Keep backwards compat with < 1.13/1.14 + [CCode (cheader_filename = "gst/base/base.h", cname = "GstFlowCombiner", copy_function = "g_boxed_copy", free_function = "g_boxed_free", lower_case_cprefix = "gst_flow_combiner_", type_id = "gst_flow_combiner_get_type ()")] + [Compact] + public class FlowCombiner { + } } } diff --git a/vapi/metadata/GstBase-1.0.metadata b/vapi/metadata/GstBase-1.0.metadata index 6514339b6..504cb31d1 100644 --- a/vapi/metadata/GstBase-1.0.metadata +++ b/vapi/metadata/GstBase-1.0.metadata @@ -2,6 +2,8 @@ Base* name="Base(.+)" BASE_* name="BASE_(.+)" +*.ref unowned + PushSrc .create.buf out unowned=false .alloc.buf out unowned=false