Simplify functions for calls
authorJosé Bollo <jose.bollo@iot.bzh>
Mon, 27 Mar 2017 09:23:51 +0000 (11:23 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Mon, 27 Mar 2017 09:23:51 +0000 (11:23 +0200)
commit44f21bd2a3b50f92669223cdafe79993654c1e19
treeb8656cf9c11f25183bd95822c085ce35a459a9e5
parentfeccdb76f572a5fad947475c21b5b9aff696b04b
Simplify functions for calls

For historical reasons, the call to apis was
passing the length of the api and the length
of the verb. The reason was to avoid a copy
of strings. But the copy occured only for HTTP
requests. Having this implementation is of
small interest and compromise future changes.

This patch simplify things.

Change-Id: I8157724c6c721b6797cd0eab52b07e1b8d6eb5f8
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
13 files changed:
src/afb-api-dbus.c
src/afb-api-so.c
src/afb-api-ws.c
src/afb-apis.c
src/afb-apis.h
src/afb-hook.c
src/afb-hook.h
src/afb-hreq.c
src/afb-hreq.h
src/afb-hswitch.c
src/afb-subcall.c
src/afb-svc.c
src/afb-ws-json1.c