X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-apis.c;h=7db3e75ad935adb6939ac380cd378a45506b3818;hb=a758d774aa5dacc07d2840f1b7ccef793863389f;hp=c251aa7a07ae69516a00ab41e2802e0a80de7537;hpb=5b5a2e4412eea806451c016da9fb285bc09c17ab;p=src%2Fapp-framework-binder.git diff --git a/src/afb-apis.c b/src/afb-apis.c index c251aa7a..7db3e75a 100644 --- a/src/afb-apis.c +++ b/src/afb-apis.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016 "IoT.bzh" + * Copyright (C) 2016, 2017 "IoT.bzh" * Author "Fulup Ar Foll" * Author José Bollo * @@ -22,10 +22,11 @@ #include #include -#include "session.h" +#include "afb-session.h" #include "verbose.h" #include "afb-apis.h" #include "afb-context.h" +#include "afb-hook.h" #include struct api_desc { @@ -123,6 +124,7 @@ void afb_apis_call(struct afb_req req, struct afb_context *context, const char * int i; const struct api_desc *a; + req = afb_hook_req_call(req, context, api, lenapi, verb, lenverb); a = apis_array; for (i = 0 ; i < apis_count ; i++, a++) { if (a->namelen == lenapi && !strncasecmp(a->name, api, lenapi)) {