From 514b0ba878d93626e9b6a94441c4fac428c47914 Mon Sep 17 00:00:00 2001 From: Jordan Augé Date: Mon, 7 Dec 2020 11:21:24 +0100 Subject: [HICN-660] Add priority priority control example based on RSSI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Idc940d600e436f39fe78cd44bc29bd696c7dc9d6 Signed-off-by: Jordan Augé --- ctrl/facemgr/src/api.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'ctrl/facemgr/src/api.c') diff --git a/ctrl/facemgr/src/api.c b/ctrl/facemgr/src/api.c index f934883de..aeca057e0 100644 --- a/ctrl/facemgr/src/api.c +++ b/ctrl/facemgr/src/api.c @@ -63,6 +63,8 @@ #include "interfaces/android_utility/android_utility.h" #endif /* WITH_ANDROID_UTILITY */ +#include "interfaces/priority_controller/priority_controller.h" + #include #include #include "common.h" @@ -2258,7 +2260,12 @@ facemgr_bootstrap(facemgr_t * facemgr) #ifdef WITH_PRIORITY_CONTROLLER INFO("[facemgr_bootstrap] creating priority_controller interface"); - rc = facemgr_create_interface(facemgr, "pc", "priority_controller", NULL, &facemgr->pc); + priority_controller_cfg_t pc_cfg = { +#ifdef PRIORITY_CONTROLLER_INTERNAL + .jvm = facemgr->jvm, +#endif /* PRIORITY_CONTROLLER_INTERNAL */ + }; + rc = facemgr_create_interface(facemgr, "pc", "priority_controller", &pc_cfg, &facemgr->pc); if (rc < 0) { ERROR("Error creating 'Priority Controller' interface\n"); goto ERR_PC_CREATE; -- cgit 1.2.3-korg