X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fafb-api.h;h=60e95b11b814dfbeaa33e2be72607442d0cf9164;hb=0bae7b4ed23310d368bdd2e0b167d8283bced4a0;hp=1a149886113a9be37f16c2a778094637d1b2c66f;hpb=46ac3bf9554a75e137d5209d27160c1137d42302;p=src%2Fapp-framework-binder.git diff --git a/src/afb-api.h b/src/afb-api.h index 1a149886..60e95b11 100644 --- a/src/afb-api.h +++ b/src/afb-api.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016, 2017 "IoT.bzh" + * Copyright (C) 2016, 2017, 2018 "IoT.bzh" * Author: José Bollo * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -35,7 +35,12 @@ struct afb_api { void *closure; struct afb_api_itf *itf; - unsigned noconcurrency: 1; + 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) +