Starting out on my journey with DBus bindings so forgive me if I am doing something wrong/silly here...
Starting at the start: My goal is to generate a proxy object for Network Manager.
I can generate NetworkManager introspection XML with:
gdbus introspect --system --dest=org.freedesktop.NetworkManager --object-path=/org/freedesktop/NetworkManager --xml > generated/network_manager_introspect.xml
Then feed the XML into codegen:
gdbus-codegen-glibmm3 --generate-cpp-code=generated/network-manager generated/network_manager_introspect.xml --interface-prefix="org.freedesktop"
Firstly, this reproduces #77 as the sub-nodes are not populated in generated/network_manager_introspect.xml (stripping unnecessary detail):
Secondly, after deleting the sub-nodes, I tried feeding the modified XML into codegen again, it successfully generates the expected [cpp|h] files.
The 'CheckPermissions' signal: docs
that has no parameters and no return values is incorrectly generated in generated/network-manager_proxy.h:
class NetworkManager : public Glib::ObjectBase {
public:
...snip...
sigc::signal<void, > CheckPermissions_signal;
...snip...
Starting out on my journey with DBus bindings so forgive me if I am doing something wrong/silly here...
Starting at the start: My goal is to generate a proxy object for Network Manager.
I can generate NetworkManager introspection XML with:
gdbus introspect --system --dest=org.freedesktop.NetworkManager --object-path=/org/freedesktop/NetworkManager --xml > generated/network_manager_introspect.xml
Then feed the XML into codegen:
gdbus-codegen-glibmm3 --generate-cpp-code=generated/network-manager generated/network_manager_introspect.xml --interface-prefix="org.freedesktop"
Firstly, this reproduces #77 as the sub-nodes are not populated in generated/network_manager_introspect.xml (stripping unnecessary detail):
Secondly, after deleting the sub-nodes, I tried feeding the modified XML into codegen again, it successfully generates the expected [cpp|h] files. The 'CheckPermissions' signal: docs that has no parameters and no return values is incorrectly generated in generated/network-manager_proxy.h: