]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vapi: Update GIR-based bindings
authorRico Tzschichholz <ricotz@ubuntu.com>
Sat, 17 Dec 2016 12:03:59 +0000 (13:03 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 17 Dec 2016 12:03:59 +0000 (13:03 +0100)
vapi/gstreamer-1.0.vapi
vapi/gstreamer-audio-1.0.vapi
vapi/gstreamer-rtsp-1.0.vapi
vapi/gtk+-4.0.vapi

index f1fa08e9be216d1c943385afadae1d96e5dc8542..65625dcb89da621c10e0f282e074452daaa46f13 100644 (file)
@@ -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,
index e519f3a69e9257f07e245f3352dea3b4606473bc..8dd81997b666eab5c28ac26a62897257f1e2bc76 100644 (file)
@@ -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")]
index 90cd1df9ee63a522490bd45e7088dc09433abe5b..7da23edddeb1127a21bb6a6ae64567a9b1c41750 100644 (file)
@@ -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);
index 5ede18aa528e8580669d13f359de05efcc5b2736..2a747de9309abb789d8a72529073df84b3451f1c 100644 (file)
@@ -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);