demo: change message color when callback function is called
authorsaerome.kim <saerome.kim@samsung.com>
Mon, 22 Jan 2018 12:22:38 +0000 (21:22 +0900)
committersaerome.kim <saerome.kim@samsung.com>
Mon, 2 Jul 2018 10:38:47 +0000 (19:38 +0900)
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
capi/demo/comp-manager.c

index aa30db4a33c13ef9f69400c77e4b97706de9b9e5..21baffbf11ce026724df83cd7c64e2f8f3cdc3c8 100644 (file)
@@ -61,7 +61,7 @@ int run_get_my_id(MManager *mm, struct menu_data *menu)
 
 void _device_eject_result_cb(int result, void *user_data)
 {
-       msg("Eject Device Complete [%s]", comp_error_to_string(result) );
+       msgp("Eject Device Complete [%s]", comp_error_to_string(result) );
 }
 
 static int run_device_eject(MManager *mm, struct menu_data *menu)
@@ -117,7 +117,7 @@ static int run_device_eject(MManager *mm, struct menu_data *menu)
 
 void _device_invite_result_cb(int result, void *user_data)
 {
-       msg("Invite Device Finished [%s]", comp_error_to_string(result) );
+       msgp("Invite Device Finished [%s]", comp_error_to_string(result) );
 }
 
 static int run_device_invite(MManager *mm, struct menu_data *menu)
@@ -396,7 +396,7 @@ int run_device_get_found(MManager *mm, struct menu_data *menu)
 
 void _device_finish_cb(int num_of_devs, void *user_data)
 {
-       msgb("%d Device(s) Found", num_of_devs);
+       msgp("%d Device(s) Found", num_of_devs);
 }
 
 bool _device_found_cb(companion_device_h device, void *user_data)
@@ -593,7 +593,7 @@ static int run_group_show(MManager *mm, struct menu_data *menu)
 
 static void _group_join_finish_cb(int result, void *user_data)
 {
-       msgb("join operation finished");
+       msgp("join operation finished");
 }
 
 static int run_group_join(MManager *mm, struct menu_data *menu)
@@ -664,7 +664,7 @@ bool _group_found_cb(companion_group_type_e type, companion_group_h group, void
        companion_group_information_get_uri_path(group, &uri_path);
 
        msg("");
-       msgb("found group type : %d, uri : %s", type, uri_path);
+       msgp("found group type : %d, uri : %s", type, uri_path);
 
        found_group_list = g_list_prepend(found_group_list, group);
 
@@ -724,7 +724,7 @@ void _send_data_finish_cb(int result, char *resp_data, void *user_data)
 {
        msgb("Find Send Data Finished = %d", result);
        if (resp_data != NULL && strlen(resp_data) > 0) {
-               msgb("Response Data = %s", resp_data);
+               msgp("Response Data = %s", resp_data);
        }
 }