summaryrefslogtreecommitdiffstats
path: root/policy_manager
diff options
context:
space:
mode:
authorTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>2018-11-29 13:12:43 +0000
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2018-11-30 17:44:40 +0000
commitd9dc8ef258ed2ddeeca83775eee945dbfdae59c5 (patch)
treed2a8853847e48925c0ecbb82e58be0a3e52a6e36 /policy_manager
parentc5b67725974af99e50fa5dc02843c7d741add880 (diff)
Migrates bindings v3
This patch migrates biding API of WM to v3. Change-Id: I2f2b23a8af437a414e2a00d629d3e72d0614eb72 Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
Diffstat (limited to 'policy_manager')
-rw-r--r--policy_manager/policy_manager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/policy_manager/policy_manager.cpp b/policy_manager/policy_manager.cpp
index 999bc87..67f7179 100644
--- a/policy_manager/policy_manager.cpp
+++ b/policy_manager/policy_manager.cpp
@@ -26,7 +26,7 @@
extern "C"
{
-#define AFB_BINDING_VERSION 2
+#define AFB_BINDING_VERSION 3
#include <afb/afb-binding.h>
#include <systemd/sd-event.h>
#include "stm.h"
@@ -693,7 +693,7 @@ int PolicyManager::setStateTransitionProcessToSystemd(int event_id, uint64_t del
if (0 == delay_ms)
{
- int ret = sd_event_add_defer(afb_daemon_get_event_loop(), &event_source,
+ int ret = sd_event_add_defer(afb_api_get_event_loop(afbBindingV3root), &event_source,
&pm::transitionStateWrapper, new int(event_id));
if (0 > ret)
{
@@ -711,7 +711,7 @@ int PolicyManager::setStateTransitionProcessToSystemd(int event_id, uint64_t del
uint64_t usec = (time_spec.tv_sec * 1000000) + (time_spec.tv_nsec / 1000) + (delay_ms * 1000);
// Set timer
- int ret = sd_event_add_time(afb_daemon_get_event_loop(), &event_source,
+ int ret = sd_event_add_time(afb_api_get_event_loop(afbBindingV3root), &event_source,
CLOCK_BOOTTIME, usec, 1,
&pm::timerEventWrapper, new int(event_id));
if (0 > ret)