[vala] vapi: Update GIR-based bindings



commit 981b3822b45bf0639f8b54ccd29138489add14c1
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue Aug 30 18:29:35 2016 +0200

    vapi: Update GIR-based bindings

 vapi/gdk-3.0.vapi                 |   70 +++++++++++++++++++++++++++++++++++-
 vapi/gstreamer-1.0.vapi           |    9 ++++-
 vapi/gstreamer-video-1.0.vapi     |   22 +++++++++++
 vapi/libsoup-2.4.vapi             |    6 +++
 vapi/metadata/Gdk-3.0-custom.vala |    3 ++
 vapi/metadata/Gdk-3.0.metadata    |    3 ++
 6 files changed, 110 insertions(+), 3 deletions(-)
---
diff --git a/vapi/gdk-3.0.vapi b/vapi/gdk-3.0.vapi
index 09a1e3c..2703a78 100644
--- a/vapi/gdk-3.0.vapi
+++ b/vapi/gdk-3.0.vapi
@@ -4738,11 +4738,14 @@ namespace Gdk {
                [CCode (has_construct_function = false)]
                protected DeviceTool ();
                [Version (since = "3.22")]
-               public uint get_serial ();
+               public uint64 get_hardware_id ();
+               [Version (since = "3.22")]
+               public uint64 get_serial ();
                [Version (since = "3.22")]
                public Gdk.DeviceToolType get_tool_type ();
                [NoAccessorMethod]
                public Gdk.AxisFlags axes { get; construct; }
+               public uint64 hardware_id { get; construct; }
                public uint64 serial { get; construct; }
                public Gdk.DeviceToolType tool_type { get; construct; }
        }
@@ -5002,6 +5005,9 @@ namespace Gdk {
                public Gdk.EventKey key {[CCode (cname = "(GdkEventKey *)")]  get; }
                public Gdk.EventMotion motion {[CCode (cname = "(GdkEventMotion *)")]  get; }
                public Gdk.EventOwnerChange owner_change {[CCode (cname = "(GdkEventOwnerChange *)")]  get; }
+               public Gdk.EventPadAxis pad_axis {[CCode (cname = "(GdkEventPadAxis *)")]  get; }
+               public Gdk.EventPadButton pad_button {[CCode (cname = "(GdkEventPadButton *)")]  get; }
+               public Gdk.EventPadGroupMode pad_group_mode {[CCode (cname = "(GdkEventPadGroupMode *)")]  
get; }
                public Gdk.EventProperty property {[CCode (cname = "(GdkEventProperty *)")]  get; }
                public Gdk.EventProximity proximity {[CCode (cname = "(GdkEventProximity *)")]  get; }
                public Gdk.EventScroll scroll {[CCode (cname = "(GdkEventScroll *)")]  get; }
@@ -5152,6 +5158,42 @@ namespace Gdk {
        }
        [CCode (cheader_filename = "gdk/gdk.h", copy_function = "g_boxed_copy", free_function = 
"g_boxed_free", type_id = "gdk_event_get_type ()")]
        [Compact]
+       [Version (since = "3.22")]
+       public class EventPadAxis : Gdk.Event {
+               public uint group;
+               public uint index;
+               public uint mode;
+               public int8 send_event;
+               public uint32 time;
+               public Gdk.EventType type;
+               public double value;
+               public weak Gdk.Window window;
+       }
+       [CCode (cheader_filename = "gdk/gdk.h", copy_function = "g_boxed_copy", free_function = 
"g_boxed_free", type_id = "gdk_event_get_type ()")]
+       [Compact]
+       [Version (since = "3.22")]
+       public class EventPadButton : Gdk.Event {
+               public uint button;
+               public uint group;
+               public uint mode;
+               public int8 send_event;
+               public uint32 time;
+               public Gdk.EventType type;
+               public weak Gdk.Window window;
+       }
+       [CCode (cheader_filename = "gdk/gdk.h", copy_function = "g_boxed_copy", free_function = 
"g_boxed_free", type_id = "gdk_event_get_type ()")]
+       [Compact]
+       [Version (since = "3.22")]
+       public class EventPadGroupMode : Gdk.Event {
+               public uint group;
+               public uint mode;
+               public int8 send_event;
+               public uint32 time;
+               public Gdk.EventType type;
+               public weak Gdk.Window window;
+       }
+       [CCode (cheader_filename = "gdk/gdk.h", copy_function = "g_boxed_copy", free_function = 
"g_boxed_free", type_id = "gdk_event_get_type ()")]
+       [Compact]
        public class EventProperty : Gdk.Event {
                public Gdk.Atom atom;
                public int8 send_event;
@@ -5847,6 +5889,17 @@ namespace Gdk {
        [Compact]
        public class XEvent {
        }
+       [CCode (cheader_filename = "gdk/gdk.h", type_cname = "GdkDevicePadInterface", type_id = 
"gdk_device_pad_get_type ()")]
+       public interface DevicePad : Gdk.Device {
+               [Version (since = "3.22")]
+               public int get_feature_group (Gdk.DevicePadFeature feature, int feature_idx);
+               [Version (since = "3.22")]
+               public int get_group_n_modes (int group_idx);
+               [Version (since = "3.22")]
+               public int get_n_features (Gdk.DevicePadFeature feature);
+               [Version (since = "3.22")]
+               public int get_n_groups ();
+       }
        [CCode (cheader_filename = "gdk/gdk.h")]
        [SimpleType]
        public struct Atom : uint {
@@ -6086,6 +6139,12 @@ namespace Gdk {
                BLANK_CURSOR,
                CURSOR_IS_PIXMAP
        }
+       [CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_DEVICE_PAD_FEATURE_", type_id = 
"gdk_device_pad_feature_get_type ()")]
+       public enum DevicePadFeature {
+               BUTTON,
+               RING,
+               STRIP
+       }
        [CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_DEVICE_TOOL_TYPE_", type_id = 
"gdk_device_tool_type_get_type ()")]
        [Version (since = "3.22")]
        public enum DeviceToolType {
@@ -6159,6 +6218,7 @@ namespace Gdk {
                TOUCH_MASK,
                SMOOTH_SCROLL_MASK,
                TOUCHPAD_GESTURE_MASK,
+               TABLET_PAD_MASK,
                ALL_EVENTS_MASK
        }
        [CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_", type_id = "gdk_event_type_get_type ()")]
@@ -6208,6 +6268,11 @@ namespace Gdk {
                TOUCH_CANCEL,
                TOUCHPAD_SWIPE,
                TOUCHPAD_PINCH,
+               PAD_BUTTON_PRESS,
+               PAD_BUTTON_RELEASE,
+               PAD_RING,
+               PAD_STRIP,
+               PAD_GROUP_MODE,
                EVENT_LAST
        }
        [CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_FILTER_", type_id = 
"gdk_filter_return_get_type ()")]
@@ -6278,7 +6343,8 @@ namespace Gdk {
                KEYBOARD,
                TOUCHSCREEN,
                TOUCHPAD,
-               TRACKPOINT
+               TRACKPOINT,
+               TABLET_PAD
        }
        [CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_MODIFIER_INTENT_", type_id = 
"gdk_modifier_intent_get_type ()")]
        [Version (since = "3.4")]
diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi
index b5fc57a..5c880f3 100644
--- a/vapi/gstreamer-1.0.vapi
+++ b/vapi/gstreamer-1.0.vapi
@@ -45,7 +45,7 @@ namespace Gst {
                [CCode (cheader_filename = "gst/gst.h")]
                public static void print_stack_trace ();
                [CCode (cheader_filename = "gst/gst.h")]
-               public static uint remove_log_function (Gst.LogFunction func);
+               public static uint remove_log_function (Gst.LogFunction? func);
                [CCode (cheader_filename = "gst/gst.h")]
                public static uint remove_log_function_by_data (void* data);
                [CCode (cheader_filename = "gst/gst.h")]
@@ -654,6 +654,8 @@ namespace Gst {
                public bool find_memory (size_t offset, size_t size, out uint idx, out uint length, out 
size_t skip);
                public bool foreach_meta (Gst.BufferForeachMetaFunc func);
                public Gst.Memory get_all_memory ();
+               [Version (since = "1.10")]
+               public Gst.BufferFlags get_flags ();
                [Version (since = "1.2")]
                public static uint get_max_memory ();
                public Gst.Memory get_memory (uint idx);
@@ -662,6 +664,7 @@ namespace Gst {
                public size_t get_size ();
                public size_t get_sizes (out size_t offset, out size_t maxsize);
                public size_t get_sizes_range (uint idx, int length, out size_t offset, out size_t maxsize);
+               public bool has_flags (Gst.BufferFlags flags);
                public void insert_memory (int idx, owned Gst.Memory mem);
                [Version (since = "1.4")]
                public bool is_all_memory_writable ();
@@ -686,8 +689,12 @@ namespace Gst {
                public void replace_memory_range (uint idx, int length, owned Gst.Memory mem);
                public void resize (ssize_t offset, ssize_t size);
                public bool resize_range (uint idx, int length, ssize_t offset, ssize_t size);
+               [Version (since = "1.10")]
+               public bool set_flags (Gst.BufferFlags flags);
                public void set_size (ssize_t size);
                public void unmap (Gst.MapInfo info);
+               [Version (since = "1.10")]
+               public bool unset_flags (Gst.BufferFlags flags);
                [CCode (has_construct_function = false)]
                public Buffer.wrapped ([CCode (array_length_cname = "size", array_length_pos = 1.1, 
array_length_type = "gsize")] owned uint8[] data);
        }
diff --git a/vapi/gstreamer-video-1.0.vapi b/vapi/gstreamer-video-1.0.vapi
index be97689..8853a20 100644
--- a/vapi/gstreamer-video-1.0.vapi
+++ b/vapi/gstreamer-video-1.0.vapi
@@ -377,6 +377,13 @@ namespace Gst {
                        [HasEmitter]
                        public virtual signal void value_changed (Gst.Video.ColorBalanceChannel channel, int 
value);
                }
+               [CCode (cheader_filename = "gst/video/video.h", type_id = "gst_video_direction_get_type ()")]
+               [GIR (name = "VideoDirection")]
+               [Version (since = "1.10")]
+               public interface Direction : GLib.Object {
+                       [NoAccessorMethod]
+                       public abstract Gst.Video.OrientationMethod video_direction { get; set construct; }
+               }
                [CCode (cheader_filename = "gst/video/video.h", cname = "GstNavigation", lower_case_cprefix = 
"gst_navigation_", type_cname = "GstNavigationInterface", type_id = "gst_navigation_get_type ()")]
                [GIR (name = "Navigation")]
                public interface Navigation : GLib.Object {
@@ -998,6 +1005,21 @@ namespace Gst {
                        COMMANDS,
                        ANGLES
                }
+               [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_ORIENTATION_", type_id = 
"gst_video_orientation_method_get_type ()")]
+               [GIR (name = "VideoOrientationMethod")]
+               [Version (since = "1.10")]
+               public enum OrientationMethod {
+                       IDENTITY,
+                       @90R,
+                       @180,
+                       @90L,
+                       HORIZ,
+                       VERT,
+                       UL_LR,
+                       UR_LL,
+                       AUTO,
+                       CUSTOM
+               }
                [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_OVERLAY_FORMAT_FLAG_", 
has_type_id = false)]
                [GIR (name = "VideoOverlayFormatFlags")]
                public enum OverlayFormatFlags {
diff --git a/vapi/libsoup-2.4.vapi b/vapi/libsoup-2.4.vapi
index 400b1a8..4207e53 100644
--- a/vapi/libsoup-2.4.vapi
+++ b/vapi/libsoup-2.4.vapi
@@ -1107,14 +1107,20 @@ namespace Soup {
                public unowned string get_close_data ();
                public Soup.WebsocketConnectionType get_connection_type ();
                public unowned GLib.IOStream get_io_stream ();
+               [Version (since = "2.56")]
+               public uint64 get_max_incoming_payload_size ();
                public unowned string? get_origin ();
                public unowned string? get_protocol ();
                public Soup.WebsocketState get_state ();
                public unowned Soup.URI get_uri ();
                public void send_binary ([CCode (array_length_cname = "length", array_length_pos = 1.1, 
array_length_type = "gsize")] uint8[] data);
                public void send_text (string text);
+               [Version (since = "2.56")]
+               public void set_max_incoming_payload_size (uint64 max_incoming_payload_size);
                public Soup.WebsocketConnectionType connection_type { get; construct; }
                public GLib.IOStream io_stream { get; construct; }
+               [Version (since = "2.56")]
+               public uint64 max_incoming_payload_size { get; set construct; }
                public string origin { get; construct; }
                public string protocol { get; construct; }
                public Soup.WebsocketState state { get; }
diff --git a/vapi/metadata/Gdk-3.0-custom.vala b/vapi/metadata/Gdk-3.0-custom.vala
index c227ab5..72b650b 100644
--- a/vapi/metadata/Gdk-3.0-custom.vala
+++ b/vapi/metadata/Gdk-3.0-custom.vala
@@ -27,6 +27,9 @@ namespace Gdk {
                public Gdk.EventKey key { [CCode (cname = "(GdkEventKey *)")] get; }
                public Gdk.EventMotion motion { [CCode (cname = "(GdkEventMotion *)")] get; }
                public Gdk.EventOwnerChange owner_change { [CCode (cname = "(GdkEventOwnerChange *)")] get; }
+               public Gdk.EventPadAxis pad_axis { [CCode (cname = "(GdkEventPadAxis *)")] get; }
+               public Gdk.EventPadButton pad_button { [CCode (cname = "(GdkEventPadButton *)")] get; }
+               public Gdk.EventPadGroupMode pad_group_mode { [CCode (cname = "(GdkEventPadGroupMode *)")] 
get; }
                public Gdk.EventProperty property { [CCode (cname = "(GdkEventProperty *)")] get; }
                public Gdk.EventProximity proximity { [CCode (cname = "(GdkEventProximity *)")] get; }
                public Gdk.EventScroll scroll { [CCode (cname = "(GdkEventScroll *)")] get; }
diff --git a/vapi/metadata/Gdk-3.0.metadata b/vapi/metadata/Gdk-3.0.metadata
index b9d170c..d402374 100644
--- a/vapi/metadata/Gdk-3.0.metadata
+++ b/vapi/metadata/Gdk-3.0.metadata
@@ -58,6 +58,9 @@ EventGrabBroken struct=false base_type="Gdk.Event" type_id="gdk_event_get_type (
 EventMotion struct=false base_type="Gdk.Event" type_id="gdk_event_get_type ()"
         .axes array
 EventOwnerChange struct=false base_type="Gdk.Event" type_id="gdk_event_get_type ()"
+EventPadAxis struct=false base_type="Gdk.Event" type_id="gdk_event_get_type ()"
+EventPadButton struct=false base_type="Gdk.Event" type_id="gdk_event_get_type ()"
+EventPadGroupMode struct=false base_type="Gdk.Event" type_id="gdk_event_get_type ()"
 EventProperty struct=false base_type="Gdk.Event" type_id="gdk_event_get_type ()"
 EventProximity struct=false base_type="Gdk.Event" type_id="gdk_event_get_type ()"
 EventScroll struct=false base_type="Gdk.Event" type_id="gdk_event_get_type ()"


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