diff options
author | José Bollo <jose.bollo@iot.bzh> | 2019-12-18 10:42:15 +0100 |
---|---|---|
committer | Jose Bollo <jose.bollo@iot.bzh> | 2020-01-03 16:53:38 +0100 |
commit | c6fcbec33ab346ee8a658531afb130647c656df7 (patch) | |
tree | 774c451342cd7873ee9c4851a33716e298d190d9 /src/afb-ws-json1.c | |
parent | f40979c718fa6fe6b571e133e1bf19fc90957298 (diff) |
afb-evt: Improve name of listening functions
Some more improvement on the road of the following bug:
Bug-AGL: SPEC-3069
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Change-Id: I5ad6439fa6051566ab2caf271345eda1efcef398
Diffstat (limited to 'src/afb-ws-json1.c')
-rw-r--r-- | src/afb-ws-json1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afb-ws-json1.c b/src/afb-ws-json1.c index ec22e1ed..54d18785 100644 --- a/src/afb-ws-json1.c +++ b/src/afb-ws-json1.c @@ -279,13 +279,13 @@ static int wsreq_subscribe(struct afb_xreq *xreq, struct afb_event_x2 *event) { struct afb_wsreq *wsreq = CONTAINER_OF_XREQ(struct afb_wsreq, xreq); - return afb_evt_event_x2_add_watch(wsreq->aws->listener, event); + return afb_evt_listener_watch_x2(wsreq->aws->listener, event); } static int wsreq_unsubscribe(struct afb_xreq *xreq, struct afb_event_x2 *event) { struct afb_wsreq *wsreq = CONTAINER_OF_XREQ(struct afb_wsreq, xreq); - return afb_evt_event_x2_remove_watch(wsreq->aws->listener, event); + return afb_evt_listener_unwatch_x2(wsreq->aws->listener, event); } |