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-job.c | |
parent | 34df5a34e1d0ac4bba453fb5f52f18a2f5f260f9 (diff) |
dbus: properly generate UnknownInterface, UnknownProperty and PropertyReadOnly errors
Diffstat (limited to 'src/dbus-job.c')
-rw-r--r-- | src/dbus-job.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dbus-job.c b/src/dbus-job.c index 95367c4226..b66d23604b 100644 --- a/src/dbus-job.c +++ b/src/dbus-job.c @@ -45,6 +45,10 @@ const char bus_job_interface[] _introspect_("Job") = BUS_JOB_INTERFACE; +#define INTERFACES_LIST \ + BUS_GENERIC_INTERFACES_LIST \ + "org.freedesktop.systemd1.Job\0" + #define INVALIDATING_PROPERTIES \ "State\0" @@ -99,7 +103,7 @@ static DBusHandlerResult bus_job_message_dispatch(Job *j, DBusConnection *connec job_finish_and_invalidate(j, JOB_CANCELED); } else - return bus_default_message_handler(j->manager, connection, message, INTROSPECTION, properties); + return bus_default_message_handler(j->manager, connection, message, INTROSPECTION, INTERFACES_LIST, properties); if (reply) { if (!dbus_connection_send(connection, reply, NULL)) |