demo: Receive requester device id in receive_request_result
authorSaurav Babu <saurav.babu@samsung.com>
Fri, 6 Apr 2018 07:27:07 +0000 (12:57 +0530)
committersaerome.kim <saerome.kim@samsung.com>
Mon, 2 Jul 2018 10:38:49 +0000 (19:38 +0900)
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
capi/demo/comp-manager.c
capi/demo/main.c

index 66a1748..e67c5a5 100644 (file)
@@ -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);
index 48c03d7..1cfb4d7 100644 (file)
@@ -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)
 {