aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-api-dbus.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-04-04 10:10:13 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-04-04 10:10:13 +0200
commit0b838a6101edc810098ee0645d3bfd966096ae07 (patch)
tree284d0861a2f956e6d22c6839fdc913c41ebd11a5 /src/afb-api-dbus.c
parent5e7d680c173ddbb26db4e49f7738f82e89299362 (diff)
Definitive switch to internal's xreq
This switch allows to work on a common base for the requests. Change-Id: I94e7fdda80c1966af399309334c41c7c8c8259dc Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-api-dbus.c')
-rw-r--r--src/afb-api-dbus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/afb-api-dbus.c b/src/afb-api-dbus.c
index 09af983f..dc5273a8 100644
--- a/src/afb-api-dbus.c
+++ b/src/afb-api-dbus.c
@@ -311,7 +311,7 @@ static int api_dbus_client_on_reply(sd_bus_message *message, void *userdata, sd_
}
/* on call, propagate it to the dbus service */
-static void api_dbus_client_xcall(void *closure, struct afb_xreq *xreq)
+static void api_dbus_client_call(void *closure, struct afb_xreq *xreq)
{
struct api_dbus *api = closure;
size_t size;
@@ -614,7 +614,7 @@ int afb_api_dbus_add_client(const char *path)
/* record it as an API */
afb_api.closure = api;
- afb_api.xcall = api_dbus_client_xcall;
+ afb_api.call = api_dbus_client_call;
afb_api.service_start = api_dbus_service_start;
if (afb_apis_add(api->api, afb_api) < 0)
goto error2;
@@ -963,7 +963,7 @@ static int api_dbus_server_on_object_called(sd_bus_message *message, void *userd
dreq->xreq.queryitf = &afb_api_dbus_xreq_itf;
dreq->xreq.api = api->api;
dreq->xreq.verb = method;
- afb_apis_xcall(&dreq->xreq);
+ afb_apis_call(&dreq->xreq);
afb_xreq_unref(&dreq->xreq);
return 1;