aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-context.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-05-05 12:26:13 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-05-05 12:26:13 +0200
commit0609e7481a2c2ab475ebd3cba60ce88eb53ddd20 (patch)
treed75f6323fe7c9961b762e7666b3ebafea59a5756 /src/afb-context.c
parent58ca325302568bfd7ddbdd5d2d4a31b49d0be85a (diff)
make function afb_context_set return a status
Change-Id: I5172c58288e5974001f3478f7cee94d7a98abe7d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-context.c')
-rw-r--r--src/afb-context.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/afb-context.c b/src/afb-context.c
index e9c73de5..16dcd046 100644
--- a/src/afb-context.c
+++ b/src/afb-context.c
@@ -122,12 +122,10 @@ void *afb_context_get(struct afb_context *context)
return afb_session_get_cookie(context->session, context->api_key);
}
-void afb_context_set(struct afb_context *context, void *value, void (*free_value)(void*))
+int afb_context_set(struct afb_context *context, void *value, void (*free_value)(void*))
{
- int rc;
assert(context->session != NULL);
- rc = afb_session_set_cookie(context->session, context->api_key, value, free_value);
- (void)rc; /* TODO */
+ return afb_session_set_cookie(context->session, context->api_key, value, free_value);
}
void afb_context_close(struct afb_context *context)