From 68e218f9a0c61a41343eeae14eadd2e2f04fae91 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Wed, 29 Aug 2018 14:03:05 +0200 Subject: Change loading configuration object behavior This changes the default behavior when loading actions. Now, it appends the new actions to the old ones instead of replacing them when called several times. If there were no actions previously loaded then it just loads normally the actions. Change-Id: Ica58a3edf4a9bf18ae31c6b6a5fa329e7ec5478b Signed-off-by: Romain Forlot --- ctl-lib/ctl-config.h | 1 + 1 file changed, 1 insertion(+) (limited to 'ctl-lib/ctl-config.h') diff --git a/ctl-lib/ctl-config.h b/ctl-lib/ctl-config.h index b2f1e2f..1e9837c 100644 --- a/ctl-lib/ctl-config.h +++ b/ctl-lib/ctl-config.h @@ -90,6 +90,7 @@ typedef enum { } SectionEnumT; // ctl-action.c +extern int AddActionsToSection(AFB_ApiT apiHandle, CtlSectionT *section, json_object *actionsJ, int exportApi); extern CtlActionT *ActionConfig(AFB_ApiT apiHandle, json_object *actionsJ, int exportApi); extern void ActionExecUID(AFB_ReqT request, CtlConfigT *ctlConfig, const char *uid, json_object *queryJ); extern int ActionExecOne( CtlSourceT *source, CtlActionT* action, json_object *queryJ); -- cgit 1.2.3-korg