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 8490bb2..1b53919 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 cb3bfdc..b41f359 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 b2821da..54370a7 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 cfaccbc..ca59c5a 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();
 }