move user_data position as last of parameter 11/281611/1
authordyamy-lee <dyamy.lee@samsung.com>
Thu, 15 Sep 2022 01:00:45 +0000 (10:00 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Tue, 20 Sep 2022 04:57:31 +0000 (13:57 +0900)
Change-Id: Idb14012a735b5985e0bb5b8e7a0448b5015ebbce

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

index ba009f2c303df15b14324a9590d44bce276cefce..138f16b3e9ed2391f87dfd158530643306259e03 100644 (file)
--- a/src/mmi.h
+++ b/src/mmi.h
@@ -39,7 +39,7 @@ typedef enum {
        MMI_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< MMI NOT supported */
 } mmi_error_e;
 
-typedef void (*mmi_result_cb)(void *user_data, int input_event_type, const char *result_out);
+typedef void (*mmi_result_cb)(int input_event_type, const char *result_out, void *user_data);
 
 typedef enum {
        MMI_VOICE_TOUCH,
index 4bcea40986a81eddc13db2dab08cf5692db73843..b73cdd50ee24212faaf84f6a59a92b652cb7821c 100644 (file)
@@ -55,11 +55,11 @@ TEST_F(MMIMainTest, MmiClientCreateSuccess)
        mmi_client_destroy();
 }
 
-void voice_touch_callback(void *user_data, int input_event_type, const char *result_out)
+void voice_touch_callback(int input_event_type, const char *result_out, void *user_data)
 {
 }
 
-void voice_recognition_callback(void *user_data, int input_event_type, const char *result_out)
+void voice_recognition_callback(int input_event_type, const char *result_out, void *user_data)
 {
 }