Copyright 2020-2021 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 ..
make
To run the introspect
application:
./introspect /var/run/dbus/system_bus_socket org.freedesktop.PolicyKit1 /org/freedesktop/PolicyKit1/Authority
To run the introspect_async
application:
./introspect_async /var/run/dbus/system_bus_socket org.freedesktop.PolicyKit1 /org/freedesktop/PolicyKit1/Authority
The introspect_async
application is like introspect
, except is uses the EPollLoop
and EPollLoopDBusHandler
libraries to send and receive D-Bus messages asynchronously.