summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-09-27 02:02:21 +0200
committerLennart Poettering <lennart@poettering.net>2013-09-27 02:02:21 +0200
commitd43de69002fdfbee351f655065e4fc2914b9fcd3 (patch)
treeb75a5fa60decf96209b1e5710b61bba807d75b4a /src/core
parenta38d1d28d1b506b4dd36f952cad7013b0f627798 (diff)
swap: properly expose timeout property on the bus
Diffstat (limited to 'src/core')
-rw-r--r--src/core/dbus-swap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/dbus-swap.c b/src/core/dbus-swap.c
index 86fcf16eaf..06edfdcde4 100644
--- a/src/core/dbus-swap.c
+++ b/src/core/dbus-swap.c
@@ -95,6 +95,7 @@ static DEFINE_BUS_PROPERTY_APPEND_ENUM(bus_swap_append_swap_result, swap_result,
static const BusProperty bus_swap_properties[] = {
{ "What", bus_property_append_string, "s", offsetof(Swap, what), true },
{ "Priority", bus_swap_append_priority, "i", 0 },
+ { "TimeoutUSec",bus_property_append_usec, "t", offsetof(Swap, timeout_usec)},
BUS_EXEC_COMMAND_PROPERTY("ExecActivate", offsetof(Swap, exec_command[SWAP_EXEC_ACTIVATE]), false),
BUS_EXEC_COMMAND_PROPERTY("ExecDeactivate", offsetof(Swap, exec_command[SWAP_EXEC_DEACTIVATE]), false),
{ "ControlPID", bus_property_append_pid, "u", offsetof(Swap, control_pid) },