DBussy Example: The Useless Object Server

Lawrence D'Oliveiro ldo at geek-central.gen.nz
Sat May 20 00:45:13 UTC 2017


A new addition to my DBussy Examples repo
<https://github.com/ldo/dbussy_examples>,
<https://gitlab.com/ldo/dbussy_examples> is the Useless Object Server
and accompanying Useless Object Client.

The server allows creation and deletion of objects at specified paths,
along with the attachment of a read/write string-valued “value” property
to each object. There are also additional create-time, modify-time and
access-time properties that are automatically maintained for each
object as a result of accesses made to the “value” of each object.

The server also sends signals reporting the creation and deletion of
objects, and changes to the “value” property.

The client goes through some basic exercising of the
object-manipulation API, and also concurrently listens for the
corresponding signals and reports them.

It is worth noting that there is not a single line of XML anywhere in
these two scripts: introspection data is produced automatically from
the server-side interface-class definition, and used to dynamically
generate the corresponding proxy interface class on the client side.


More information about the dbus mailing list