Factorize common code for handling requests
authorJosé Bollo <jose.bollo@iot.bzh>
Fri, 31 Mar 2017 14:11:07 +0000 (16:11 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Fri, 31 Mar 2017 14:14:02 +0000 (16:14 +0200)
commit6797f9722dd3e5463e0f7c118397955bb59a40c7
tree05f6aaf980d4080f871fc368509ff0156eaaec3b
parent20ea5089d0e5526afaa5231f30add7b25b2499bd
Factorize common code for handling requests

The common code for session handling is
shared using struct afb_xreq. At the moment
only hreq leverages the new feature.

The objective is double: make the work of
writing new internal requests more easy and
prepare to check permissions.

Change-Id: If3ca311d68c2d8c427d1125f31a2704b150c2c94
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
16 files changed:
bindings/samples/HelloWorld.c
bindings/samples/export.map
src/CMakeLists.txt
src/afb-api-so-v1.c
src/afb-api-so-v2.c
src/afb-apis.c
src/afb-apis.h
src/afb-evt.h
src/afb-hreq.c
src/afb-hreq.h
src/afb-hsrv.c
src/afb-hswitch.c
src/afb-websock.c
src/afb-xreq.c [new file with mode: 0644]
src/afb-xreq.h [new file with mode: 0644]
test/hello-world.html