diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-03-09 20:01:53 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-03-09 20:01:53 +0100 |
commit | 05feefe0fb049bb0f7c59584058ee0350462920c (patch) | |
tree | 7408358006c490ae4a48ae39c012591495ac99c9 /src/dbus-snapshot.c | |
parent | 34df5a34e1d0ac4bba453fb5f52f18a2f5f260f9 (diff) |
dbus: properly generate UnknownInterface, UnknownProperty and PropertyReadOnly errors
Diffstat (limited to 'src/dbus-snapshot.c')
-rw-r--r-- | src/dbus-snapshot.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dbus-snapshot.c b/src/dbus-snapshot.c index a9903ec484..cc12b1bd8b 100644 --- a/src/dbus-snapshot.c +++ b/src/dbus-snapshot.c @@ -38,6 +38,10 @@ BUS_INTROSPECTABLE_INTERFACE \ "</node>\n" +#define INTERFACES_LIST \ + BUS_UNIT_INTERFACES_LIST \ + "org.freedesktop.systemd1.Snapshot\0" + const char bus_snapshot_interface[] _introspect_("Snapshot") = BUS_SNAPSHOT_INTERFACE; DBusHandlerResult bus_snapshot_message_handler(Unit *u, DBusConnection *c, DBusMessage *message) { @@ -60,7 +64,7 @@ DBusHandlerResult bus_snapshot_message_handler(Unit *u, DBusConnection *c, DBusM goto oom; } else - return bus_default_message_handler(u->meta.manager, c, message, INTROSPECTION, properties); + return bus_default_message_handler(u->meta.manager, c, message, INTROSPECTION, INTERFACES_LIST, properties); if (reply) { if (!dbus_connection_send(c, reply, NULL)) |