change the prefix to matching with file name 89/281589/1
authordyamy-lee <dyamy.lee@samsung.com>
Mon, 5 Sep 2022 02:28:38 +0000 (11:28 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Tue, 20 Sep 2022 04:44:57 +0000 (13:44 +0900)
if a prefix is same with file name, it can be know easily some function is which module

Change-Id: I6e89f92ef9d3ffde09799ff1bc4cf734c8787c2a

src/mmi-core.c
src/mmi-core.h
src/mmi.c
tests/mmi-main-test.cpp

index 8490bb2064a4df8230153231ad028903ef219340..1b53919054873d2c7c099808ccd2908f5434cf58 100644 (file)
@@ -26,7 +26,7 @@
 
 static mmi_handle mmi_h = NULL;
 
-int mmi_instance_create(void)
+int mmi_core_create(void)
 {
        mmi_h = (mmi_handle)calloc(1, sizeof(mmi_struct_s));
 
@@ -51,7 +51,7 @@ int mmi_instance_create(void)
        return MMI_ERROR_NONE;
 }
 
-int mmi_instance_destroy()
+int mmi_core_destroy(void)
 {
        if (mmi_h == NULL) {
                LOGE("A mmi_h is already NULL");
index cb3bfdcdf4b0f47de541b3ff0592607d88e8316f..b41f35916a5399181526ae827ea0d8e7502e7eb3 100644 (file)
@@ -30,8 +30,8 @@
 extern "C" {
 #endif
 
-int mmi_instance_create(void);
-int mmi_instance_destroy();
+int mmi_core_create(void);
+int mmi_core_destroy(void);
 
 #ifdef __cplusplus
 }
index b2821da6f090bba51f0d8dd00e3e8c06a29c1d0b..54370a72efa26af4181103419f6542850f2cbdc4 100644 (file)
--- a/src/mmi.c
+++ b/src/mmi.c
@@ -27,7 +27,7 @@
 
 MMI_API int mmi_init(void)
 {
-       int ret = mmi_instance_create();
+       int ret = mmi_core_create();
        if(ret != MMI_ERROR_NONE) {
                LOGE("Fail to create mmi handle instance(%d)", ret);
                return MMI_ERROR_NOT_SUPPORTED;
@@ -38,7 +38,7 @@ MMI_API int mmi_init(void)
 
 MMI_API int mmi_shutdown(void)
 {
-       int ret = mmi_instance_destroy();
+       int ret = mmi_core_destroy();
        if(ret != MMI_ERROR_NONE) {
                LOGE("Fail to destroy mmi handle instance(%d)", ret);
                return MMI_ERROR_NOT_SUPPORTED;
index cfaccbcb1a48ce15145289a68693746ca504dc15..ca59c5af6324d5b8c9bf3b22502c6513d7dfb69d 100644 (file)
@@ -54,9 +54,9 @@ TEST_F(MMIMainTest, MMIMainInit)
 
 TEST_F(MMIMainTest, MmiInstanceCreateSuccess)
 {
-       int res = mmi_instance_create();
+       int res = mmi_core_create();
 
        EXPECT_EQ(res, MMI_ERROR_NONE);
 
-       mmi_instance_destroy();
+       mmi_core_destroy();
 }