[vala] vapi: Update GIR-based bindings
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] vapi: Update GIR-based bindings
- Date: Mon, 3 Jul 2017 07:39:36 +0000 (UTC)
commit baab7fc8bac850a89395f201db105b57cc7c1e99
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Jul 3 09:38:40 2017 +0200
vapi: Update GIR-based bindings
vapi/gstreamer-1.0.vapi | 11 ++++++++++-
vapi/gstreamer-base-1.0.vapi | 3 +++
vapi/gstreamer-controller-1.0.vapi | 2 ++
vapi/gstreamer-pbutils-1.0.vapi | 1 +
vapi/gstreamer-rtsp-1.0.vapi | 2 ++
vapi/metadata/GstBase-1.0-custom.vala | 6 ++++++
vapi/metadata/GstBase-1.0.metadata | 2 ++
7 files changed, 26 insertions(+), 1 deletions(-)
---
diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi
index ae1a102..9dccb04 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 b2b88b9..70d8b1c 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 d9d31d8..63a103c 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 9308073..c20c69f 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 7da23ed..4024484 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 b198a6f..00d04f2 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 6514339..504cb31 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]