diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-05-10 13:47:58 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-05-10 13:47:58 +0200 |
commit | f1b901ed676b2d45ec8e6ae3d6ef2f94d79f9ee6 (patch) | |
tree | ea91e3f7485736acdd6aa83ffc6e0ff60f326577 /src/afb-websock.c | |
parent | 19fb390ec60890d55bafe7a4c887b1453509f7ef (diff) |
Refactoring requests and context handling
Also adds a first (untested) implmentation of
the afb services over dbus.
Change-Id: Id1bdeccf75f3a70d3658bdaf0510d6e7b97f6c32
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-websock.c')
-rw-r--r-- | src/afb-websock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/afb-websock.c b/src/afb-websock.c index 9f5619fb..0247aae6 100644 --- a/src/afb-websock.c +++ b/src/afb-websock.c @@ -28,6 +28,7 @@ #include "afb-ws-json.h" #include "afb-method.h" +#include "afb-context.h" #include "afb-hreq.h" #include "afb-websock.h" @@ -203,7 +204,7 @@ int afb_websock_check_upgrade(struct afb_hreq *hreq) return 0; ws = NULL; - rc = check_websocket_upgrade(hreq->connection, protodefs, afb_hreq_context(hreq), &ws); + rc = check_websocket_upgrade(hreq->connection, protodefs, hreq->context.session, &ws); if (rc == 1) { hreq->replied = 1; if (ws != NULL) |