aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-context.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-03-27 14:24:46 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-03-27 14:27:52 +0200
commit3bf52bb36ed428d0a7b947519fbccc7c376fd4a9 (patch)
tree88f6b06b74a7e2cd63abe128c4959a87465f683b /src/afb-context.h
parent8ab18c9dd70205755b67001ce27a499c0196ad63 (diff)
Replace session's value with sessions's cookies
This is a simplifaction with the benefits of only allocating needed memory and avoiding to create indexes on apis (path to dynanic?). Conversely it replaces a direct access with a linear search. Change-Id: Ibb130528ad8f23dfd6b420c228f51e181efb2664 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-context.h')
-rw-r--r--src/afb-context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afb-context.h b/src/afb-context.h
index d65e6ffa..3eb49742 100644
--- a/src/afb-context.h
+++ b/src/afb-context.h
@@ -38,7 +38,7 @@ struct afb_context
unsigned loa_changed: 1;
};
};
- int api_index;
+ void *api_key;
};
extern void afb_context_init(struct afb_context *context, struct afb_session *session, const char *token);