X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-api.h;h=c21f3bb90e6de624fa79c80b3f77b68f6457fc9b;hb=eb9be95e4cec2ec965cd38c6b3a7ed295982b1a1;hp=c8cb2d6510eb7bd25cf3facb231566a7c3f437f2;hpb=d597a7dd81bbb83a0442345c547b3317839994cf;p=src%2Fapp-framework-binder.git diff --git a/src/afb-api.h b/src/afb-api.h index c8cb2d65..c21f3bb9 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"); @@ -24,17 +24,26 @@ 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, struct afb_apiset *apiset); + int (*service_start)(void *closure); void (*update_hooks)(void *closure); - int (*get_verbosity)(void *closure); - void (*set_verbosity)(void *closure, int level); + int (*get_logmask)(void *closure); + void (*set_logmask)(void *closure, int level); struct json_object *(*describe)(void *closure); + void (*unref)(void *closure); }; -struct afb_api +struct afb_api_item { void *closure; struct afb_api_itf *itf; + const void *group; }; extern int afb_api_is_valid_name(const char *name); + +static inline int afb_api_is_public(const char *name) +{ + return *name != '.'; +} + +