Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Improve handling of verbosity
[src/app-framework-binder.git]
/
src
/
afb-session.c
diff --git
a/src/afb-session.c
b/src/afb-session.c
index
7c8f91c
..
8b56683
100644
(file)
--- a/
src/afb-session.c
+++ b/
src/afb-session.c
@@
-120,7
+120,7
@@
static void free_data (struct afb_session *session)
void afb_session_init (int max_session_count, int timeout, const char *initok)
{
// let's create as store as hashtable does not have any
void afb_session_init (int max_session_count, int timeout, const char *initok)
{
// let's create as store as hashtable does not have any
- sessions.store = calloc (1 + (unsigned)max_session_count, sizeof
(struct afb_session)
);
+ sessions.store = calloc (1 + (unsigned)max_session_count, sizeof
*sessions.store
);
pthread_mutex_init(&sessions.mutex, NULL);
sessions.max = max_session_count;
sessions.timeout = timeout;
pthread_mutex_init(&sessions.mutex, NULL);
sessions.max = max_session_count;
sessions.timeout = timeout;
@@
-135,6
+135,11
@@
void afb_session_init (int max_session_count, int timeout, const char *initok)
}
}
}
}
+const char *afb_session_initial_token()
+{
+ return sessions.initok;
+}
+
static struct afb_session *search (const char* uuid)
{
int idx;
static struct afb_session *search (const char* uuid)
{
int idx;