X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-api.h;h=ff1bc108805f1cc05e2202283af7e8902433333b;hb=abbb4599f0b921c6f434b6bd02bcfb277eecf745;hp=dd5d4e0cfce1b4fd5332c38e80240ddae8f7d202;hpb=f2e72e1858d0be1a9cf3c0c4263f0bd81570d0e8;p=src%2Fapp-framework-binder.git diff --git a/src/afb-api.h b/src/afb-api.h index dd5d4e0c..ff1bc108 100644 --- a/src/afb-api.h +++ b/src/afb-api.h @@ -38,4 +38,9 @@ struct afb_api const void *group; }; -extern int afb_api_is_valid_name(const char *name); +extern int afb_api_is_valid_name(const char *name, int hookable); + +#define AFB_API_UNHOOKABLE_PREFIX_CHAR '$' +#define AFB_API_UNHOOKABLE_PREFIX_STRING "$" +#define afb_api_is_hookable(api) ((api)[0] != AFB_API_UNHOOKABLE_PREFIX_CHAR) +