aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-hook.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2018-07-24 10:00:17 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2018-07-24 16:28:32 +0200
commit4c0f6ce66c66d39dc61ec661d88277c51d2fd9ae (patch)
treed696bb0737b1d51499db45d34b7e39ef9593fecd /src/afb-hook.c
parentf44a28affea5841186250b66fd5ce72a8afbe349 (diff)
afb-api: Define the function afb_api_is_public
And remove the info line setting that the API . is added. Change-Id: I42e247036b9a1016797bb2674ad95f8a8c30e9be Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-hook.c')
-rw-r--r--src/afb-hook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afb-hook.c b/src/afb-hook.c
index 48eb582a..6956a837 100644
--- a/src/afb-hook.c
+++ b/src/afb-hook.c
@@ -45,7 +45,7 @@
#define MATCH(pattern,string) (\
pattern \
? !fnmatch((pattern),(string),FNM_CASEFOLD|FNM_EXTMATCH|FNM_PERIOD) \
- : (string)[0] != '.')
+ : afb_api_is_public(string))
#define MATCH_API(pattern,string) MATCH(pattern,string)
#define MATCH_VERB(pattern,string) MATCH(pattern,string)