X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-api-dbus.c;h=806d7435d21aa94d9328a92da061c773f047d1e6;hb=7a7268a5697b0b988bcabc00390878edee941b4e;hp=1aad8635cc868fa0a941ae1966c40810fd2a87ce;hpb=4a6490b96d8ac2da6a19b4f251c005ff1b1e7d61;p=src%2Fapp-framework-binder.git diff --git a/src/afb-api-dbus.c b/src/afb-api-dbus.c index 1aad8635..806d7435 100644 --- a/src/afb-api-dbus.c +++ b/src/afb-api-dbus.c @@ -332,7 +332,7 @@ static void api_dbus_client_call(void *closure, struct afb_xreq *xreq) /* creates the message */ msg = NULL; - rc = sd_bus_message_new_method_call(api->sdbus, &msg, api->name, api->path, api->name, xreq->verb); + rc = sd_bus_message_new_method_call(api->sdbus, &msg, api->name, api->path, api->name, xreq->request.verb); if (rc < 0) goto error; @@ -985,8 +985,8 @@ static int api_dbus_server_on_object_called(sd_bus_message *message, void *userd dreq->json = json_object_new_string(dreq->request); } dreq->listener = listener; - dreq->xreq.api = api->api; - dreq->xreq.verb = method; + dreq->xreq.request.api = api->api; + dreq->xreq.request.verb = method; afb_xreq_process(&dreq->xreq, api->server.apiset); return 1;