aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-stub-ws.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-09-21 12:34:12 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-10-09 14:08:32 +0200
commit271bb6fc606fc5068a7b7a8f22b0052aca2fb900 (patch)
treef87588fd0949bb0973bf39f965c82bfeb001da6c /src/afb-stub-ws.c
parent34fa1fb6de1c449b81b9a19fda21c2963eb57f3f (diff)
Make afb_event_drop obsolete
The function is now replaced by the function afb_event_unref. In the same time, the function afb_event_addref is made available. Change-Id: I9aa30e80e64e82f3b16ab359982337771b287185 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-stub-ws.c')
-rw-r--r--src/afb-stub-ws.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afb-stub-ws.c b/src/afb-stub-ws.c
index 9c903247..d1ce80b2 100644
--- a/src/afb-stub-ws.c
+++ b/src/afb-stub-ws.c
@@ -394,7 +394,7 @@ static void on_event_remove(void *closure, const char *event_name, int event_id)
*prv = ev->next;
/* destroys the event */
- afb_event_drop(ev->event);
+ afb_event_unref(ev->event);
free(ev);
}
@@ -585,7 +585,7 @@ static void drop_all_events(struct afb_stub_ws *stubws)
while (ev) {
nxt = ev->next;
- afb_event_drop(ev->event);
+ afb_event_unref(ev->event);
free(ev);
ev = nxt;
}