From 6655fb484c84bcc57bbda2acca1f8da45b49df4d Mon Sep 17 00:00:00 2001 From: Saurav Babu Date: Fri, 6 Apr 2018 12:57:07 +0530 Subject: [PATCH] demo: Receive requester device id in receive_request_result Signed-off-by: Saurav Babu --- capi/demo/comp-manager.c | 6 ++++-- capi/demo/main.c | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/capi/demo/comp-manager.c b/capi/demo/comp-manager.c index 66a1748..e67c5a5 100644 --- a/capi/demo/comp-manager.c +++ b/capi/demo/comp-manager.c @@ -45,9 +45,11 @@ static char message[MENU_DATA_SIZE + 1] = "Hello World!!"; static int run_group_find(MManager *mm, struct menu_data *menu); static int run_devices_find(MManager *mm, struct menu_data *menu); -void receive_request_result(char *cmd, char *arg, int ret, void *user_data) +void receive_request_result(char *cmd, char *device_id, char *arg, int ret, + void *user_data) { - msg("_request_result_cb is called command %s", cmd); + msg("_request_result_cb is called command %s Requester id %s", cmd, + device_id); if (cmd == NULL) { msgp("cmd is null [%s(0x%X)]", comp_error_to_string(ret), ret); diff --git a/capi/demo/main.c b/capi/demo/main.c index 48c03d7..1cfb4d7 100644 --- a/capi/demo/main.c +++ b/capi/demo/main.c @@ -38,7 +38,8 @@ extern companion_h handle; #define CASE_TO_STR(x) case x: return #x; -void receive_request_result(char *cmd, char *arg, int ret, void *user_data); +void receive_request_result(char *cmd, char *device_id, char *arg, int ret, + void *user_data); const char* comp_error_to_string(comp_error_e err) { -- 2.34.1