[vala] GIR parser: Add support for parsing callback types
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] GIR parser: Add support for parsing callback types
- Date: Sun, 17 Jan 2010 13:14:18 +0000 (UTC)
commit 0a477a48040208d31f99ec69f20817c62d462186
Author: Jordan Yelloz <jordan yelloz gmail com>
Date: Sun Jan 3 00:47:06 2010 -0800
GIR parser: Add support for parsing callback types
vala/valagirparser.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 7b06233..697105b 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -423,6 +423,9 @@ public class Vala.GirParser : CodeVisitor {
var element_type = parse_type ();
end_element ("array");
return new ArrayType (element_type, 1, null);
+ } else if (reader.name == "callback"){
+ var callback = parse_callback ();
+ return new DelegateType (callback);
} else {
start_element ("type");
DataType type = parse_type_from_name (reader.get_attribute ("name"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]