+2009-01-15 Jürg Billeter <j@bitron.ch>
+
+ * gobject/valadbusservermodule.vala:
+
+ Fix generated introspection information when using DBus.BusName
+ sender parameter
+
2009-01-15 Jürg Billeter <j@bitron.ch>
* vala/valaparser.vala:
/* valadbusservermodule.vala
*
- * Copyright (C) 2007-2008 Jürg Billeter
+ * Copyright (C) 2007-2009 Jürg Billeter
* Copyright (C) 2008 Philip Van Hoof
*
* This library is free software; you can redistribute it and/or
result += " <method name=\"%s\">\n".printf (Symbol.lower_case_to_camel_case (m.name));
foreach (var param in m.get_parameters ()) {
+ if (param.parameter_type.data_type != null
+ && param.parameter_type.data_type.get_full_name () == "DBus.BusName") {
+ // skip sender parameter
+ // (implicit in D-Bus)
+ continue;
+ }
+
string direction = param.direction == ParameterDirection.IN ? "in" : "out";
result += " <arg name=\"%s\" type=\"%s\" direction=\"%s\"/>\n".printf (param.name, param.parameter_type.get_type_signature (), direction);
}