[vala] GIR parser: Add support for parsing callback types



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]