summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2021-02-02 23:05:17 +0100
committerJoel Klinghed <the_jk@spawned.biz>2021-02-02 23:05:17 +0100
commit7b133253b380321e6435c4dd4125769ca4d7d9d2 (patch)
tree9578f02030bae8560b471db583c3f9a53acb39b3
parentce1c4999cb53307bf83027c1a4e6592324fe9343 (diff)
Fix dbus signature of get_state method
Forgot to update signature when switching from double, double to uint32_t, time_t. Also change time_t to int64_t as time_t can have different sizes.
-rw-r--r--src/timer_state.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timer_state.cc b/src/timer_state.cc
index c836ffd..b7b4309 100644
--- a/src/timer_state.cc
+++ b/src/timer_state.cc
@@ -223,7 +223,7 @@ public:
.implementedAs(fun).withNoReply();
std::function<void(sdbus::MethodCall)> call_fun =
std::bind(&TimerStateServer::get_state, this, std::placeholders::_1);
- object->registerMethod(kInterfaceName, "get_state", "", "bdd", call_fun);
+ object->registerMethod(kInterfaceName, "get_state", "", "bux", call_fun);
object->registerSignal("started").onInterface(kInterfaceName)
.withParameters<uint32_t, time_t>();
object->registerSignal("stopped").onInterface(kInterfaceName)