diff options
author | 2017-09-22 16:24:24 +0200 | |
---|---|---|
committer | 2017-10-09 14:08:33 +0200 | |
commit | 7a7268a5697b0b988bcabc00390878edee941b4e (patch) | |
tree | c64c412c342d33d01d7cb5a7bf3c00c55ad31055 /src/afb-stub-ws.c | |
parent | 4a6490b96d8ac2da6a19b4f251c005ff1b1e7d61 (diff) |
Provide API and VERB name of requests
Change-Id: I9a86c6314f871334231e50f9cea60b54aed434b9
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-stub-ws.c')
-rw-r--r-- | src/afb-stub-ws.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/afb-stub-ws.c b/src/afb-stub-ws.c index 44247dd3..2b6a2328 100644 --- a/src/afb-stub-ws.c +++ b/src/afb-stub-ws.c @@ -259,7 +259,7 @@ static void client_call_cb(void * closure, struct afb_xreq *xreq) { struct afb_stub_ws *stubws = closure; - afb_proto_ws_client_call(stubws->proto, xreq->verb, afb_xreq_json(xreq), afb_session_uuid(xreq->context.session), xreq); + afb_proto_ws_client_call(stubws->proto, xreq->request.verb, afb_xreq_json(xreq), afb_session_uuid(xreq->context.session), xreq); afb_xreq_unhooked_addref(xreq); } @@ -483,8 +483,8 @@ static void on_call(void *closure, struct afb_proto_ws_call *call, const char *v /* makes the call */ wreq->xreq.cred = afb_cred_addref(stubws->cred); - wreq->xreq.api = stubws->apiname; - wreq->xreq.verb = verb; + wreq->xreq.request.api = stubws->apiname; + wreq->xreq.request.verb = verb; wreq->xreq.json = args; afb_xreq_process(&wreq->xreq, stubws->apiset); return; |