2008-03-01 Jürg Billeter <j@bitron.ch>
+ * vapigen/valagidlparser.vala: support cheader_filename metadata
+ attribute for delegates
+
+2008-03-01 Jürg Billeter <j@bitron.ch>
+
* vapi/atk.vapi, vapi/gconf-2.0.vapi, vapi/gdk-2.0.vapi,
vapi/gdk-pixbuf-2.0.vapi, vapi/gnet-2.0.vapi, vapi/gnome-vfs-2.0.vapi,
vapi/gstreamer-0.10.vapi, vapi/gstreamer-audio-0.10.vapi,
private Delegate parse_delegate (IdlNodeFunction! f_node) {
weak IdlNode node = (IdlNode) f_node;
+
+ var cb = new Delegate (node.name, parse_param (f_node.result), current_source_reference);
+ cb.access = SymbolAccessibility.PUBLIC;
var attributes = get_attributes (node.name);
if (attributes != null) {
if (eval (nv[1]) == "1") {
return null;
}
+ } else if (nv[0] == "cheader_filename") {
+ cb.add_cheader_filename (eval (nv[1]));
}
}
}
-
- var cb = new Delegate (node.name, parse_param (f_node.result), current_source_reference);
- cb.access = SymbolAccessibility.PUBLIC;
-
+
foreach (weak IdlNodeParam param in f_node.parameters) {
weak IdlNode param_node = (IdlNode) param;