[vala] gio-2.0: Fix GAsyncReadyCallback binding
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] gio-2.0: Fix GAsyncReadyCallback binding
- Date: Thu, 17 Sep 2009 21:13:07 +0000 (UTC)
commit 0d517b6b158948a5f527135ace6238ac26ea2c18
Author: Jürg Billeter <j bitron ch>
Date: Thu Sep 17 23:12:49 2009 +0200
gio-2.0: Fix GAsyncReadyCallback binding
vapi/gio-2.0.vapi | 2 +-
vapi/packages/gio-2.0/gio-2.0.metadata | 1 +
vapigen/valagidlparser.vala | 4 ++++
3 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 21a78b9..793d91d 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -1417,7 +1417,7 @@ namespace GLib {
ADDRESS_IN_USE,
}
[CCode (cheader_filename = "gio/gio.h")]
- public delegate void AsyncReadyCallback (GLib.Object source_object, GLib.AsyncResult res);
+ public delegate void AsyncReadyCallback (GLib.Object? source_object, GLib.AsyncResult res);
[CCode (cheader_filename = "gio/gio.h")]
public delegate void FileProgressCallback (int64 current_num_bytes, int64 total_num_bytes);
[CCode (cheader_filename = "gio/gio.h", has_target = false)]
diff --git a/vapi/packages/gio-2.0/gio-2.0.metadata b/vapi/packages/gio-2.0/gio-2.0.metadata
index 63051cb..1ca9522 100644
--- a/vapi/packages/gio-2.0/gio-2.0.metadata
+++ b/vapi/packages/gio-2.0/gio-2.0.metadata
@@ -3,6 +3,7 @@ g_app_info_launch.envp is_array="1"
g_app_info_launch.launch_context nullable="1"
g_app_info_launch_default_for_uri.launch_context nullable="1"
g_app_info_launch_uris.envp is_array="1"
+GAsyncReadyCallback.source_object nullable="1"
g_content_type_guess.data_size hidden="1"
g_content_type_guess.result_uncertain is_out="1"
g_data_input_stream_read_line nullable="1"
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala
index c7e2e1a..6cb068f 100644
--- a/vapigen/valagidlparser.vala
+++ b/vapigen/valagidlparser.vala
@@ -369,6 +369,10 @@ public class Vala.GIdlParser : CodeVisitor {
if (eval (nv[1]) == "1") {
param_type.value_owned = true;
}
+ } else if (nv[0] == "nullable") {
+ if (eval (nv[1]) == "1") {
+ param_type.nullable = true;
+ }
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]