/*
- * Copyright (C) 2016 "IoT.bzh"
+ * Copyright (C) 2016, 2017 "IoT.bzh"
* Author "Fulup Ar Foll"
* Author José Bollo <jose.bollo@iot.bzh>
*
#include <stdio.h>
#include <string.h>
-#include "session.h"
+#include "afb-session.h"
#include "verbose.h"
#include "afb-apis.h"
#include "afb-context.h"
+#include "afb-hook.h"
#include <afb/afb-req-itf.h>
struct api_desc {
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)) {