]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio-2.0: Fix GLib.Task.report_error/report_new_error()
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 18 Apr 2017 15:09:04 +0000 (17:09 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 18 Apr 2017 15:09:04 +0000 (17:09 +0200)
vapi/gio-2.0.vapi
vapi/metadata/Gio-2.0-custom.vala
vapi/metadata/Gio-2.0.metadata

index b1efe495a22c96598fee4878e1804c0ac1ddf351..fc4db447409584e5cf7f7598966f174f481d54ca 100644 (file)
@@ -2765,10 +2765,10 @@ namespace GLib {
                [Version (since = "2.36")]
                public void* propagate_pointer () throws GLib.Error;
                [Version (since = "2.36")]
-               public static async void report_error (GLib.Object? source_object, void* source_tag, owned GLib.Error error);
+               public static void report_error (GLib.Object? source_object, [CCode (scope = "async")] GLib.AsyncReadyCallback callback, void* source_tag, owned GLib.Error error);
                [PrintfFormat]
                [Version (since = "2.36")]
-               public static async void report_new_error (GLib.Object? source_object, void* source_tag, GLib.Quark domain, int code, string format, ...);
+               public static void report_new_error (GLib.Object? source_object, [CCode (scope = "async")] GLib.AsyncReadyCallback callback, void* source_tag, GLib.Quark domain, int code, string format, ...);
                [Version (since = "2.36")]
                public void return_boolean (bool result);
                [Version (since = "2.36")]
index b7233f35d31dc29dbe1e48edcf179f6bae3a0220..85fb01df3e0ee70d2d254fe92d1c13065aee350b 100644 (file)
@@ -141,6 +141,11 @@ namespace GLib {
                [CCode (has_construct_function = false)]
                [Version (since = "2.36")]
                public Task (GLib.Object? source_object, GLib.Cancellable? cancellable, [CCode (scope = "async")] GLib.TaskReadyCallback callback);
+               [Version (since = "2.36")]
+               public static void report_error (GLib.Object? source_object, [CCode (scope = "async")] GLib.AsyncReadyCallback callback, void* source_tag, owned GLib.Error error);
+               [PrintfFormat]
+               [Version (since = "2.36")]
+               public static void report_new_error (GLib.Object? source_object, [CCode (scope = "async")] GLib.AsyncReadyCallback callback, void* source_tag, GLib.Quark domain, int code, string format, ...);
        }
 
        public class TlsPassword : GLib.Object {
index 063d71bb5160c913b904bfe7d5654011c8c9cb05..3217b27145d68a4aed3a12205a41d4be13cb1c18 100644 (file)
@@ -231,7 +231,8 @@ Task
   .attach_source.callback type="TaskSourceFunc"
   .new skip
   .run_in_thread* skip=false
-  .report_new_error skip=false printf_format
+  .report_error skip
+  .report_new_error skip
   .return_new_error skip=false printf_format
 TlsDatabase
   .create_certificate_handle nullable