[vala] bindings: Update GIR-based bindings



commit a52f5ad4feff10381edde621af0a2f37a6840e57
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Wed Oct 22 10:40:37 2014 +0200

    bindings: Update GIR-based bindings

 vapi/gdk-3.0.vapi              |   33 +++++++++++++++++++++++++++++++++
 vapi/gdk-pixbuf-2.0.vapi       |    6 ++++++
 vapi/gio-2.0.vapi              |    2 ++
 vapi/libgdata.vapi             |   29 +++++++++++++++++++++++++++++
 vapi/libsoup-2.4.vapi          |    2 +-
 vapi/metadata/Gio-2.0.metadata |    4 ++++
 6 files changed, 75 insertions(+), 1 deletions(-)
---
diff --git a/vapi/gdk-3.0.vapi b/vapi/gdk-3.0.vapi
index 29a230d..5110f38 100644
--- a/vapi/gdk-3.0.vapi
+++ b/vapi/gdk-3.0.vapi
@@ -4704,6 +4704,7 @@ namespace Gdk {
                public void set_double_click_time (uint msec);
                public void store_clipboard (Gdk.Window clipboard_window, uint32 time_, [CCode 
(array_length_cname = "n_targets", array_length_pos = 3.1)] Gdk.Atom[] targets);
                public bool supports_clipboard_persistence ();
+               [Deprecated (since = "3.16")]
                public bool supports_composite ();
                public bool supports_cursor_alpha ();
                public bool supports_cursor_color ();
@@ -5060,6 +5061,18 @@ namespace Gdk {
                public Gdk.FrameTimings @ref ();
                public void unref ();
        }
+       [CCode (cheader_filename = "gdk/gdk.h", type_id = "gdk_gl_context_get_type ()")]
+       public abstract class GLContext : GLib.Object {
+               [CCode (has_construct_function = false)]
+               protected GLContext ();
+               public static void clear_current ();
+               public static unowned Gdk.GLContext get_current ();
+               public unowned Gdk.Visual get_visual ();
+               public unowned Gdk.Window get_window ();
+               public void make_current ();
+               public Gdk.Visual visual { get; construct; }
+               public Gdk.Window window { get; construct; }
+       }
        [CCode (cheader_filename = "gdk/gdk.h", type_id = "gdk_keymap_get_type ()")]
        public class Keymap : GLib.Object {
                [CCode (has_construct_function = false)]
@@ -5167,6 +5180,7 @@ namespace Gdk {
                public static void constrain_size (Gdk.Geometry geometry, Gdk.WindowHints flags, int width, 
int height, out int new_width, out int new_height);
                public void coords_from_parent (double parent_x, double parent_y, out double x, out double y);
                public void coords_to_parent (double x, double y, out double parent_x, out double parent_y);
+               public Gdk.GLContext create_gl_context (Gdk.GLProfile profile) throws GLib.Error;
                public Cairo.Surface create_similar_image_surface (int format, int width, int height, int 
scale);
                public Cairo.Surface create_similar_surface (Cairo.Content content, int width, int height);
                public void deiconify ();
@@ -5188,6 +5202,7 @@ namespace Gdk {
                public GLib.List<weak Gdk.Window> get_children ();
                public GLib.List<weak Gdk.Window> get_children_with_user_data (void* user_data);
                public Cairo.Region get_clip_region ();
+               [Deprecated (since = "3.16")]
                public bool get_composited ();
                public unowned Gdk.Cursor? get_cursor ();
                public bool get_decorations (out Gdk.WMDecoration decorations);
@@ -5242,6 +5257,7 @@ namespace Gdk {
                public bool is_viewable ();
                public bool is_visible ();
                public void lower ();
+               public void mark_paint_from_clip (Cairo.Context cr);
                public void maximize ();
                public void merge_child_input_shapes ();
                public void merge_child_shapes ();
@@ -5265,6 +5281,7 @@ namespace Gdk {
                public void set_background_rgba (Gdk.RGBA rgba);
                public void set_child_input_shapes ();
                public void set_child_shapes ();
+               [Deprecated (since = "3.16")]
                public void set_composited (bool composited);
                public void set_cursor (Gdk.Cursor? cursor);
                public static void set_debug_updates (bool setting);
@@ -5292,6 +5309,7 @@ namespace Gdk {
                public void set_skip_taskbar_hint (bool skips_taskbar);
                public void set_source_events (Gdk.InputSource source, Gdk.EventMask event_mask);
                public void set_startup_id (string startup_id);
+               [Deprecated (since = "3.16")]
                public bool set_static_gravities (bool use_static);
                public void set_support_multidevice (bool support_multidevice);
                public void set_title (string title);
@@ -5645,6 +5663,12 @@ namespace Gdk {
                CURRENT_MONITOR,
                ALL_MONITORS
        }
+       [CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_GL_PROFILE_", type_id = 
"gdk_gl_profile_get_type ()")]
+       public enum GLProfile {
+               DEFAULT,
+               LEGACY,
+               @3_2_CORE
+       }
        [CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_OWNERSHIP_", type_id = 
"gdk_grab_ownership_get_type ()")]
        public enum GrabOwnership {
                NONE,
@@ -5886,6 +5910,13 @@ namespace Gdk {
                [CCode (cname = "GDK_INPUT_ONLY")]
                INPUT_ONLY
        }
+       [CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_GL_ERROR_")]
+       public errordomain GLError {
+               NOT_AVAILABLE,
+               UNSUPPORTED_FORMAT,
+               UNSUPPORTED_PROFILE;
+               public static GLib.Quark quark ();
+       }
        [CCode (cheader_filename = "gdk/gdk.h", instance_pos = 1.9)]
        public delegate void EventFunc (Gdk.Event event);
        [CCode (cheader_filename = "gdk/gdk.h", instance_pos = 2.9)]
@@ -5925,6 +5956,8 @@ namespace Gdk {
        [CCode (cheader_filename = "gdk/gdk.h")]
        public static Cairo.Context cairo_create (Gdk.Window window);
        [CCode (cheader_filename = "gdk/gdk.h")]
+       public static void cairo_draw_from_gl (Cairo.Context cr, Gdk.Window window, int source, int 
source_type, int buffer_scale, int x, int y, int width, int height);
+       [CCode (cheader_filename = "gdk/gdk.h")]
        public static bool cairo_get_clip_rectangle (Cairo.Context cr, out Gdk.Rectangle rect);
        [CCode (cheader_filename = "gdk/gdk.h")]
        public static void cairo_rectangle (Cairo.Context cr, Gdk.Rectangle rectangle);
diff --git a/vapi/gdk-pixbuf-2.0.vapi b/vapi/gdk-pixbuf-2.0.vapi
index 7dac67f..40e366a 100644
--- a/vapi/gdk-pixbuf-2.0.vapi
+++ b/vapi/gdk-pixbuf-2.0.vapi
@@ -26,8 +26,10 @@ namespace Gdk {
                [CCode (has_construct_function = false)]
                public Pixbuf.from_file_at_size (string filename, int width, int height) throws GLib.Error;
                [CCode (has_construct_function = false)]
+               [Deprecated (since = "2.32")]
                public Pixbuf.from_inline ([CCode (array_length_cname = "data_length", array_length_pos = 
0.5)] uint8[] data, bool copy_pixels = true) throws GLib.Error;
                [CCode (cheader_filename = "gdk-pixbuf/gdk-pixdata.h")]
+               [Deprecated (since = "2.32")]
                public static Gdk.Pixbuf from_pixdata (Gdk.Pixdata pixdata, bool copy_pixels = true) throws 
GLib.Error;
                [CCode (has_construct_function = false)]
                public Pixbuf.from_resource (string resource_path) throws GLib.Error;
@@ -53,6 +55,7 @@ namespace Gdk {
                public int get_height ();
                public int get_n_channels ();
                public unowned string get_option (string key);
+               public GLib.HashTable<weak void*,weak void*> get_options ();
                [CCode (array_length = false)]
                public unowned uint8[] get_pixels ();
                [CCode (array_length_pos = 0.1, array_length_type = "guint")]
@@ -183,9 +186,12 @@ namespace Gdk {
                public uint32 height;
                [CCode (array_length = false, array_null_terminated = true)]
                public weak uint8[] pixel_data;
+               [Deprecated (since = "2.32")]
                public bool deserialize ([CCode (array_length_cname = "stream_length", array_length_pos = 
0.5, array_length_type = "guint")] uint8[] stream) throws GLib.Error;
                [CCode (array_length_pos = 0.1, array_length_type = "guint")]
+               [Deprecated (since = "2.32")]
                public uint8[] serialize ();
+               [Deprecated (since = "2.32")]
                public GLib.StringBuilder to_csource (string name, Gdk.PixdataDumpType dump_type);
        }
        [CCode (cheader_filename = "gdk-pixbuf/gdk-pixbuf.h", cprefix = "GDK_COLORSPACE_", type_id = 
"gdk_colorspace_get_type ()")]
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index ec5d9ed..29e1528 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -1369,6 +1369,7 @@ namespace GLib {
                [CCode (vfunc_name = "read_fn")]
                public abstract ssize_t read ([CCode (array_length_type = "gsize")] uint8[] buffer, 
GLib.Cancellable? cancellable = null) throws GLib.IOError;
                public bool read_all ([CCode (array_length_cname = "count", array_length_pos = 1.5, 
array_length_type = "gsize")] uint8[] buffer, out size_t bytes_read, GLib.Cancellable? cancellable = null) 
throws GLib.IOError;
+               public async bool read_all_async ([CCode (array_length_cname = "count", array_length_pos = 
1.5, array_length_type = "gsize")] uint8[] buffer, int io_priority, GLib.Cancellable? cancellable, out size_t 
bytes_read) throws GLib.Error;
                public virtual async ssize_t read_async ([CCode (array_length_cname = "count", 
array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, int io_priority = 
GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
                public GLib.Bytes read_bytes (size_t count, GLib.Cancellable? cancellable = null) throws 
GLib.Error;
                public async GLib.Bytes read_bytes_async (size_t count, int io_priority = 
GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
@@ -1598,6 +1599,7 @@ namespace GLib {
                [CCode (vfunc_name = "write_fn")]
                public abstract ssize_t write ([CCode (array_length_type = "gsize")] uint8[] buffer, 
GLib.Cancellable? cancellable = null) throws GLib.IOError;
                public bool write_all ([CCode (array_length_cname = "count", array_length_pos = 1.5, 
array_length_type = "gsize")] uint8[] buffer, out size_t bytes_written, GLib.Cancellable? cancellable = null) 
throws GLib.IOError;
+               public async bool write_all_async ([CCode (array_length_cname = "count", array_length_pos = 
1.5, array_length_type = "gsize")] uint8[] buffer, int io_priority, GLib.Cancellable? cancellable, out size_t 
bytes_written) throws GLib.Error;
                public virtual async ssize_t write_async ([CCode (array_length_cname = "count", 
array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, int io_priority = 
GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
                public ssize_t write_bytes (GLib.Bytes bytes, GLib.Cancellable? cancellable = null) throws 
GLib.Error;
                public async ssize_t write_bytes_async (GLib.Bytes bytes, int io_priority = 
GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
diff --git a/vapi/libgdata.vapi b/vapi/libgdata.vapi
index 585b69e..a9e555c 100644
--- a/vapi/libgdata.vapi
+++ b/vapi/libgdata.vapi
@@ -1298,6 +1298,31 @@ namespace GData {
                public Soup.URI proxy_uri { owned get; set; }
                public uint timeout { get; set; }
        }
+       [CCode (cheader_filename = "gdata/gdata.h", type_id = "gdata_oauth2_authorizer_get_type ()")]
+       public class OAuth2Authorizer : GLib.Object, GData.Authorizer {
+               [CCode (has_construct_function = false)]
+               public OAuth2Authorizer (string client_id, string client_secret, string redirect_uri, 
GLib.Type service_type);
+               public string build_authentication_uri (string? login_hint, bool include_granted_scopes);
+               [CCode (has_construct_function = false)]
+               public OAuth2Authorizer.for_authorization_domains (string client_id, string client_secret, 
string redirect_uri, GLib.List<GData.AuthorizationDomain> authorization_domains);
+               public unowned string get_client_id ();
+               public unowned string get_client_secret ();
+               public unowned string get_locale ();
+               public unowned GLib.ProxyResolver get_proxy_resolver ();
+               public unowned string get_redirect_uri ();
+               public uint get_timeout ();
+               public bool request_authorization (string authorization_code, GLib.Cancellable? cancellable = 
null) throws GLib.Error;
+               public async bool request_authorization_async (string authorization_code, GLib.Cancellable? 
cancellable) throws GLib.Error;
+               public void set_locale (string? locale);
+               public void set_proxy_resolver (GLib.ProxyResolver? proxy_resolver);
+               public void set_timeout (uint timeout);
+               public string client_id { get; construct; }
+               public string client_secret { get; construct; }
+               public string locale { get; set; }
+               public GLib.ProxyResolver proxy_resolver { get; set; }
+               public string redirect_uri { get; construct; }
+               public uint timeout { get; set; }
+       }
        [CCode (cheader_filename = "gdata/gdata.h", type_id = "gdata_parsable_get_type ()")]
        public abstract class Parsable : GLib.Object {
                [CCode (has_construct_function = false)]
@@ -2332,6 +2357,10 @@ namespace GData {
        public const int MICRO_VERSION;
        [CCode (cheader_filename = "gdata/gdata.h", cname = "GDATA_MINOR_VERSION")]
        public const int MINOR_VERSION;
+       [CCode (cheader_filename = "gdata/gdata.h", cname = "GDATA_OAUTH2_REDIRECT_URI_OOB")]
+       public const string OAUTH2_REDIRECT_URI_OOB;
+       [CCode (cheader_filename = "gdata/gdata.h", cname = "GDATA_OAUTH2_REDIRECT_URI_OOB_AUTO")]
+       public const string OAUTH2_REDIRECT_URI_OOB_AUTO;
        [CCode (cheader_filename = "gdata/gdata.h", cname = "GDATA_PICASAWEB_VIDEO_STATUS_FAILED")]
        public const string PICASAWEB_VIDEO_STATUS_FAILED;
        [CCode (cheader_filename = "gdata/gdata.h", cname = "GDATA_PICASAWEB_VIDEO_STATUS_FINAL")]
diff --git a/vapi/libsoup-2.4.vapi b/vapi/libsoup-2.4.vapi
index 7d38238..a057f94 100644
--- a/vapi/libsoup-2.4.vapi
+++ b/vapi/libsoup-2.4.vapi
@@ -614,7 +614,7 @@ namespace Soup {
                public uint get_port ();
                public GLib.SList<Soup.URI> get_uris ();
                public bool is_https ();
-               public bool listen (GLib.SocketAddress @interface, Soup.ServerListenOptions options) throws 
GLib.Error;
+               public bool listen (GLib.SocketAddress address, Soup.ServerListenOptions options) throws 
GLib.Error;
                public bool listen_all (uint port, Soup.ServerListenOptions options) throws GLib.Error;
                public bool listen_fd (int fd, Soup.ServerListenOptions options) throws GLib.Error;
                public bool listen_local (uint port, Soup.ServerListenOptions options) throws GLib.Error;
diff --git a/vapi/metadata/Gio-2.0.metadata b/vapi/metadata/Gio-2.0.metadata
index 5d9f54f..5702d4e 100644
--- a/vapi/metadata/Gio-2.0.metadata
+++ b/vapi/metadata/Gio-2.0.metadata
@@ -134,6 +134,8 @@ InputStream
   .close_fn skip
   .read skip
   .read_all throws="GLib.IOError"
+  .read_all_async.io_priority default=()
+  .read_all_async.cancellable default=()
   .read_fn skip
   .read_finish throws="GLib.IOError"
   .skip throws="GLib.IOError"
@@ -161,6 +163,8 @@ OutputStream
   .write_finish throws="GLib.IOError"
   .write_fn skip
   .write_all throws="GLib.IOError"
+  .write_all_async.io_priority default=()
+  .write_all_async.cancellable default=()
 PropertyAction
   .name skip
   .parameter_type skip


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