X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-api.h;h=7a1e3bb47b120166c17d8df7dbd667e6b2c87755;hb=043c27c3a8fd323d59e41288b6fd24f0e9bfa9a3;hp=821bccbeba7bbb4f9d5b0ee0c5db8045da32c95a;hpb=bebb8fa967f3b71b609119b293d2869d56036586;p=src%2Fapp-framework-binder.git diff --git a/src/afb-api.h b/src/afb-api.h index 821bccbe..7a1e3bb4 100644 --- a/src/afb-api.h +++ b/src/afb-api.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016, 2017, 2018 "IoT.bzh" + * Copyright (C) 2016-2019 "IoT.bzh" * Author: José Bollo * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -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 != '.'; +} +