common/dbus: systemd-bus based murphy-dbus implementation.
authorKrisztian Litkey <kli@iki.fi>
Tue, 20 Aug 2013 08:30:32 +0000 (11:30 +0300)
committerKrisztian Litkey <kli@iki.fi>
Mon, 25 Nov 2013 19:31:14 +0000 (21:31 +0200)
commitab74a86a680b6a0fcfb34f1a4e5234300d285f76
treed363432a508668e7393343aee633a54670f11192
parent1e2eb897ce7eddbbda0d29d55d948a8fc3d88f03
common/dbus: systemd-bus based murphy-dbus implementation.

Added an alternative murphy-dbus implementation based on the
low-level D-Bus library (systemd-bus) from systemd. This needs
a patched systemd to build and install systemd-bus as a shared
library.

To get rid of libdbus-dependency it was also necessary to provide
an abstraction for message building and parsing and hence break
backward compatibility. To ease the transitional pain, we provide
currently three version of murphy-dbus: the original one with the
leaky message abstraction, as well as a libdbus- and a systmed-bus-
based one with the new abstraction. Once all the code has been
updated to not use directly libdbus calls for message building and
parsing, the original library will be removed.
25 files changed:
configure.ac
src/Makefile.am
src/common/dbus-error.h [new file with mode: 0644]
src/common/dbus-libdbus-glue.c [moved from src/common/dbus-glue.c with 100% similarity]
src/common/dbus-libdbus-transport.c [new file with mode: 0644]
src/common/dbus-libdbus.c [new file with mode: 0644]
src/common/dbus-libdbus.h [new file with mode: 0644]
src/common/dbus-sdbus-glue.c [new file with mode: 0644]
src/common/dbus-sdbus-transport.c [new file with mode: 0644]
src/common/dbus-sdbus.c [new file with mode: 0644]
src/common/dbus-sdbus.h [new file with mode: 0644]
src/common/dbus-transport.c
src/common/libdbus-glue.c [new file with mode: 0644]
src/common/libdbus.c [moved from src/common/dbus.c with 99% similarity]
src/common/libdbus.h [moved from src/common/dbus.h with 100% similarity]
src/common/murphy-dbus-libdbus.pc.in [new file with mode: 0644]
src/common/murphy-dbus-sdbus.pc.in [new file with mode: 0644]
src/common/murphy-libdbus.pc.in [moved from src/common/murphy-dbus.pc.in with 69% similarity]
src/common/tests/Makefile.am
src/common/tests/dbus-sdbus-test.c [new file with mode: 0644]
src/common/tests/dbus-test.c
src/common/tests/libdbus-test.c [new file with mode: 0644]
src/common/tests/libdbus-transport-test.c [new file with mode: 0644]
src/common/tests/sdbus-test.c [new file with mode: 0644]
src/plugins/plugin-resource-dbus.c