X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-api.h;h=d55970c98ed94108acf0b4060f608b6d938cf2fb;hb=a2cf84ecde926adeebf09bc2c284401513d3fab3;hp=d03aaca5afcd4e4ec2bc2a954cdc1bb6f0205a65;hpb=4521c1e7ae5371ab9d639adc617d17fb4e8ded0c;p=src%2Fapp-framework-binder.git diff --git a/src/afb-api.h b/src/afb-api.h index d03aaca5..d55970c9 100644 --- a/src/afb-api.h +++ b/src/afb-api.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016, 2017, 2018 "IoT.bzh" + * Copyright (C) 2016-2019 "IoT.bzh" * Author: José Bollo * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -24,8 +24,10 @@ struct json_object; struct afb_api_itf { void (*call)(void *closure, struct afb_xreq *xreq); - int (*service_start)(void *closure, int share_session, int onneed); + int (*service_start)(void *closure); +#if WITH_AFB_HOOK void (*update_hooks)(void *closure); +#endif int (*get_logmask)(void *closure); void (*set_logmask)(void *closure, int level); struct json_object *(*describe)(void *closure); @@ -41,4 +43,9 @@ struct afb_api_item extern int afb_api_is_valid_name(const char *name); +static inline int afb_api_is_public(const char *name) +{ + return *name != '.'; +} +