X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fdbus-device.c;h=f85ad2daf8fbe2579bd8e67009eb2e7a51b0084b;hb=d68af58657ce0e99594dff199fbb9b319cf6af96;hp=9b2861de4548cb40678cbb372d0e541cd024eca0;hpb=34df5a34e1d0ac4bba453fb5f52f18a2f5f260f9;p=elogind.git diff --git a/src/dbus-device.c b/src/dbus-device.c index 9b2861de4..f85ad2daf 100644 --- a/src/dbus-device.c +++ b/src/dbus-device.c @@ -21,6 +21,7 @@ #include "dbus-unit.h" #include "dbus-device.h" +#include "dbus-common.h" #define BUS_DEVICE_INTERFACE \ " \n" \ @@ -37,6 +38,10 @@ BUS_INTROSPECTABLE_INTERFACE \ "\n" +#define INTERFACES_LIST \ + BUS_UNIT_INTERFACES_LIST \ + "org.freedesktop.systemd1.Device\0" + const char bus_device_interface[] _introspect_("Device") = BUS_DEVICE_INTERFACE; const char bus_device_invalidating_properties[] = @@ -49,5 +54,5 @@ DBusHandlerResult bus_device_message_handler(Unit *u, DBusConnection *c, DBusMes { NULL, NULL, NULL, NULL, NULL } }; - return bus_default_message_handler(u->meta.manager, c, message, INTROSPECTION, properties); + return bus_default_message_handler(c, message, INTROSPECTION, INTERFACES_LIST, properties); }