[vala/0.36: 5/212] gio-2.0: Fix GLib.Task.report_error/report_new_error()
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.36: 5/212] gio-2.0: Fix GLib.Task.report_error/report_new_error()
- Date: Sat, 14 Apr 2018 07:43:46 +0000 (UTC)
commit 1781a8f2cae8e2a131088852d10ab229f8b027f2
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 c69dd11..9c791e6 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -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")]
diff --git a/vapi/metadata/Gio-2.0-custom.vala b/vapi/metadata/Gio-2.0-custom.vala
index 1a6b511..cce3ccc 100644
--- a/vapi/metadata/Gio-2.0-custom.vala
+++ b/vapi/metadata/Gio-2.0-custom.vala
@@ -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 {
diff --git a/vapi/metadata/Gio-2.0.metadata b/vapi/metadata/Gio-2.0.metadata
index 063d71b..3217b27 100644
--- a/vapi/metadata/Gio-2.0.metadata
+++ b/vapi/metadata/Gio-2.0.metadata
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]