diff options
author | José Bollo <jose.bollo@iot.bzh> | 2018-07-24 10:00:17 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2018-07-24 16:28:32 +0200 |
commit | 4c0f6ce66c66d39dc61ec661d88277c51d2fd9ae (patch) | |
tree | d696bb0737b1d51499db45d34b7e39ef9593fecd /src/afb-api.h | |
parent | f44a28affea5841186250b66fd5ce72a8afbe349 (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-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 821bccbe..c21f3bb9 100644 --- a/src/afb-api.h +++ b/src/afb-api.h @@ -41,4 +41,9 @@ struct afb_api_item extern int afb_api_is_valid_name(const char *name); +static inline int afb_api_is_public(const char *name) +{ + return *name != '.'; +} + |