Add optional dbus helpers
authorDavid Herrmann <dh.herrmann@gmail.com>
Mon, 21 Oct 2013 22:28:06 +0000 (00:28 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 21 Oct 2013 23:06:22 +0000 (16:06 -0700)
commit59ab90049f54a8371cf3ab14057f6a513b0cc7ea
tree4f68f258b0160d85c589d70835a89b5f665ac38c
parentafb9828d57eb9a8a26ad8a927cfc42499883bca1
Add optional dbus helpers

This adds optional libdbus integration for weston. If libdbus is available
and not disabled via --disable-dbus during weston build, we now provide
basic DBusConnection main-loop integration for weston.

The dbus.c file provides a new helper to integrate any DBusConnection
object into a wl_event_loop object. This avoids any glib/qt/..
dependencies but instead only uses the low-level libdbus library.

Note that we do not provide dummy fallbacks for dbus helpers in case
dbus-support is disabled. The reason for that is that you need dbus/dbus.h
for nearly any operation you want to do via dbus. Therefore, only the most
basic helpers which can be used independently provide a "static inline"
dummy fallback to avoid #ifdef all over the code.
configure.ac
src/Makefile.am
src/dbus.c [new file with mode: 0644]
src/dbus.h [new file with mode: 0644]