summaryrefslogtreecommitdiff
path: root/src/dbus-manager.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-09-21 03:51:31 +0200
committerLennart Poettering <lennart@poettering.net>2010-09-21 03:51:31 +0200
commite409f87570a87009d023e1ba97263445241b84d3 (patch)
treebf39944a3550685469c6277e8081e8f5c3702bff /src/dbus-manager.c
parentf0a73e245c1646c6c62a3bd0a3db969dd2e55edc (diff)
manager: count how many jobs we executed
Diffstat (limited to 'src/dbus-manager.c')
-rw-r--r--src/dbus-manager.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dbus-manager.c b/src/dbus-manager.c
index cffa547678..fb10bd4fb9 100644
--- a/src/dbus-manager.c
+++ b/src/dbus-manager.c
@@ -132,6 +132,7 @@
" <property name=\"LogTarget\" type=\"s\" access=\"read\"/>\n" \
" <property name=\"NNames\" type=\"u\" access=\"read\"/>\n" \
" <property name=\"NJobs\" type=\"u\" access=\"read\"/>\n" \
+ " <property name=\"NInstalledJobs\" type=\"u\" access=\"read\"/>\n" \
" <property name=\"Environment\" type=\"as\" access=\"read\"/>\n" \
" <property name=\"ConfirmSpawn\" type=\"b\" access=\"read\"/>\n" \
" <property name=\"ShowStatus\" type=\"b\" access=\"read\"/>\n" \
@@ -245,6 +246,7 @@ static DBusHandlerResult bus_manager_message_handler(DBusConnection *connection,
{ "org.freedesktop.systemd1.Manager", "LogTarget", bus_manager_append_log_target, "s", NULL },
{ "org.freedesktop.systemd1.Manager", "NNames", bus_manager_append_n_names, "u", NULL },
{ "org.freedesktop.systemd1.Manager", "NJobs", bus_manager_append_n_jobs, "u", NULL },
+ { "org.freedesktop.systemd1.Manager", "NInstalledJobs",bus_property_append_uint32, "u", &m->n_installed_jobs },
{ "org.freedesktop.systemd1.Manager", "Environment", bus_property_append_strv, "as", m->environment },
{ "org.freedesktop.systemd1.Manager", "ConfirmSpawn", bus_property_append_bool, "b", &m->confirm_spawn },
{ "org.freedesktop.systemd1.Manager", "ShowStatus", bus_property_append_bool, "b", &m->show_status },