Re: Installing DBus interface files for services



On Tue, 2015-01-13 at 10:43 +0800, Cosimo Cecchi wrote:
Hi all,


I was wondering if there's any reason we typically don't install on
the system DBus XML interface files for services. On my system, I can
see a bunch of definitions in /usr/share/dbus-1/interfaces, but it's
by no means a complete list of all the services in the system.
Standardizing such a practice would make it easier to write code that
uses e.g. gdbus-codegen to automatically generate code for those
interfaces; currently a lot of projects need to copy/paste the
interface definition in their source tree, which is impractical and
can lead to inconsistencies when one version of the interface is
updated (in a backwards-compatible way) but not the other side.

I can’t think of any reasons why not. Perhaps a GDBus automake snippet
could be installed by GLib which:
 1. Installs D-Bus XML interface files.
 2. Includes rules for building documentation and C/H files from them.
 3. Validates the XML interface files for well-formedness.

Philip

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]