From: Rico Tzschichholz Date: Sat, 15 Jun 2019 18:11:36 +0000 (+0200) Subject: vapi: Update GIR-based bindings X-Git-Tag: 0.45.2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01ea1caa608a2e05e04f46cbb3f57bb78dd79e27;p=thirdparty%2Fvala.git vapi: Update GIR-based bindings --- diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi index 08cf0b668..2494bcfe8 100644 --- a/vapi/gio-2.0.vapi +++ b/vapi/gio-2.0.vapi @@ -1260,7 +1260,7 @@ namespace GLib { public void clear_status (); public void copy_into (GLib.FileInfo dest_info); public GLib.FileInfo dup (); - public string get_attribute_as_string (string attribute); + public string? get_attribute_as_string (string attribute); public bool get_attribute_boolean (string attribute); public unowned string get_attribute_byte_string (string attribute); public bool get_attribute_data (string attribute, out GLib.FileAttributeType type, out void* value_pp, out GLib.FileAttributeStatus status); @@ -1416,6 +1416,7 @@ namespace GLib { [Compact] public class IOExtensionPoint { [CCode (cheader_filename = "gio/gio.h", cname = "G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME")] + [Version (deprecated = true, deprecated_since = "2.28")] public const string DESKTOP_APP_INFO_LOOKUP; [CCode (cheader_filename = "gio/gio.h", cname = "G_NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME")] public const string NATIVE_VOLUME_MONITOR; @@ -2176,6 +2177,7 @@ namespace GLib { [CCode (array_length = false, array_null_terminated = true)] public string[] list_children (); [CCode (array_length = false, array_null_terminated = true)] + [Version (deprecated = true, deprecated_since = "2.46")] public string[] list_keys (); [CCode (array_length = false, array_null_terminated = true)] [Version (deprecated = true, deprecated_since = "2.40", since = "2.28")] @@ -2753,7 +2755,7 @@ namespace GLib { public async bool communicate_utf8_async (string? stdin_buf, GLib.Cancellable? cancellable, out string? stdout_buf, out string? stderr_buf) throws GLib.Error; public void force_exit (); public int get_exit_status (); - public unowned string get_identifier (); + public unowned string? get_identifier (); public bool get_if_exited (); public bool get_if_signaled (); public int get_status (); diff --git a/vapi/graphene-gobject-1.0.vapi b/vapi/graphene-gobject-1.0.vapi index ae7cce4ae..e90ecf2a5 100644 --- a/vapi/graphene-gobject-1.0.vapi +++ b/vapi/graphene-gobject-1.0.vapi @@ -322,6 +322,8 @@ namespace Graphene { public bool equal (Graphene.Rect b); [Version (since = "1.4")] public Graphene.Rect expand (Graphene.Point p); + [Version (since = "1.10")] + public float get_area (); public Graphene.Point get_bottom_left (); public Graphene.Point get_bottom_right (); public Graphene.Point get_center (); @@ -346,8 +348,10 @@ namespace Graphene { public unowned Graphene.Rect? offset (float d_x, float d_y); [Version (since = "1.4")] public Graphene.Rect offset_r (float d_x, float d_y); - [Version (since = "1.4")] + [Version (deprecated = true, deprecated_since = "1.10", since = "1.4")] public Graphene.Rect round (); + [Version (since = "1.10")] + public Graphene.Rect round_extents (); [Version (deprecated = true, deprecated_since = "1.4", since = "1.0")] public unowned Graphene.Rect? round_to_pixel (); [Version (since = "1.10")] diff --git a/vapi/libsoup-2.4.vapi b/vapi/libsoup-2.4.vapi index 8cb58a39f..a3fefef2f 100644 --- a/vapi/libsoup-2.4.vapi +++ b/vapi/libsoup-2.4.vapi @@ -505,6 +505,7 @@ namespace Soup { [Version (since = "2.68")] public void set_session_policy (string domain, bool include_subdomains); public virtual signal void changed (Soup.HSTSPolicy old_policy, Soup.HSTSPolicy new_policy); + public virtual signal void hsts_enforced (Soup.Message message); } [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_hsts_enforcer_db_get_type ()")] public class HSTSEnforcerDB : Soup.HSTSEnforcer, Soup.SessionFeature { diff --git a/vapi/metadata/Gio-2.0.metadata b/vapi/metadata/Gio-2.0.metadata index a0e2e67de..50bcc2b4b 100644 --- a/vapi/metadata/Gio-2.0.metadata +++ b/vapi/metadata/Gio-2.0.metadata @@ -141,9 +141,13 @@ InputStream .close abstract vfunc_name="close_fn" throws="GLib.IOError" .close_finish throws="GLib.IOError" .read abstract vfunc_name="read_fn" throws="GLib.IOError" + .read.buffer out=false .read_all throws="GLib.IOError" + .read_all.buffer out=false + .read_all_async.buffer out=false .read_all_async.io_priority default=() .read_all_async.cancellable default=() + .read_async.buffer out=false .read_finish throws="GLib.IOError" .skip throws="GLib.IOError" .skip_finish throws="GLib.IOError" diff --git a/vapi/pango.vapi b/vapi/pango.vapi index f3feb6d4f..be83d1adc 100644 --- a/vapi/pango.vapi +++ b/vapi/pango.vapi @@ -987,7 +987,7 @@ namespace Pango { MULTANI, OLD_HUNGARIAN, SIGNWRITING; - [Version (since = "1.4")] + [Version (deprecated = true, deprecated_since = "1.44.", since = "1.4")] public static Pango.Script for_unichar (unichar ch); [Version (since = "1.4")] public Pango.Language? get_sample_language ();