[vala/staging: 4/7] gio-2.0,glib-2.0: Update to 2.55.0



commit 20294b32252261f49d9b74147b886dcc28d1382c
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sat Nov 18 23:26:47 2017 +0100

    gio-2.0,glib-2.0: Update to 2.55.0

 vapi/gio-2.0.vapi              |   16 ++++++++++------
 vapi/glib-2.0.vapi             |    6 ++++++
 vapi/metadata/Gio-2.0.metadata |    1 +
 3 files changed, 17 insertions(+), 6 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index a9b9b1f..2f001e5 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -583,7 +583,7 @@ namespace GLib {
                [CCode (has_construct_function = false)]
                protected DBusActionGroup ();
                [Version (since = "2.32")]
-               public static GLib.DBusActionGroup @get (GLib.DBusConnection connection, string bus_name, 
string object_path);
+               public static GLib.DBusActionGroup @get (GLib.DBusConnection connection, string? bus_name, 
string object_path);
        }
        [CCode (cheader_filename = "gio/gio.h", ref_function = "g_dbus_annotation_info_ref", type_id = 
"g_dbus_annotation_info_get_type ()", unref_function = "g_dbus_annotation_info_unref")]
        [Compact]
@@ -749,7 +749,7 @@ namespace GLib {
                [CCode (has_construct_function = false)]
                protected DBusMenuModel ();
                [Version (since = "2.32")]
-               public static GLib.DBusMenuModel @get (GLib.DBusConnection connection, string bus_name, 
string object_path);
+               public static GLib.DBusMenuModel @get (GLib.DBusConnection connection, string? bus_name, 
string object_path);
        }
        [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_message_get_type ()")]
        [Version (since = "2.26")]
@@ -3210,11 +3210,11 @@ namespace GLib {
                [CCode (array_length = false, array_null_terminated = true)]
                [Version (since = "2.34")]
                public abstract unowned string[] get_supported_types ();
-               public abstract bool launch (GLib.List<GLib.File>? files, GLib.AppLaunchContext? 
launch_context) throws GLib.Error;
-               public static bool launch_default_for_uri (string uri, GLib.AppLaunchContext? launch_context) 
throws GLib.Error;
+               public abstract bool launch (GLib.List<GLib.File>? files, GLib.AppLaunchContext? context) 
throws GLib.Error;
+               public static bool launch_default_for_uri (string uri, GLib.AppLaunchContext? context) throws 
GLib.Error;
                [Version (since = "2.50")]
-               public static async bool launch_default_for_uri_async (string uri, GLib.AppLaunchContext 
launch_context, GLib.Cancellable? cancellable = null) throws GLib.Error;
-               public abstract bool launch_uris (GLib.List<string>? uris, GLib.AppLaunchContext? 
launch_context) throws GLib.Error;
+               public static async bool launch_default_for_uri_async (string uri, GLib.AppLaunchContext? 
context, GLib.Cancellable? cancellable = null) throws GLib.Error;
+               public abstract bool launch_uris (GLib.List<string>? uris, GLib.AppLaunchContext? context) 
throws GLib.Error;
                public abstract bool remove_supports_type (string content_type) throws GLib.Error;
                [Version (since = "2.20")]
                public static void reset_type_associations (string content_type);
@@ -3465,6 +3465,10 @@ namespace GLib {
                public abstract bool has_uri_scheme (string uri_scheme);
                public abstract uint hash ();
                public abstract bool is_native ();
+               [Version (since = "2.56")]
+               public GLib.Bytes load_bytes (GLib.Cancellable? cancellable = null, out string? etag_out = 
null) throws GLib.Error;
+               [Version (since = "2.56")]
+               public async GLib.Bytes load_bytes_async (GLib.Cancellable? cancellable = null, out string? 
etag_out) throws GLib.Error;
                public bool load_contents (GLib.Cancellable? cancellable, [CCode (array_length_cname = 
"length", array_length_pos = 2.5, array_length_type = "gsize")] out uint8[] contents, out string etag_out) 
throws GLib.Error;
                public async bool load_contents_async (GLib.Cancellable? cancellable = null, [CCode 
(array_length_cname = "length", array_length_pos = 2.5, array_length_type = "gsize")] out uint8[] contents, 
out string etag_out) throws GLib.Error;
                public async bool load_partial_contents_async (GLib.Cancellable? cancellable = null, [CCode 
(delegate_target_pos = -0.9)] GLib.FileReadMoreCallback read_more_callback, [CCode (array_length_cname = 
"length", array_length_pos = 2.5, array_length_type = "gsize")] out uint8[] contents, out string etag_out) 
throws GLib.Error;
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index b68c1aa..e3ba412 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -2774,6 +2774,8 @@ namespace GLib {
        [CCode (type_id = "G_TYPE_DATE")]
        public struct Date {
                public void clear (uint n_dates = 1);
+               [Version (since = "2.56")]
+               public Date copy ();
                public void set_day (DateDay day);
                public void set_month (DateMonth month);
                public void set_year (DateYear year);
@@ -3113,6 +3115,9 @@ namespace GLib {
                public static string get_dirname (string file_name);
                [CCode (cname = "g_build_filename")]
                public static string build_filename (string first_element, ...);
+               [Version (since = "2.56")]
+               [CCode (cname = "g_build_filename_valist")]
+               public static string build_filename_valist (string first_element, va_list args);
                [CCode (cname = "g_build_path")]
                public static string build_path (string separator, string first_element, ...);
 
@@ -5354,6 +5359,7 @@ namespace GLib {
                public const uint @2_50;
                public const uint @2_52;
                public const uint @2_54;
+               public const uint @2_56;
 
                [CCode (cname = "glib_binary_age")]
                public const uint binary_age;
diff --git a/vapi/metadata/Gio-2.0.metadata b/vapi/metadata/Gio-2.0.metadata
index f260ce1..ca03642 100644
--- a/vapi/metadata/Gio-2.0.metadata
+++ b/vapi/metadata/Gio-2.0.metadata
@@ -125,6 +125,7 @@ DBusServer
 Drive
   .get_sort_key#virtual_method virtual
 File
+  .load_bytes.etag_out default=null
   .load_contents.cancellable#parameter default=()
   .monitor_dir* throws="GLib.IOError"
   .monitor_file throws="GLib.IOError"


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