summaryrefslogtreecommitdiffstats
path: root/src/afb-xreq.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-04-12 17:56:20 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-04-12 17:56:20 +0200
commita138fda9841c46e28de93e32aee62956e26556b1 (patch)
treeebb792f5d289f4a027a29b5fb573807ab2240327 /src/afb-xreq.h
parent09010fa0093bee944738b728bf3277961d9bd6d7 (diff)
Add credential data to xreq
This will allow soon to check the credentials when evaluating calls. Change-Id: I993216ccbc02538dcd92e49fcb2de0541eeb8c01 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-xreq.h')
-rw-r--r--src/afb-xreq.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/afb-xreq.h b/src/afb-xreq.h
index 4cd58209..f9963024 100644
--- a/src/afb-xreq.h
+++ b/src/afb-xreq.h
@@ -26,6 +26,7 @@
struct json_object;
struct afb_evt_listener;
struct afb_xreq;
+struct afb_cred;
struct afb_xreq_query_itf {
struct json_object *(*json)(struct afb_xreq *xreq);
@@ -54,6 +55,7 @@ struct afb_xreq
int hookflags; /**< flags for hooking */
int hookindex; /**< index for hooking */
struct afb_evt_listener *listener;
+ struct afb_cred *cred;
};
#define CONTAINER_OF_XREQ(type,x) ((type*)(((intptr_t)(x))-((intptr_t)&(((type*)NULL)->xreq))))