|
|
a4b143 |
From 83ee5d7f274a3a365fd0f4855ec14e444bc56321 Mon Sep 17 00:00:00 2001
|
|
|
a4b143 |
From: Lennart Poettering <lennart@poettering.net>
|
|
|
a4b143 |
Date: Fri, 27 Sep 2013 02:02:21 +0200
|
|
|
a4b143 |
Subject: [PATCH] swap: properly expose timeout property on the bus
|
|
|
a4b143 |
|
|
|
a4b143 |
---
|
|
|
a4b143 |
src/core/dbus-swap.c | 1 +
|
|
|
a4b143 |
1 file changed, 1 insertion(+)
|
|
|
a4b143 |
|
|
|
a4b143 |
diff --git a/src/core/dbus-swap.c b/src/core/dbus-swap.c
|
|
|
a4b143 |
index 86fcf16..06edfdc 100644
|
|
|
a4b143 |
--- a/src/core/dbus-swap.c
|
|
|
a4b143 |
+++ b/src/core/dbus-swap.c
|
|
|
a4b143 |
@@ -95,6 +95,7 @@ static DEFINE_BUS_PROPERTY_APPEND_ENUM(bus_swap_append_swap_result, swap_result,
|
|
|
a4b143 |
static const BusProperty bus_swap_properties[] = {
|
|
|
a4b143 |
{ "What", bus_property_append_string, "s", offsetof(Swap, what), true },
|
|
|
a4b143 |
{ "Priority", bus_swap_append_priority, "i", 0 },
|
|
|
a4b143 |
+ { "TimeoutUSec",bus_property_append_usec, "t", offsetof(Swap, timeout_usec)},
|
|
|
a4b143 |
BUS_EXEC_COMMAND_PROPERTY("ExecActivate", offsetof(Swap, exec_command[SWAP_EXEC_ACTIVATE]), false),
|
|
|
a4b143 |
BUS_EXEC_COMMAND_PROPERTY("ExecDeactivate", offsetof(Swap, exec_command[SWAP_EXEC_DEACTIVATE]), false),
|
|
|
a4b143 |
{ "ControlPID", bus_property_append_pid, "u", offsetof(Swap, control_pid) },
|