X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-api.c;fp=src%2Fafb-api.c;h=7c4598d21af99e36a3cda14087fb2ce07a75939c;hb=3535d4cb73628c720da1bf74627ded2aec6f2ca1;hp=38ec4f25d3aef31fc0e9b956f1ace018435587ba;hpb=379b11154f301a30e79154c0af1ef1f257149efa;p=src%2Fapp-framework-binder.git diff --git a/src/afb-api.c b/src/afb-api.c index 38ec4f25..7c4598d2 100644 --- a/src/afb-api.c +++ b/src/afb-api.c @@ -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 afb_api_is_valid_name(const char *name, int hookable) { unsigned char c; @@ -60,6 +60,6 @@ int afb_api_is_valid_name(const char *name) } c = (unsigned char)*++name; } while(c != 0); - return 1; + return !hookable || afb_api_is_hookable(name); }