Adding DBus Support to a Driver?

Peter Hutterer peter.hutterer at who-t.net
Mon Mar 16 15:36:46 PDT 2015


On Mon, Mar 16, 2015 at 10:57:50AM -0400, Stirling Westrup wrote:
> I currently maintain the commercial version of the SMSC driver. Recently
> I've been asked to consider adding DBus support to the driver for such uses
> as setting internal debug variables and inquiring about performance
> statistics.
> 
> A quick look at the Xorg sources show that Xorg is DBus aware via its
> dbus-core.c code, but that the interface to dbus-core is not currently
> exported to the public include files.
> 
> How safe would it be to add my own dbus connection routines to my driver,
> and ignore the ones in Xorg? Is this likely to cause any conflicts?

Without having tried it myself, I'd say it's fine. dbus gives you an fd back
that you can add to the select loop and go from there.

Cheers,
  Peter


More information about the xorg-devel mailing list