summaryrefslogtreecommitdiffstats
path: root/src/afb-api.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/afb-api.h')
-rw-r--r--src/afb-api.h5
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 != '.';
+}
+