From 67173219d928fdb4773230635f17ee4b68d8478b Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Mon, 30 Apr 2018 12:09:41 +0200 Subject: Improve way to loading an action Split and cleaner function that load from JSON object an object CtlActionT that could be used by the controller. Also use a new syntax that reduce the number of JSON fields to parse based on a URI syntax. Change-Id: Iabc447368ca56e3a4279fb728ba2f546e11c961b Signed-off-by: Romain Forlot --- ctl-lib/ctl-config.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ctl-lib/ctl-config.h') diff --git a/ctl-lib/ctl-config.h b/ctl-lib/ctl-config.h index 432d86c..d36b5f5 100644 --- a/ctl-lib/ctl-config.h +++ b/ctl-lib/ctl-config.h @@ -45,6 +45,10 @@ extern "C" { #define CTL_PLUGIN_EXT ".ctlso" #endif +#define LUA_ACTION_PREFIX "lua://" +#define API_ACTION_PREFIX "api://" +#define PLUGIN_ACTION_PREFIX "plugin://" + typedef struct ConfigSectionS { const char *key; const char *uid; -- cgit 1.2.3-korg