From b41ed8f8cbbdf7cff415f69f6f9b4a92cfe1f37d Mon Sep 17 00:00:00 2001 From: José Bollo Date: Mon, 30 May 2016 12:51:17 +0200 Subject: applies timeout setting for apis MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I6ff93946990400a6e900d6d6916e2b68af92fbcc Signed-off-by: José Bollo --- src/afb-api-so.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/afb-api-so.c') 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; -- cgit 1.2.3-korg