Reputation: 35
I want to allow my app to expose functions to the dbus. I generated the following xml for my class:
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node>
<interface name="local.ConnectionController">
<method name="onSetConnection">
<arg name="keyname" type="s" direction="in"/>
<arg name="connected" type="b" direction="in"/>
</method>
</interface>
</node>
How ever when I try to run the xml2cpp generator I get no error message no output, nothing the process does not even exit.
qdbusxml2cpp -a controller.xml
When using the verbose option I get no output either. I am using qdbusxml2cpp version 0.8.
Why does the tool not do anything?
Upvotes: 1
Views: 492
Reputation: 244252
The problem is that the .xml must be before the "-a" option and put the file name after "-a":
qdbusxml2cpp controller.xml -a name_of_file
Upvotes: 1