aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-api-dbus.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2019-12-18 10:42:15 +0100
committerJose Bollo <jose.bollo@iot.bzh>2020-01-03 16:53:38 +0100
commitc6fcbec33ab346ee8a658531afb130647c656df7 (patch)
tree774c451342cd7873ee9c4851a33716e298d190d9 /src/afb-api-dbus.c
parentf40979c718fa6fe6b571e133e1bf19fc90957298 (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-api-dbus.c')
-rw-r--r--src/afb-api-dbus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afb-api-dbus.c b/src/afb-api-dbus.c
index 04943c6e..f2145301 100644
--- a/src/afb-api-dbus.c
+++ b/src/afb-api-dbus.c
@@ -851,7 +851,7 @@ static int dbus_req_subscribe(struct afb_xreq *xreq, struct afb_event_x2 *event)
uint64_t msgid;
int rc;
- rc = afb_evt_event_x2_add_watch(dreq->listener->listener, event);
+ rc = afb_evt_listener_watch_x2(dreq->listener->listener, event);
sd_bus_message_get_cookie(dreq->message, &msgid);
afb_api_dbus_server_event_send(dreq->listener->origin, 'S', afb_evt_event_x2_fullname(event), afb_evt_event_x2_id(event), "", msgid);
return rc;
@@ -865,7 +865,7 @@ static int dbus_req_unsubscribe(struct afb_xreq *xreq, struct afb_event_x2 *even
sd_bus_message_get_cookie(dreq->message, &msgid);
afb_api_dbus_server_event_send(dreq->listener->origin, 'U', afb_evt_event_x2_fullname(event), afb_evt_event_x2_id(event), "", msgid);
- rc = afb_evt_event_x2_remove_watch(dreq->listener->listener, event);
+ rc = afb_evt_listener_unwatch_x2(dreq->listener->listener, event);
return rc;
}