aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-session.h
diff options
context:
space:
mode:
authorJose Bollo <jose.bollo@iot.bzh>2019-11-15 14:39:04 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2019-11-29 12:48:17 +0100
commitd735ff81293a2de1860a99afef891ac3fc6c1c09 (patch)
tree8115fee244eb7ce13cc2f323e1635fff7148a3d0 /src/afb-session.h
parente80c1a7ae27456d546e202b1c498e9337d42ce14 (diff)
afb-session: Expose a local id for sessions
Also, improve readability and memory footprint Bug-AGL: SPEC-2968 Change-Id: I90104fb19a44e2810b92bef51d774acf734fd90f Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-session.h')
-rw-r--r--src/afb-session.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/afb-session.h b/src/afb-session.h
index f5a28b75..bd1c47c7 100644
--- a/src/afb-session.h
+++ b/src/afb-session.h
@@ -32,6 +32,7 @@ extern struct afb_session *afb_session_create (int timeout);
extern struct afb_session *afb_session_search (const char *uuid);
extern struct afb_session *afb_session_get (const char *uuid, int timeout, int *created);
extern const char *afb_session_uuid (struct afb_session *session);
+extern uint16_t afb_session_id (struct afb_session *session);
extern struct afb_session *afb_session_addref(struct afb_session *session);
extern void afb_session_unref(struct afb_session *session);