commit
21d36af507
4
Rakefile
4
Rakefile
|
@ -9,3 +9,7 @@ end
|
||||||
task :testSignal do
|
task :testSignal do
|
||||||
sh "dbus-send --dest=ca.thume.ddbus.test /signaler ca.thume.test.signal int32:9"
|
sh "dbus-send --dest=ca.thume.ddbus.test /signaler ca.thume.test.signal int32:9"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
task :testDbus do
|
||||||
|
sh "dbus-send --session --dest=org.freedesktop.DBus --type=method_call --print-reply /org/freedesktop/DBus org.freedesktop.DBus.ListNames"
|
||||||
|
end
|
||||||
|
|
|
@ -122,8 +122,8 @@ class MessageRouter {
|
||||||
string introspectXML(string path) {
|
string introspectXML(string path) {
|
||||||
auto methods = callTable.byKey().filter!(a => (a.path == path) && !a.signal)().array()
|
auto methods = callTable.byKey().filter!(a => (a.path == path) && !a.signal)().array()
|
||||||
// .schwartzSort!((a) => a.iface, "a<b")();
|
// .schwartzSort!((a) => a.iface, "a<b")();
|
||||||
.sort!((a,b) => a.iface < b.iface)().release();
|
.sort!((a,b) => a.iface < b.iface)();
|
||||||
auto ifaces = groupBy!((a) => a.iface)(methods);
|
auto ifaces = methods.groupBy();
|
||||||
auto app = appender!string;
|
auto app = appender!string;
|
||||||
formattedWrite(app,introspectHeader,path);
|
formattedWrite(app,introspectHeader,path);
|
||||||
foreach(iface; ifaces) {
|
foreach(iface; ifaces) {
|
||||||
|
|
Loading…
Reference in a new issue