Skip to content

kevinbackhouse/DBusParseDemo

Repository files navigation

Copyright 2020-2021 Kevin Backhouse.

DBusParseDemo

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.

Usage

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.

About

Demo of the DBusParse library

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published