From d02408c2d2d8b26c5eaf97186674abee95f1f490 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Wed, 16 May 2018 01:25:19 +0200 Subject: Detect failure at OnLoad action calls Be able to detect that an action has failed on an Onload section processing to avoid retrieving a wrong context after that. Change-Id: If694b11eb0a37154b539c421e43bebdb15d498c0 Signed-off-by: Romain Forlot --- ctl-lib/ctl-config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ctl-lib/ctl-config.h') diff --git a/ctl-lib/ctl-config.h b/ctl-lib/ctl-config.h index 8ae1888..b8eca1b 100644 --- a/ctl-lib/ctl-config.h +++ b/ctl-lib/ctl-config.h @@ -87,7 +87,7 @@ typedef enum { // ctl-action.c CtlActionT *ActionConfig(AFB_ApiT apiHandle, json_object *actionsJ, int exportApi); void ActionExecUID(AFB_ReqT request, CtlConfigT *ctlConfig, const char *uid, json_object *queryJ); -void ActionExecOne( CtlSourceT *source, CtlActionT* action, json_object *queryJ); +int ActionExecOne( CtlSourceT *source, CtlActionT* action, json_object *queryJ); int ActionLoadOne(AFB_ApiT apiHandle, CtlActionT *action, json_object *, int exportApi); int ActionLabelToIndex(CtlActionT* actions, const char* actionLabel); -- cgit 1.2.3-korg