aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-auth.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-09-21 17:02:36 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-10-09 14:08:32 +0200
commit89190b853409c3d0465232da6dd11e4c0a0b73d7 (patch)
tree0b59196711b8d606e916d43ae84226ce4c9eb4f0 /src/afb-auth.h
parente0fa1cdd56ffb97fedc3ba8df482a14323d876c7 (diff)
afb-auth: Move json serialisation of afb_auth
Change-Id: Ifa50d1b7aa8d900cd6786f6950e0a738301d6c92 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-auth.h')
-rw-r--r--src/afb-auth.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/afb-auth.h b/src/afb-auth.h
index db084037..4616c9d8 100644
--- a/src/afb-auth.h
+++ b/src/afb-auth.h
@@ -19,7 +19,9 @@
struct afb_auth;
struct afb_xreq;
+struct json_object;
extern int afb_auth_check(struct afb_xreq *xreq, const struct afb_auth *auth);
extern int afb_auth_has_permission(struct afb_xreq *xreq, const char *permission);
+extern struct json_object *afb_auth_json_v2(const struct afb_auth *auth, int session);