diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-08-11 17:00:08 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2018-01-31 14:55:56 +0100 |
commit | 379b11154f301a30e79154c0af1ef1f257149efa (patch) | |
tree | 76828461e837af1b65673a4aa5d97f03159af208 /src/afb-api.h | |
parent | c3249e6aa03ef10494a2a4a170bbed0cfc38a83e (diff) |
afb-hook: Allow to unhook some apis
The apis starting with a $ (dollar) will not be
tracked by hooks
Change-Id: I3b83458c288ef1eb27993d4c71785b32e5a72deb
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-api.h')
-rw-r--r-- | src/afb-api.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/afb-api.h b/src/afb-api.h index dd5d4e0c..a9de8434 100644 --- a/src/afb-api.h +++ b/src/afb-api.h @@ -39,3 +39,8 @@ struct afb_api }; extern int afb_api_is_valid_name(const char *name); + +#define AFB_API_UNHOOKABLE_PREFIX_CHAR '$' +#define AFB_API_UNHOOKABLE_PREFIX_STRING "$" +#define afb_api_is_hookable(api) ((api)[0] != AFB_API_UNHOOKABLE_PREFIX_CHAR) + |