From: dyamy-lee Date: Thu, 15 Sep 2022 08:35:52 +0000 (+0900) Subject: rename internal function X-Git-Tag: accepted/tizen/unified/20220927.132357~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F19%2F281619%2F1;p=platform%2Fcore%2Fuifw%2Fmmi-framework.git rename internal function using '__' prefix and 'static' keyword is better for internal function. So, rename mmi_client_convert_error_code to __mmi_client_convert_error_code. Change-Id: I038fd2ab0a396fa347e8f988ff6ed7489f4af5a4 --- diff --git a/src/mmi-client.c b/src/mmi-client.c index 446b3a3..2d047a9 100644 --- a/src/mmi-client.c +++ b/src/mmi-client.c @@ -82,7 +82,7 @@ int mmi_client_destroy(void) return MMI_ERROR_NONE; } -const char* mmi_client_convert_error_code(int err) +static const char* __mmi_client_convert_error_code(int err) { switch (err) { case MMI_ERROR_NONE: return "MMI_ERROR_NONE"; @@ -126,8 +126,8 @@ int mmi_client_set_result_cb(int input_event_type, mmi_result_cb callback, void* int ret = mmi_ipc_register_input_event_result_cb(input_event_type, callback); if (ret != MMI_ERROR_NONE) { - LOGE("Fail to register input event's result callback(%d), reason(%s)", ret, mmi_client_convert_error_code(ret)); - callback(input_event_type, mmi_client_convert_error_code(ret), NULL); + LOGE("Fail to register input event's result callback(%d), reason(%s)", ret, __mmi_client_convert_error_code(ret)); + callback(input_event_type, __mmi_client_convert_error_code(ret), NULL); return ret; }