Use ecore timer to make testable 37/261537/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Tue, 20 Jul 2021 08:29:17 +0000 (17:29 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Wed, 21 Jul 2021 02:19:22 +0000 (11:19 +0900)
Change-Id: Ib43ee0b2d1501507bc41a2b1695d323fa0d43d44
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
client/vc_mgr.c

index 559a276..5c0a44f 100755 (executable)
@@ -45,7 +45,7 @@
 #define VC_MANAGER_CONFIG_HANDLE       100000
 
 static Ecore_Timer* g_send_hello_timer = NULL;
-static Ecore_Idler* g_request_init_timer = NULL;
+static Ecore_Timer* g_request_init_timer = NULL;
 static int g_send_hello_count = 0;
 
 static Ecore_Timer* g_m_set_volume_timer = NULL;
@@ -368,7 +368,7 @@ int vc_mgr_deinitialize(void)
                }
                if (g_request_init_timer) {
                        SLOG(LOG_DEBUG, TAG_VCM, "Connect idler is deleted");
-                       ecore_idler_del(g_request_init_timer);
+                       ecore_timer_del(g_request_init_timer);
                        g_request_init_timer = NULL;
                }
 
@@ -515,7 +515,7 @@ static Eina_Bool __send_hello_message(void *data)
 
        if (NULL == g_request_init_timer) {
                SLOG(LOG_INFO, TAG_VCM, "[DEBUG] Create a new idler for preparation");
-               g_request_init_timer = ecore_idler_add(__request_initialize, NULL);
+               g_request_init_timer = ecore_timer_add(0.0, __request_initialize, NULL);
        } else {
                SLOG(LOG_INFO, TAG_VCM, "[INFO] idler handle is already created");
        }