summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-02-02 12:42:34 +0100
committerLennart Poettering <lennart@poettering.net>2010-02-02 12:42:34 +0100
commit86ad3bc1ce5a6e4d007aaa390f6f7551ff7c9696 (patch)
tree81696fa63b0daec3067579725bc9317887802280
parent86fbf370855aaa0c6e04d17bdd1d9d0c81bc5101 (diff)
dbus: hand out proper dbus object paths for jobs
-rw-r--r--dbus-unit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dbus-unit.c b/dbus-unit.c
index eef1b644e4..0bdf162023 100644
--- a/dbus-unit.c
+++ b/dbus-unit.c
@@ -146,7 +146,7 @@ static int bus_unit_append_job(Manager *m, DBusMessageIter *i, const char *prope
return -ENOMEM;
if (!dbus_message_iter_append_basic(&sub, DBUS_TYPE_UINT32, &u->meta.job->id) ||
- !dbus_message_iter_append_basic(&sub, DBUS_TYPE_STRING, &p)) {
+ !dbus_message_iter_append_basic(&sub, DBUS_TYPE_OBJECT_PATH, &p)) {
free(p);
return -ENOMEM;
}
@@ -161,7 +161,7 @@ static int bus_unit_append_job(Manager *m, DBusMessageIter *i, const char *prope
return -ENOMEM;
if (!dbus_message_iter_append_basic(&sub, DBUS_TYPE_UINT32, &id) ||
- !dbus_message_iter_append_basic(&sub, DBUS_TYPE_STRING, &p)) {
+ !dbus_message_iter_append_basic(&sub, DBUS_TYPE_OBJECT_PATH, &p)) {
free(p);
return -ENOMEM;
}
@@ -187,7 +187,7 @@ static DBusHandlerResult bus_unit_message_dispatch(Unit *u, DBusMessage *message
{ "org.freedesktop.systemd1.Unit", "ActiveExitTimestamp", bus_property_append_uint64, "t", &u->meta.active_exit_timestamp },
{ "org.freedesktop.systemd1.Unit", "CanReload", bus_unit_append_can_reload, "b", u },
{ "org.freedesktop.systemd1.Unit", "CanStart", bus_unit_append_can_start, "b", u },
- { "org.freedesktop.systemd1.Unit", "Job", bus_unit_append_job, "(us)", u, },
+ { "org.freedesktop.systemd1.Unit", "Job", bus_unit_append_job, "(uo)", u },
{ NULL, NULL, NULL, NULL, NULL }
};