[vala] vapi: Update GIR-based bindings



commit c161d1ab83678037c6e4bc1d8efd78c0a3d75772
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue Aug 18 14:34:12 2015 +0200

    vapi: Update GIR-based bindings

 vapi/atspi-2.vapi                 |    2 +-
 vapi/gdk-3.0.vapi                 |   48 +++++++++++++++++++++++++++++++++++
 vapi/libsoup-2.4.vapi             |   50 +++++++++++++++++++++++++++++++++++++
 vapi/metadata/Gdk-3.0-custom.vala |    2 +
 vapi/metadata/Gdk-3.0.metadata    |    2 +
 vapi/pango.vapi                   |   10 ++++++-
 6 files changed, 112 insertions(+), 2 deletions(-)
---
diff --git a/vapi/atspi-2.vapi b/vapi/atspi-2.vapi
index 938bdc1..dae73f1 100644
--- a/vapi/atspi-2.vapi
+++ b/vapi/atspi-2.vapi
@@ -7,7 +7,7 @@ namespace Atspi {
                public weak Atspi.Accessible accessible_parent;
                public weak GLib.HashTable<void*,void*> attributes;
                public uint cached_properties;
-               public weak GLib.List<void*> children;
+               public weak GLib.GenericArray<void*> children;
                public weak string description;
                public int interfaces;
                public weak string name;
diff --git a/vapi/gdk-3.0.vapi b/vapi/gdk-3.0.vapi
index a3c7b1b..f6d727b 100644
--- a/vapi/gdk-3.0.vapi
+++ b/vapi/gdk-3.0.vapi
@@ -4800,6 +4800,8 @@ namespace Gdk {
                public Gdk.EventSelection selection {[CCode (cname = "(GdkEventSelection *)")]  get; }
                public Gdk.EventSetting setting {[CCode (cname = "(GdkEventSetting *)")]  get; }
                public Gdk.EventTouch touch {[CCode (cname = "(GdkEventTouch *)")]  get; }
+               public Gdk.EventTouchpadPinch touchpad_pinch {[CCode (cname = "(GdkEventTouchpadPinch *)")]  
get; }
+               public Gdk.EventTouchpadSwipe touchpad_swipe {[CCode (cname = "(GdkEventTouchpadSwipe *)")]  
get; }
                public Gdk.EventVisibility visibility {[CCode (cname = "(GdkEventVisibility *)")]  get; }
                public Gdk.EventWindowState window_state {[CCode (cname = "(GdkEventWindowState *)")]  get; }
        }
@@ -5018,6 +5020,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]
+       public class EventTouchpadPinch : Gdk.Event {
+               public double angle_delta;
+               public double dx;
+               public double dy;
+               public int8 n_fingers;
+               public Gdk.TouchpadGesturePhase phase;
+               public double scale;
+               public int8 send_event;
+               public Gdk.ModifierType state;
+               public uint32 time;
+               public Gdk.EventType type;
+               public weak Gdk.Window window;
+               public double x;
+               public double x_root;
+               public double y;
+               public double y_root;
+       }
+       [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 EventTouchpadSwipe : Gdk.Event {
+               public double dx;
+               public double dy;
+               public int8 n_fingers;
+               public Gdk.TouchpadGesturePhase phase;
+               public int8 send_event;
+               public Gdk.ModifierType state;
+               public uint32 time;
+               public Gdk.EventType type;
+               public weak Gdk.Window window;
+               public double x;
+               public double x_root;
+               public double y;
+               public double y_root;
+       }
+       [CCode (cheader_filename = "gdk/gdk.h", copy_function = "g_boxed_copy", free_function = 
"g_boxed_free", type_id = "gdk_event_get_type ()")]
+       [Compact]
        [Deprecated (since = "3.12")]
        public class EventVisibility : Gdk.Event {
                public int8 send_event;
@@ -5613,6 +5651,7 @@ namespace Gdk {
                SCROLL_MASK,
                TOUCH_MASK,
                SMOOTH_SCROLL_MASK,
+               TOUCHPAD_GESTURE_MASK,
                ALL_EVENTS_MASK
        }
        [CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_", type_id = "gdk_event_type_get_type ()")]
@@ -5660,6 +5699,8 @@ namespace Gdk {
                TOUCH_UPDATE,
                TOUCH_END,
                TOUCH_CANCEL,
+               TOUCHPAD_SWIPE,
+               TOUCHPAD_PINCH,
                EVENT_LAST
        }
        [CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_FILTER_", type_id = 
"gdk_filter_return_get_type ()")]
@@ -5808,6 +5849,13 @@ namespace Gdk {
                ERROR_FILE,
                ERROR_MEM
        }
+       [CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_TOUCHPAD_GESTURE_PHASE_", type_id = 
"gdk_touchpad_gesture_phase_get_type ()")]
+       public enum TouchpadGesturePhase {
+               BEGIN,
+               UPDATE,
+               END,
+               CANCEL
+       }
        [CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_VISIBILITY_", type_id = 
"gdk_visibility_state_get_type ()")]
        public enum VisibilityState {
                UNOBSCURED,
diff --git a/vapi/libsoup-2.4.vapi b/vapi/libsoup-2.4.vapi
index 3b57a08..adb6d6b 100644
--- a/vapi/libsoup-2.4.vapi
+++ b/vapi/libsoup-2.4.vapi
@@ -49,28 +49,55 @@ namespace Soup {
                [PrintfFormat]
                public static string build_fault (int fault_code, string fault_format, ...);
                [CCode (cheader_filename = "libsoup/soup.h")]
+               [Deprecated]
                public static string? build_method_call (string method_name, [CCode (array_length_cname = 
"n_params", array_length_pos = 2.1)] GLib.Value[] @params);
                [CCode (cheader_filename = "libsoup/soup.h")]
+               [Deprecated]
                public static string? build_method_response (GLib.Value value);
                [CCode (cheader_filename = "libsoup/soup.h")]
+               public static string build_request (string method_name, GLib.Variant @params) throws 
GLib.Error;
+               [CCode (cheader_filename = "libsoup/soup.h")]
+               public static string build_response (GLib.Variant value) throws GLib.Error;
+               [CCode (cheader_filename = "libsoup/soup.h")]
                public static GLib.Quark error_quark ();
                [CCode (cheader_filename = "libsoup/soup.h", sentinel = "G_TYPE_INVALID")]
+               [Deprecated]
                public static bool extract_method_call (string method_call, int length, out string 
method_name, ...);
                [CCode (cheader_filename = "libsoup/soup.h", sentinel = "G_TYPE_INVALID")]
+               [Deprecated]
                public static bool extract_method_response (string method_response, int length, ...) throws 
Soup.XMLRPC.Fault;
                [CCode (cheader_filename = "libsoup/soup.h")]
                public static GLib.Quark fault_quark ();
                [CCode (cheader_filename = "libsoup/soup.h")]
+               public static Soup.Message message_new (string uri, string method_name, GLib.Variant @params) 
throws GLib.Error;
+               [CCode (cheader_filename = "libsoup/soup.h")]
+               public static void message_set_fault (Soup.Message msg, int fault_code, string fault_format, 
...);
+               [CCode (cheader_filename = "libsoup/soup.h")]
+               public static bool message_set_response (Soup.Message msg, GLib.Variant value) throws 
GLib.Error;
+               [CCode (cheader_filename = "libsoup/soup.h")]
+               [Deprecated]
                public static bool parse_method_call (string method_call, int length, out string method_name, 
out GLib.ValueArray @params);
                [CCode (cheader_filename = "libsoup/soup.h")]
+               [Deprecated]
                public static bool parse_method_response (string method_response, int length, out GLib.Value 
value) throws Soup.XMLRPC.Fault;
+               [CCode (cheader_filename = "libsoup/soup.h")]
+               public static string parse_request (string method_call, int length, out Soup.XMLRPCParams 
@params) throws GLib.Error;
+               [CCode (cheader_filename = "libsoup/soup.h")]
+               public static GLib.Variant parse_response (string method_response, int length, string? 
signature) throws GLib.Error;
                [CCode (cheader_filename = "libsoup/soup.h", sentinel = "G_TYPE_INVALID")]
+               [Deprecated]
                public static Soup.Message request_new (string uri, string method_name, ...);
                [CCode (cheader_filename = "libsoup/soup.h")]
+               [Deprecated]
                [PrintfFormat]
                public static void set_fault (Soup.Message msg, int fault_code, string fault_format, ...);
                [CCode (cheader_filename = "libsoup/soup.h", sentinel = "G_TYPE_INVALID")]
+               [Deprecated]
                public static void set_response (Soup.Message msg, ...);
+               [CCode (cheader_filename = "libsoup/soup.h")]
+               public static Soup.Date variant_get_datetime (GLib.Variant variant) throws GLib.Error;
+               [CCode (cheader_filename = "libsoup/soup.h")]
+               public static GLib.Variant variant_new_datetime (Soup.Date date);
        }
        [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_address_get_type ()")]
        public class Address : GLib.Object, GLib.SocketConnectable {
@@ -903,6 +930,12 @@ namespace Soup {
                public virtual signal void error (GLib.Error error);
                public virtual signal void message (int type, GLib.Bytes message);
        }
+       [CCode (cheader_filename = "libsoup/soup.h")]
+       [Compact]
+       public class XMLRPCParams {
+               public void free ();
+               public GLib.Variant parse (string? signature) throws GLib.Error;
+       }
        [CCode (cheader_filename = "libsoup/soup.h", type_cname = "SoupPasswordManagerInterface", type_id = 
"soup_password_manager_get_type ()")]
        public interface PasswordManager : Soup.SessionFeature, GLib.Object {
                public abstract void get_passwords_async (Soup.Message msg, Soup.Auth auth, bool retrying, 
GLib.MainContext async_context, GLib.Cancellable? cancellable, [CCode (scope = "async")] owned 
Soup.PasswordManagerCallback callback);
@@ -1598,6 +1631,8 @@ namespace Soup {
        public const int VALUE_UTILS_H;
        [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_XMLRPC_H")]
        public const int XMLRPC_H;
+       [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_XMLRPC_OLD_H")]
+       public const int XMLRPC_OLD_H;
        [CCode (cheader_filename = "libsoup/soup.h")]
        public static unowned GLib.TimeoutSource add_completion (GLib.MainContext? async_context, 
GLib.SourceFunc function);
        [CCode (cheader_filename = "libsoup/soup.h")]
@@ -1690,34 +1725,49 @@ namespace Soup {
        [CCode (cheader_filename = "libsoup/soup.h")]
        public static unowned string tld_get_base_domain (string hostname) throws GLib.Error;
        [CCode (cheader_filename = "libsoup/soup.h")]
+       [Deprecated]
        public static void value_array_append (GLib.ValueArray array, GLib.Type type, ...);
        [CCode (cheader_filename = "libsoup/soup.h")]
+       [Deprecated]
        public static void value_array_append_vals (GLib.ValueArray array, ...);
        [CCode (cheader_filename = "libsoup/soup.h")]
+       [Deprecated]
        public static GLib.ValueArray? value_array_from_args (va_list args);
        [CCode (cheader_filename = "libsoup/soup.h")]
+       [Deprecated]
        public static bool value_array_get_nth (GLib.ValueArray array, uint index_, GLib.Type type, ...);
        [CCode (cheader_filename = "libsoup/soup.h")]
+       [Deprecated]
        public static void value_array_insert (GLib.ValueArray array, uint index_, GLib.Type type, ...);
        [CCode (cheader_filename = "libsoup/soup.h")]
+       [Deprecated]
        public static GLib.ValueArray value_array_new ();
        [CCode (cheader_filename = "libsoup/soup.h")]
+       [Deprecated]
        public static GLib.ValueArray value_array_new_with_vals (...);
        [CCode (cheader_filename = "libsoup/soup.h")]
+       [Deprecated]
        public static bool value_array_to_args (GLib.ValueArray array, va_list args);
        [CCode (cheader_filename = "libsoup/soup.h")]
+       [Deprecated]
        public static void value_hash_insert (GLib.HashTable<string,GLib.Value?> hash, string key, GLib.Type 
type, ...);
        [CCode (cheader_filename = "libsoup/soup.h")]
+       [Deprecated]
        public static void value_hash_insert_vals (GLib.HashTable<string,GLib.Value?> hash, ...);
        [CCode (cheader_filename = "libsoup/soup.h")]
+       [Deprecated]
        public static void value_hash_insert_value (GLib.HashTable<string,GLib.Value?> hash, string key, 
GLib.Value value);
        [CCode (cheader_filename = "libsoup/soup.h")]
+       [Deprecated]
        public static bool value_hash_lookup (GLib.HashTable<string,GLib.Value?> hash, string key, GLib.Type 
type, ...);
        [CCode (cheader_filename = "libsoup/soup.h")]
+       [Deprecated]
        public static bool value_hash_lookup_vals (GLib.HashTable<string,GLib.Value?> hash, ...);
        [CCode (cheader_filename = "libsoup/soup.h")]
+       [Deprecated]
        public static GLib.HashTable<string,GLib.Value?> value_hash_new ();
        [CCode (cheader_filename = "libsoup/soup.h")]
+       [Deprecated]
        public static GLib.HashTable<string,GLib.Value?> value_hash_new_with_vals (...);
        [CCode (cheader_filename = "libsoup/soup.h")]
        public static void websocket_client_prepare_handshake (Soup.Message msg, string? origin, [CCode 
(array_length = false, array_null_terminated = true)] string[]? protocols);
diff --git a/vapi/metadata/Gdk-3.0-custom.vala b/vapi/metadata/Gdk-3.0-custom.vala
index a0391a7..c538139 100644
--- a/vapi/metadata/Gdk-3.0-custom.vala
+++ b/vapi/metadata/Gdk-3.0-custom.vala
@@ -33,6 +33,8 @@ namespace Gdk {
                public Gdk.EventSelection selection { [CCode (cname = "(GdkEventSelection *)")] get; }
                public Gdk.EventSetting setting { [CCode (cname = "(GdkEventSetting *)")] get; }
                public Gdk.EventTouch touch { [CCode (cname = "(GdkEventTouch *)")] get; }
+               public Gdk.EventTouchpadPinch touchpad_pinch { [CCode (cname = "(GdkEventTouchpadPinch *)")] 
get; }
+               public Gdk.EventTouchpadSwipe touchpad_swipe { [CCode (cname = "(GdkEventTouchpadSwipe *)")] 
get; }
                public Gdk.EventVisibility visibility { [CCode (cname = "(GdkEventVisibility *)")] get; }
                public Gdk.EventWindowState window_state { [CCode (cname = "(GdkEventWindowState *)")] get; }
        }
diff --git a/vapi/metadata/Gdk-3.0.metadata b/vapi/metadata/Gdk-3.0.metadata
index e933e0c..827f7d5 100644
--- a/vapi/metadata/Gdk-3.0.metadata
+++ b/vapi/metadata/Gdk-3.0.metadata
@@ -63,6 +63,8 @@ EventScroll struct=false base_type="Gdk.Event" type_id="gdk_event_get_type ()"
 EventSelection struct=false base_type="Gdk.Event" type_id="gdk_event_get_type ()"
 EventSetting struct=false base_type="Gdk.Event" type_id="gdk_event_get_type ()"
 EventTouch struct=false base_type="Gdk.Event" type_id="gdk_event_get_type ()"
+EventTouchpadPinch struct=false base_type="Gdk.Event" type_id="gdk_event_get_type ()"
+EventTouchpadSwipe struct=false base_type="Gdk.Event" type_id="gdk_event_get_type ()"
 EventVisibility struct=false base_type="Gdk.Event" type_id="gdk_event_get_type ()"
 EventWindowState struct=false base_type="Gdk.Event" type_id="gdk_event_get_type ()"
 FilterFunc.data closure=2
diff --git a/vapi/pango.vapi b/vapi/pango.vapi
index e455cf0..96d093f 100644
--- a/vapi/pango.vapi
+++ b/vapi/pango.vapi
@@ -489,6 +489,7 @@ namespace Pango {
                public virtual void draw_trapezoid (Pango.RenderPart part, double y1_, double x11, double 
x21, double y2, double x12, double x22);
                [NoWrapper]
                public virtual void end ();
+               public uint16 get_alpha (Pango.RenderPart part);
                public unowned Pango.Color? get_color (Pango.RenderPart part);
                public unowned Pango.Layout? get_layout ();
                public unowned Pango.LayoutLine? get_layout_line ();
@@ -496,6 +497,7 @@ namespace Pango {
                public virtual void part_changed (Pango.RenderPart part);
                [NoWrapper]
                public virtual void prepare_run (Pango.LayoutRun run);
+               public void set_alpha (Pango.RenderPart part, uint16 alpha);
                public void set_color (Pango.RenderPart part, Pango.Color? color);
                public void set_matrix (Pango.Matrix? matrix);
        }
@@ -688,7 +690,9 @@ namespace Pango {
                ABSOLUTE_SIZE,
                GRAVITY,
                GRAVITY_HINT,
-               FONT_FEATURES;
+               FONT_FEATURES,
+               FOREGROUND_ALPHA,
+               BACKGROUND_ALPHA;
                public static unowned string? get_name (Pango.AttrType type);
                public static Pango.AttrType register (string name);
        }
@@ -967,12 +971,16 @@ namespace Pango {
        [CCode (cheader_filename = "pango/pango.h")]
        public const string VERSION_STRING;
        [CCode (cheader_filename = "pango/pango.h")]
+       public static Pango.Attribute attr_background_alpha_new (uint16 alpha);
+       [CCode (cheader_filename = "pango/pango.h")]
        public static Pango.Attribute attr_background_new (uint16 red, uint16 green, uint16 blue);
        [CCode (cheader_filename = "pango/pango.h")]
        public static Pango.Attribute attr_fallback_new (bool enable_fallback);
        [CCode (cheader_filename = "pango/pango.h")]
        public static Pango.Attribute attr_family_new (string family);
        [CCode (cheader_filename = "pango/pango.h")]
+       public static Pango.Attribute attr_foreground_alpha_new (uint16 alpha);
+       [CCode (cheader_filename = "pango/pango.h")]
        public static Pango.Attribute attr_foreground_new (uint16 red, uint16 green, uint16 blue);
        [CCode (cheader_filename = "pango/pango.h")]
        public static Pango.Attribute attr_gravity_hint_new (Pango.GravityHint hint);


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