diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-05-30 12:51:17 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-05-30 13:24:24 +0200 |
commit | b41ed8f8cbbdf7cff415f69f6f9b4a92cfe1f37d (patch) | |
tree | 1e908e66786a4da93e1385aa2d4962d5dd7367c8 /src/afb-api-so.c | |
parent | 0ae7af342a90c2909051e4ec6760d57d6f7bc2d3 (diff) |
applies timeout setting for apis
Change-Id: I6ff93946990400a6e900d6d6916e2b68af92fbcc
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-api-so.c')
-rw-r--r-- | src/afb-api-so.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/afb-api-so.c b/src/afb-api-so.c index 9756b0e0..b741b13a 100644 --- a/src/afb-api-so.c +++ b/src/afb-api-so.c @@ -53,6 +53,11 @@ static int api_timeout = 15; static const char plugin_register_function_v1[] = "pluginAfbV1Register"; +void afb_api_so_set_timeout(int to) +{ + api_timeout = to; +} + static int afb_api_so_event_broadcast(struct api_so_desc *desc, const char *name, struct json_object *object) { size_t length; |