X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-svc.h;h=7a1f7c108a5827829eeebdef4278010bf990c3b6;hb=2243a0dd1adc75530bed663db808971789729df3;hp=3069e4a17718b91fa6d62948804bcf2046927a0b;hpb=5b5a2e4412eea806451c016da9fb285bc09c17ab;p=src%2Fapp-framework-binder.git diff --git a/src/afb-svc.h b/src/afb-svc.h index 3069e4a1..7a1f7c10 100644 --- a/src/afb-svc.h +++ b/src/afb-svc.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016 "IoT.bzh" + * Copyright (C) 2016, 2017 "IoT.bzh" * Author: José Bollo * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -19,8 +19,14 @@ struct afb_svc; struct afb_service; +struct afb_binding_interface; extern struct afb_svc *afb_svc_create(int share_session, int (*init)(struct afb_service service), void (*onevent)(const char *event, struct json_object *object)); +extern struct afb_svc *afb_svc_create_v2( + int share_session, + void (*on_event)(const char *event, struct json_object *object), + int (*start)(const struct afb_binding_interface *interface, struct afb_service service), + const struct afb_binding_interface *interface);