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
renaming of session API
[src/app-framework-binder.git]
/
src
/
session.c
diff --git
a/src/session.c
b/src/session.c
index
e9cf298
..
da2294b
100644
(file)
--- a/
src/session.c
+++ b/
src/session.c
@@
-168,7
+168,7
@@
static void ctxStoreCleanUp (time_t now)
}
// This function will return exiting client context or newly created client context
}
// This function will return exiting client context or newly created client context
-struct AFB_clientCtx *ctxClientGet (const char *uuid)
+struct AFB_clientCtx *ctxClientGet
ForUuid
(const char *uuid)
{
uuid_t newuuid;
struct AFB_clientCtx *clientCtx;
{
uuid_t newuuid;
struct AFB_clientCtx *clientCtx;
@@
-215,6
+215,13
@@
struct AFB_clientCtx *ctxClientGet (const char *uuid)
return NULL;
}
return NULL;
}
+struct AFB_clientCtx *ctxClientGet(struct AFB_clientCtx *clientCtx)
+{
+ if (clientCtx != NULL)
+ clientCtx->refcount++;
+ return clientCtx;
+}
+
void ctxClientPut(struct AFB_clientCtx *clientCtx)
{
if (clientCtx != NULL) {
void ctxClientPut(struct AFB_clientCtx *clientCtx)
{
if (clientCtx != NULL) {