summaryrefslogtreecommitdiff
path: root/src/dbus-timer.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-04 16:48:24 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-04 16:48:24 +0200
commit14ad1d1437f51b8ebc8dc6e8d3707b41d48d0a3a (patch)
tree33d7b111a9fa5610e3ac6ac3a4aab43e9b9a935a /src/dbus-timer.c
parent82c121a4754a9d405b07c75796e329942af2ccc5 (diff)
dbus: include NextElapse field in timer properties
Diffstat (limited to 'src/dbus-timer.c')
-rw-r--r--src/dbus-timer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dbus-timer.c b/src/dbus-timer.c
index af0ae72f4f..d548227b5a 100644
--- a/src/dbus-timer.c
+++ b/src/dbus-timer.c
@@ -29,6 +29,7 @@
" <interface name=\"org.freedesktop.systemd1.Timer\">\n" \
" <property name=\"Unit\" type=\"s\" access=\"read\"/>\n" \
" <property name=\"Timers\" type=\"a(stt)\" access=\"read\"/>\n" \
+ " <property name=\"NextElapse\" type=\"t\" access=\"read\"/>\n" \
" </interface>\n"
#define INTROSPECTION \
@@ -77,6 +78,7 @@ DBusHandlerResult bus_timer_message_handler(Unit *u, DBusConnection *c, DBusMess
BUS_UNIT_PROPERTIES,
{ "org.freedesktop.systemd1.Timer", "Unit", bus_property_append_string, "s", u->timer.unit->meta.id },
{ "org.freedesktop.systemd1.Timer", "Timers", bus_timer_append_timers, "a(stt)", u },
+ { "org.freedesktop.systemd1.Timer", "NextElapse", bus_property_append_usec, "t", &u->timer.next_elapse },
{ NULL, NULL, NULL, NULL, NULL }
};