summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-05-09 09:52:26 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-05-09 09:52:26 +0200
commit0a06ae40543bb9043e80be8d2aa480ecf995800c (patch)
tree32de404618e6671757ae18629ea0112c9064dbf4 /include
parent4d8f7faa206e3d9235f8c92c640cb993cb5e171d (diff)
improves naming
Change-Id: If334a26fada7bd234a6c71bee32b7b700f85c87c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'include')
-rw-r--r--include/afb-req-itf.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/afb-req-itf.h b/include/afb-req-itf.h
index 111b1d53..061c1f0d 100644
--- a/include/afb-req-itf.h
+++ b/include/afb-req-itf.h
@@ -33,7 +33,7 @@ struct afb_req_itf {
const char *(*raw)(void *req_closure, size_t *size);
void (*send)(void *req_closure, const char *buffer, size_t size);
void *(*context_get)(void *ctx_closure);
- void (*context_set)(void *ctx_closure, void *context, void (*free_context)(void*));
+ void (*context_set)(void *ctx_closure, void *value, void (*free_value)(void*));
int (*session_create)(void *req_closure);
int (*session_check)(void *req_closure, int refresh);
void (*session_close)(void *req_closure);
@@ -90,9 +90,9 @@ static inline void *afb_req_context_get(struct afb_req req)
return req.itf->context_get(req.ctx_closure);
}
-static inline void afb_req_context_set(struct afb_req req, void *context, void (*free_context)(void*))
+static inline void afb_req_context_set(struct afb_req req, void *value, void (*free_value)(void*))
{
- return req.itf->context_set(req.ctx_closure, context, free_context);
+ return req.itf->context_set(req.ctx_closure, value, free_value);
}
static inline void afb_req_context_clear(struct afb_req req)