From: Sangjin Lee Date: Tue, 11 Jul 2017 00:50:53 +0000 (+0900) Subject: e_info: use wl_resource_get_class() X-Git-Tag: submit/tizen/20170711.122538~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=768aa66229c1b99074b58f6d0aaefe25195450f2;p=platform%2Fupstream%2Fenlightenment.git e_info: use wl_resource_get_class() wl_resource_get_name() is tizen api, so use wl_resource_get_class() instead of wl_resource_get_name() Change-Id: I2a9cbe8cf51a696eee9bcb2dc913dbcb1d5e2c24 --- diff --git a/src/bin/e_info_server.c b/src/bin/e_info_server.c index 85fbcdf183..30da8d3a2c 100644 --- a/src/bin/e_info_server.c +++ b/src/bin/e_info_server.c @@ -752,7 +752,7 @@ _e_info_server_get_resource(void *element, void *data) Eldbus_Message_Iter* struct_of_res; eldbus_message_iter_arguments_append(array_of_res, "("VALUE_TYPE_REPLY_RESLIST")", &struct_of_res); - eldbus_message_iter_arguments_append(struct_of_res, VALUE_TYPE_REPLY_RESLIST, "[resource]", wl_resource_get_name(resource), wl_resource_get_id(resource)); + eldbus_message_iter_arguments_append(struct_of_res, VALUE_TYPE_REPLY_RESLIST, "[resource]", wl_resource_get_class(resource), wl_resource_get_id(resource)); eldbus_message_iter_container_close(array_of_res, struct_of_res); resurceCnt++; } @@ -2848,7 +2848,7 @@ _e_info_server_protocol_debug_func2(void *user_data, enum wl_protocol_logger_typ elog.type = (direction == WL_PROTOCOL_LOGGER_EVENT)?1:0; elog.client_pid = client_pid; elog.target_id = wl_resource_get_id(message->resource); - snprintf(elog.name, PATH_MAX, "%s:%s", wl_resource_get_name(message->resource), message->message->name); + snprintf(elog.name, PATH_MAX, "%s:%s", wl_resource_get_class(message->resource), message->message->name); EINA_LIST_FOREACH(e_comp->connected_clients, l, cinfo) { if (cinfo->pid == client_pid) @@ -2860,7 +2860,7 @@ _e_info_server_protocol_debug_func2(void *user_data, enum wl_protocol_logger_typ time / 1000.0, elog.type ? "Server -> Client [PID:" : "Server <- Client [PID:", client_pid, "] ", - wl_resource_get_name(message->resource), + wl_resource_get_class(message->resource), wl_resource_get_id(message->resource), message->message->name); @@ -2887,7 +2887,7 @@ _e_info_server_protocol_debug_func2(void *user_data, enum wl_protocol_logger_typ case 'o': if (message->arguments[i].o) BUF_SNPRINTF("%s@%u", - wl_resource_get_name((struct wl_resource*)message->arguments[i].o), + wl_resource_get_class((struct wl_resource*)message->arguments[i].o), wl_resource_get_id((struct wl_resource*)message->arguments[i].o)); else BUF_SNPRINTF("nil");