summaryrefslogtreecommitdiffstats
path: root/src/afb-api.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2018-07-13 16:38:55 +0200
committerJose Bollo <jose.bollo@iot.bzh>2018-07-16 17:09:23 +0200
commitbebb8fa967f3b71b609119b293d2869d56036586 (patch)
tree213e124303fe9cec424283839d728d896da3cae0 /src/afb-api.h
parent2ab7061438040c68346124268ecf4081c835cbf2 (diff)
Simplify starting of services
The previous version was confusing and was expecting that onneed and share_session were always true. Removing this parameter simplifies the code. Also handle errors of required classes and apis at initialisation. Change-Id: I7c99aa356cba41f368bd47cab797fa086a5740af Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-api.h')
-rw-r--r--src/afb-api.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afb-api.h b/src/afb-api.h
index d03aaca5..821bccbe 100644
--- a/src/afb-api.h
+++ b/src/afb-api.h
@@ -24,7 +24,7 @@ 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);
void (*update_hooks)(void *closure);
int (*get_logmask)(void *closure);
void (*set_logmask)(void *closure, int level);