X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-api.h;h=1f2a4a98f480258683be28ff8176421c40071f58;hb=ca0f859d96599c8ae295c85f825030c891969de1;hp=c21f3bb90e6de624fa79c80b3f77b68f6457fc9b;hpb=4c0f6ce66c66d39dc61ec661d88277c51d2fd9ae;p=src%2Fapp-framework-binder.git diff --git a/src/afb-api.h b/src/afb-api.h index c21f3bb9..1f2a4a98 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"); @@ -25,10 +25,12 @@ struct afb_api_itf { void (*call)(void *closure, struct afb_xreq *xreq); 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); + void (*describe)(void *closure, void (*describecb)(void *, struct json_object *), void *clocb); void (*unref)(void *closure); };