From 4c0f6ce66c66d39dc61ec661d88277c51d2fd9ae Mon Sep 17 00:00:00 2001 From: José Bollo Date: Tue, 24 Jul 2018 10:00:17 +0200 Subject: afb-api: Define the function afb_api_is_public MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit And remove the info line setting that the API . is added. Change-Id: I42e247036b9a1016797bb2674ad95f8a8c30e9be Signed-off-by: José Bollo --- src/afb-apiset.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/afb-apiset.c') diff --git a/src/afb-apiset.c b/src/afb-apiset.c index 994a9c7e..f837fae7 100644 --- a/src/afb-apiset.c +++ b/src/afb-apiset.c @@ -495,7 +495,8 @@ int afb_apiset_add(struct afb_apiset *set, const char *name, struct afb_api_item desc->next = all_apis; all_apis = desc; - INFO("API %s added", name); + if (afb_api_is_public(name)) + INFO("API %s added", name); return 0; -- cgit 1.2.3-korg