diff options
author | 2016-05-22 00:29:22 +0200 | |
---|---|---|
committer | 2016-05-22 00:29:22 +0200 | |
commit | 457c879ff89bc7f1a8864304974999dba54af9ae (patch) | |
tree | 5d18a69c237fac35896911bda1711a147b05fa98 /src/afb-context.h | |
parent | ed4e7e3b0690680d963bc722bc259a424099e7e5 (diff) |
Fix AFB_SESSION_CREATE behaviour
This commit allows to call methods having AFB_SESSION_CREATE
at any time.
This commit prepares the future LOA (level of authorization)
implementation that wille soon replace the deprecated mechanism
of AFB_SESSION_CREATE.
Change-Id: Ia3e99186e012fcd55a6c81a7067ab5b4aca21e4d
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-context.h')
-rw-r--r-- | src/afb-context.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/afb-context.h b/src/afb-context.h index 2f5ecc10..3f4301ec 100644 --- a/src/afb-context.h +++ b/src/afb-context.h @@ -32,6 +32,10 @@ struct afb_context unsigned refreshed: 1; unsigned closing: 1; unsigned closed: 1; + unsigned loa_in: 3; + unsigned loa_out: 3; + unsigned loa_changing: 1; + unsigned loa_changed: 1; }; }; int api_index; @@ -49,5 +53,6 @@ extern void afb_context_set(struct afb_context *context, void *value, void (*fre extern void afb_context_close(struct afb_context *context); extern void afb_context_refresh(struct afb_context *context); extern int afb_context_check(struct afb_context *context); -extern int afb_context_create(struct afb_context *context); +extern int afb_context_check_loa(struct afb_context *context, unsigned loa); +extern void afb_context_change_loa(struct afb_context *context, unsigned loa); |