[vala] vapi: Update GIR-based bindings



commit 28fcae998ccb0b105a52c89c74bae95398e8e749
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sat Dec 17 13:03:59 2016 +0100

    vapi: Update GIR-based bindings

 vapi/gstreamer-1.0.vapi       |   13 +++++++++----
 vapi/gstreamer-audio-1.0.vapi |    2 +-
 vapi/gstreamer-rtsp-1.0.vapi  |   31 ++++++++++++++++++-------------
 vapi/gtk+-4.0.vapi            |    3 ---
 4 files changed, 28 insertions(+), 21 deletions(-)
---
diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi
index f1fa08e..65625dc 100644
--- a/vapi/gstreamer-1.0.vapi
+++ b/vapi/gstreamer-1.0.vapi
@@ -29,7 +29,8 @@ namespace Gst {
                [CCode (cheader_filename = "gst/gst.h")]
                public static Gst.DebugLevel get_default_threshold ();
                [CCode (cheader_filename = "gst/gst.h")]
-               public static string get_stack_trace ();
+               [Version (since = "1.12")]
+               public static string get_stack_trace (Gst.StackTraceFlags flags);
                [CCode (cheader_filename = "gst/gst.h")]
                public static bool is_active ();
                [CCode (cheader_filename = "gst/gst.h")]
@@ -675,7 +676,6 @@ namespace Gst {
                public bool is_all_memory_writable ();
                [Version (since = "1.4")]
                public bool is_memory_range_writable (uint idx, int length);
-               public unowned Gst.Meta? iterate_meta (void* state);
                public bool map (out Gst.MapInfo info, Gst.MapFlags flags);
                public bool map_range (uint idx, int length, out Gst.MapInfo info, Gst.MapFlags flags);
                public int memcmp (size_t offset, [CCode (array_length_cname = "size", array_length_pos = 
2.1, array_length_type = "gsize")] uint8[] mem);
@@ -1351,7 +1351,7 @@ namespace Gst {
                public void parse_segment (out unowned Gst.Segment segment);
                public void parse_segment_done (out Gst.Format format, out int64 position);
                [Version (since = "1.10")]
-               public void parse_select_streams (out GLib.List<char> streams);
+               public void parse_select_streams (out GLib.List<string> streams);
                public void parse_sink_message (out Gst.Message msg);
                public void parse_step (out Gst.Format format, out uint64 amount, out double rate, out bool 
flush, out bool intermediate);
                [Version (since = "1.10")]
@@ -1381,7 +1381,7 @@ namespace Gst {
                public Event.segment_done (Gst.Format format, int64 position);
                [CCode (has_construct_function = false)]
                [Version (since = "1.10")]
-               public Event.select_streams (GLib.List<char> streams);
+               public Event.select_streams (GLib.List<string> streams);
                [Version (since = "1.2")]
                public void set_group_id (uint group_id);
                [Version (since = "1.4")]
@@ -3411,6 +3411,11 @@ namespace Gst {
                TRICKMODE_KEY_UNITS,
                TRICKMODE_NO_AUDIO
        }
+       [CCode (cheader_filename = "gst/gst.h", cprefix = "GST_STACK_TRACE_SHOW_", type_id = 
"gst_stack_trace_flags_get_type ()")]
+       [Flags]
+       public enum StackTraceFlags {
+               FULL
+       }
        [CCode (cheader_filename = "gst/gst.h", cprefix = "GST_STATE_", type_id = "gst_state_get_type ()")]
        public enum State {
                VOID_PENDING,
diff --git a/vapi/gstreamer-audio-1.0.vapi b/vapi/gstreamer-audio-1.0.vapi
index e519f3a..8dd8199 100644
--- a/vapi/gstreamer-audio-1.0.vapi
+++ b/vapi/gstreamer-audio-1.0.vapi
@@ -839,7 +839,7 @@ namespace Gst {
                [CCode (cheader_filename = "gst/audio/audio.h", cname = 
"gst_audio_channel_positions_from_mask")]
                public static bool audio_channel_positions_from_mask (uint64 channel_mask, [CCode 
(array_length_cname = "channels", array_length_pos = 0.5)] Gst.Audio.ChannelPosition[] position);
                [CCode (cheader_filename = "gst/audio/audio.h", cname = 
"gst_audio_channel_positions_to_mask")]
-               public static bool audio_channel_positions_to_mask ([CCode (array_length_cname = "channels", 
array_length_pos = 1.5)] Gst.Audio.ChannelPosition[] position, bool force_order, [CCode (array_length = 
false)] uint64[] channel_mask);
+               public static bool audio_channel_positions_to_mask ([CCode (array_length_cname = "channels", 
array_length_pos = 1.5)] Gst.Audio.ChannelPosition[] position, bool force_order, out uint64 channel_mask);
                [CCode (cheader_filename = "gst/audio/audio.h", cname = 
"gst_audio_channel_positions_to_string")]
                public static string audio_channel_positions_to_string ([CCode (array_length_cname = 
"channels", array_length_pos = 1.1)] Gst.Audio.ChannelPosition[] position);
                [CCode (cheader_filename = "gst/audio/audio.h", cname = 
"gst_audio_channel_positions_to_valid_order")]
diff --git a/vapi/gstreamer-rtsp-1.0.vapi b/vapi/gstreamer-rtsp-1.0.vapi
index 90cd1df..7da23ed 100644
--- a/vapi/gstreamer-rtsp-1.0.vapi
+++ b/vapi/gstreamer-rtsp-1.0.vapi
@@ -3,6 +3,21 @@
 [CCode (cprefix = "Gst", gir_namespace = "GstRtsp", gir_version = "1.0", lower_case_cprefix = "gst_")]
 namespace Gst {
        namespace RTSP {
+               [CCode (cheader_filename = "gst/rtsp/rtsp.h", copy_function = "g_boxed_copy", free_function = 
"g_boxed_free", type_id = "gst_rtsp_auth_credential_get_type ()")]
+               [Compact]
+               [GIR (name = "RTSPAuthCredential")]
+               public class AuthCredential {
+                       public weak string authorization;
+                       public weak Gst.RTSP.AuthParam @params;
+                       public Gst.RTSP.AuthMethod scheme;
+               }
+               [CCode (cheader_filename = "gst/rtsp/rtsp.h", copy_function = "g_boxed_copy", free_function = 
"g_boxed_free", type_id = "gst_rtsp_auth_param_get_type ()")]
+               [Compact]
+               [GIR (name = "RTSPAuthParam")]
+               public class AuthParam {
+                       public weak string name;
+                       public weak string value;
+               }
                [CCode (cheader_filename = "gst/rtsp/rtsp.h", has_type_id = false)]
                [Compact]
                [GIR (name = "RTSPConnection")]
@@ -105,19 +120,6 @@ namespace Gst {
                        public virtual signal Gst.RTSP.Result send (void* req, void* resp);
                }
                [CCode (cheader_filename = "gst/rtsp/rtsp.h", has_type_id = false)]
-               [GIR (name = "RTSPAuthCredential")]
-               public struct AuthCredential {
-                       public Gst.RTSP.AuthMethod scheme;
-                       public Gst.RTSP.AuthParam @params;
-                       public weak string authorization;
-               }
-               [CCode (cheader_filename = "gst/rtsp/rtsp.h", has_type_id = false)]
-               [GIR (name = "RTSPAuthParam")]
-               public struct AuthParam {
-                       public weak string name;
-                       public weak string value;
-               }
-               [CCode (cheader_filename = "gst/rtsp/rtsp.h", has_type_id = false)]
                [GIR (name = "RTSPMessage")]
                public struct Message {
                        public Gst.RTSP.MsgType type;
@@ -150,6 +152,8 @@ namespace Gst {
                        public Gst.RTSP.Result init_data (uint8 channel);
                        public Gst.RTSP.Result init_request (Gst.RTSP.Method method, string uri);
                        public Gst.RTSP.Result init_response (Gst.RTSP.StatusCode code, string? reason, 
Gst.RTSP.Message? request);
+                       [Version (since = "1.12")]
+                       public Gst.RTSP.AuthCredential parse_auth_credentials (Gst.RTSP.HeaderField field);
                        public Gst.RTSP.Result parse_data (out uint8 channel);
                        public Gst.RTSP.Result parse_request (out Gst.RTSP.Method method, out string uri, out 
Gst.RTSP.Version version);
                        public Gst.RTSP.Result parse_response (out Gst.RTSP.StatusCode code, out string 
reason, out Gst.RTSP.Version version);
@@ -495,6 +499,7 @@ namespace Gst {
                [CCode (cheader_filename = "gst/rtsp/rtsp.h", cname = "GST_RTSP_DEFAULT_PORT")]
                public const int _DEFAULT_PORT;
                [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
+               [Version (since = "1.12")]
                public static void auth_credentials_free (Gst.RTSP.AuthCredential credentials);
                [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
                public static Gst.RTSP.Result connection_accept (GLib.Socket socket, out Gst.RTSP.Connection 
conn, GLib.Cancellable? cancellable = null);
diff --git a/vapi/gtk+-4.0.vapi b/vapi/gtk+-4.0.vapi
index 5ede18a..2a747de 100644
--- a/vapi/gtk+-4.0.vapi
+++ b/vapi/gtk+-4.0.vapi
@@ -5813,8 +5813,6 @@ namespace Gdk {
                public void destroy ();
                [Version (since = "3.22")]
                public void end_draw_frame (Gdk.DrawingContext context);
-               [Version (since = "2.18")]
-               public bool ensure_native ();
                public void focus (uint32 timestamp);
                public void freeze_updates ();
                [Version (since = "2.2")]
@@ -5920,7 +5918,6 @@ namespace Gdk {
                public void raise ();
                public void register_dnd ();
                public void remove_filter (Gdk.FilterFunc function);
-               public void reparent (Gdk.Window new_parent, int x, int y);
                public void resize (int width, int height);
                [Version (since = "2.18")]
                public void restack (Gdk.Window? sibling, bool above);


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