[vala/0.34] gio-2.0: Fix GLib.Task.report_error/report_new_error()



commit 78405c18548239646022ae33195e70dcb6f29de6
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue Apr 18 17:09:04 2017 +0200

    gio-2.0: Fix GLib.Task.report_error/report_new_error()

 vapi/gio-2.0.vapi                 |    4 ++--
 vapi/metadata/Gio-2.0-custom.vala |    5 +++++
 vapi/metadata/Gio-2.0.metadata    |    3 ++-
 3 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 214e13c..646736e 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -2746,10 +2746,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")]
diff --git a/vapi/metadata/Gio-2.0-custom.vala b/vapi/metadata/Gio-2.0-custom.vala
index a377d3d..19b78de 100644
--- a/vapi/metadata/Gio-2.0-custom.vala
+++ b/vapi/metadata/Gio-2.0-custom.vala
@@ -134,6 +134,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 {
diff --git a/vapi/metadata/Gio-2.0.metadata b/vapi/metadata/Gio-2.0.metadata
index 0804eaf..05520a5 100644
--- a/vapi/metadata/Gio-2.0.metadata
+++ b/vapi/metadata/Gio-2.0.metadata
@@ -228,7 +228,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


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