diff options
author | José Bollo <jose.bollo@iot.bzh> | 2018-07-05 19:12:50 +0200 |
---|---|---|
committer | Jose Bollo <jose.bollo@iot.bzh> | 2018-07-06 12:40:33 +0200 |
commit | 95ad0012182b5f32cc1dd9843304b58d263a7de0 (patch) | |
tree | f9dd9571286980c882b10d6a2882c114e690b946 /src/afb-stub-ws.c | |
parent | 12ec841c28f8f795b49466cc377e64db3146430d (diff) |
Simplify build by introducing queuing function
It is not valuable at the end to continue to have this
fake job implementation. So removing it is good.
Change-Id: I930ade3e3a511f0ebfb91292e5725ac3be884d44
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-stub-ws.c')
-rw-r--r-- | src/afb-stub-ws.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/afb-stub-ws.c b/src/afb-stub-ws.c index 974ea07e..0a58b836 100644 --- a/src/afb-stub-ws.c +++ b/src/afb-stub-ws.c @@ -597,6 +597,11 @@ static void on_hangup(void *closure) afb_stub_ws_unref(stubws); } +static int enqueue_processing(void (*callback)(int signum, void* arg), void *arg) +{ + return jobs_queue(NULL, 0, callback, arg); +} + /*****************************************************/ static struct afb_stub_ws *afb_stub_ws_create(struct fdev *fdev, const char *apiname, struct afb_apiset *apiset, int client) @@ -617,6 +622,7 @@ static struct afb_stub_ws *afb_stub_ws_create(struct fdev *fdev, const char *api stubws->apiset = afb_apiset_addref(apiset); stubws->refcount = 1; afb_proto_ws_on_hangup(stubws->proto, on_hangup); + afb_proto_ws_set_queuing(stubws->proto, enqueue_processing); return stubws; } free(stubws); |