[vala/0.36: 4/212] gio-2.0: Fix GLib.Task constructor
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.36: 4/212] gio-2.0: Fix GLib.Task constructor
- Date: Sat, 14 Apr 2018 07:43:41 +0000 (UTC)
commit a1f5031d66cc33dfac7ebab150b2f7771a8a487d
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Apr 18 16:38:04 2017 +0200
gio-2.0: Fix GLib.Task constructor
https://bugzilla.gnome.org/show_bug.cgi?id=781449
vapi/gio-2.0.vapi | 4 +++-
vapi/metadata/Gio-2.0-custom.vala | 8 ++++++++
vapi/metadata/Gio-2.0.metadata | 1 +
3 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 29f9bfa..c69dd11 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -2735,7 +2735,7 @@ namespace GLib {
public class Task : GLib.Object, GLib.AsyncResult {
[CCode (has_construct_function = false)]
[Version (since = "2.36")]
- public async Task (GLib.Object? source_object, GLib.Cancellable? cancellable = null);
+ public Task (GLib.Object? source_object, GLib.Cancellable? cancellable, [CCode (scope =
"async")] GLib.TaskReadyCallback callback);
[Version (since = "2.36")]
public void attach_source (GLib.Source source, [CCode (type = "GSourceFunc")]
GLib.TaskSourceFunc callback);
[Version (since = "2.36")]
@@ -4707,6 +4707,8 @@ namespace GLib {
[CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
[Version (since = "2.22")]
public delegate bool SocketSourceFunc (GLib.Socket socket, GLib.IOCondition condition);
+ [CCode (cheader_filename = "gio/gio.h", cname = "GAsyncReadyCallback", instance_pos = 2.9)]
+ public delegate void TaskReadyCallback (GLib.Object? source_object, GLib.Task task);
[CCode (cheader_filename = "gio/gio.h", cname = "GSourceFunc", has_target = false)]
public delegate bool TaskSourceFunc (GLib.Task task);
[CCode (cheader_filename = "gio/gio.h", has_target = false)]
diff --git a/vapi/metadata/Gio-2.0-custom.vala b/vapi/metadata/Gio-2.0-custom.vala
index 5e995c3..1a6b511 100644
--- a/vapi/metadata/Gio-2.0-custom.vala
+++ b/vapi/metadata/Gio-2.0-custom.vala
@@ -137,6 +137,12 @@ namespace GLib {
public static GLib.SocketConnection factory_create_connection (GLib.Socket socket);
}
+ public class Task : GLib.Object {
+ [CCode (has_construct_function = false)]
+ [Version (since = "2.36")]
+ public Task (GLib.Object? source_object, GLib.Cancellable? cancellable, [CCode (scope =
"async")] GLib.TaskReadyCallback callback);
+ }
+
public class TlsPassword : GLib.Object {
[CCode (vfunc_name = "set_value")]
public virtual void set_value_full ([CCode (array_length_cname = "length", array_length_pos =
1.5, array_length_type = "gssize", type = "guchar*")] owned uint8[] value, GLib.DestroyNotify? notify =
GLib.g_free);
@@ -184,6 +190,8 @@ namespace GLib {
public delegate void SimpleActionActivateCallback (SimpleAction action, Variant? parameter);
[Version (deprecated_since = "vala-0.26", replacement = "SimplActionChangeStateFunc")]
public delegate void SimpleActionChangeStateCallback (SimpleAction action, Variant value);
+ [CCode (cheader_filename = "gio/gio.h", cname = "GAsyncReadyCallback", instance_pos = 2.9)]
+ public delegate void TaskReadyCallback (GLib.Object? source_object, GLib.Task task);
[CCode (has_target = false, cname = "GSourceFunc")]
public delegate bool TaskSourceFunc (Task task);
[CCode (cheader_filename = "gio/gio.h", instance_pos = 6.9)]
diff --git a/vapi/metadata/Gio-2.0.metadata b/vapi/metadata/Gio-2.0.metadata
index 6d4137a..063d71b 100644
--- a/vapi/metadata/Gio-2.0.metadata
+++ b/vapi/metadata/Gio-2.0.metadata
@@ -229,6 +229,7 @@ Subprocess
Task
.attach_source skip=false
.attach_source.callback type="TaskSourceFunc"
+ .new skip
.run_in_thread* skip=false
.report_new_error skip=false printf_format
.return_new_error skip=false printf_format
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]