]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio-2.0,glib-2.0: Update to 2.55.0
authorRico Tzschichholz <ricotz@ubuntu.com>
Sat, 18 Nov 2017 22:26:47 +0000 (23:26 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 18 Nov 2017 22:52:45 +0000 (23:52 +0100)
vapi/gio-2.0.vapi
vapi/glib-2.0.vapi
vapi/metadata/Gio-2.0.metadata

index a9b9b1f1d25378b5d970de119cfb539ac4e8c656..2f001e53dd4d96ccab989bd27d8f03e793c76223 100644 (file)
@@ -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.AppLaunchContextcontext, 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;
index b68c1aa38c61db93d936e573511d29c982cc7548..e3ba412070091e59365aabc0d78dc9289a457246 100644 (file)
@@ -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;
index f260ce128b63388642054ad153fc50cbd1d15078..ca036421201bc16c47bd2870387bede79c21f71d 100644 (file)
@@ -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"