summaryrefslogtreecommitdiffstats
path: root/src/afb-api-so-v2.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-05-04 13:06:02 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-05-04 13:06:02 +0200
commit8a5d14c58817b7ee03f8e22ba734fdd8cc2bc780 (patch)
tree95ec6d12192174bedc036ae9cfd1a3f3f046fb73 /src/afb-api-so-v2.c
parentc0562698d8e2613e488b320736255e6bbd49cb2c (diff)
Prepare xreq to be aware of the version
Change-Id: If8a1ac53e58ff644d7903aebd263d7d42308c756 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-api-so-v2.c')
-rw-r--r--src/afb-api-so-v2.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/afb-api-so-v2.c b/src/afb-api-so-v2.c
index 12074746..092fd31a 100644
--- a/src/afb-api-so-v2.c
+++ b/src/afb-api-so-v2.c
@@ -89,11 +89,7 @@ static void call_cb(void *closure, struct afb_xreq *xreq)
const struct afb_verb_v2 *verb;
verb = search(desc, xreq->verb);
- if (!verb)
- afb_xreq_fail_unknown_verb(xreq);
- else
- if (!xreq_session_check_apply(xreq, verb->session))
- afb_xreq_call(xreq, verb->callback);
+ afb_xreq_call_verb_v2(xreq, verb);
}
static int service_start_cb(void *closure, int share_session, int onneed, struct afb_apiset *apiset)