我想让我的应用程序向 dbus 公开函数。我为我的班级生成了以下 xml:
<!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>
但是,当我尝试运行 xml2cpp 生成器时,我没有收到任何错误消息,没有输出,没有任何进程甚至没有退出。
qdbusxml2cpp -a controller.xml
使用详细选项时,我也没有得到任何输出。我正在使用 qdbusxml2cpp 0.8 版。
为什么该工具不执行任何操作?