X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-api.c;h=897810a32bfb841082b0076d9bbe552f5f052adf;hb=65353dce81a629e042800bb7b86fcd869a76727e;hp=54ee5945f24704b44c746051b51157a5e29c9091;hpb=24d000c2290126abf88204089d132229d63f9a05;p=src%2Fapp-framework-binder.git diff --git a/src/afb-api.c b/src/afb-api.c index 54ee5945..897810a3 100644 --- a/src/afb-api.c +++ b/src/afb-api.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016, 2017, 2018 "IoT.bzh" + * Copyright (C) 2015-2020 "IoT.bzh" * Author "Fulup Ar Foll" * Author José Bollo * @@ -29,7 +29,7 @@ * Checks wether 'name' is a valid API name. * @return 1 if valid, 0 otherwise */ -int afb_api_is_valid_name(const char *name, int hookable) +int afb_api_is_valid_name(const char *name) { unsigned char c; @@ -60,6 +60,6 @@ int afb_api_is_valid_name(const char *name, int hookable) } c = (unsigned char)*++name; } while(c != 0); - return !hookable || afb_api_is_hookable(name); + return 1; }