Copyright 2020-2024 Kevin Backhouse.
Demo of using the
DBusParse library in an
application. The demo application is called introspect. It uses
the D-Bus
Introspect
method to query the API of a D-Bus service.
On Linux, you can build DBusParseDemo as follows:
mkdir build
cd build
cmake ..
makeTo run the introspect application:
./introspect /var/run/dbus/system_bus_socket org.freedesktop.PolicyKit1 /org/freedesktop/PolicyKit1/AuthorityTo run the introspect_async application:
./introspect_async /var/run/dbus/system_bus_socket org.freedesktop.PolicyKit1 /org/freedesktop/PolicyKit1/AuthorityThe introspect_async application is like introspect, except is uses the EPollLoop and EPollLoopDBusHandler libraries to send and receive D-Bus messages asynchronously.