summaryrefslogtreecommitdiffstats
path: root/policy_manager
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2018-11-30 21:07:10 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2018-11-30 21:07:10 +0000
commit2b1bf85afe0a8b24f75386f7c24df85f9b785bd3 (patch)
tree8b727b720dd475deb8fbd52ec0cae83613b156ec /policy_manager
parentd1188744973931f66a83968310175369cd85c231 (diff)
parentd9dc8ef258ed2ddeeca83775eee945dbfdae59c5 (diff)
Merge "Migrates bindings v3"guppy_6.99.2guppy/6.99.26.99.2
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)