it chang the name of result_cb to mmi_result_cb for reducing unclear, especially consider ACR
Change-Id: I9ef921a7f57b47d532a84ea77b8f311a922a3816
mmi_ipc_shutdown();
GList *iter = NULL;
- result_cb_s *data = NULL;
+ mmi_result_cb_s *data = NULL;
if (g_list_length(mmi_h->result_cb_list) > 0) {
iter = g_list_first(mmi_h->result_cb_list);
return MMI_ERROR_NONE;
}
-int mmi_client_set_result_cb(int input_event_type, result_cb callback, void* user_data)
+int mmi_client_set_result_cb(int input_event_type, mmi_result_cb callback, void* user_data)
{
LOGI("Set result cb about input event type(%d) to client", input_event_type);
return MMI_ERROR_INVALID_PARAMETER;
}
- result_cb_s* input_result_callback = (result_cb_s*)calloc(1, sizeof(result_cb_s));
+ mmi_result_cb_s* input_result_callback = (mmi_result_cb_s*)calloc(1, sizeof(mmi_result_cb_s));
if (input_result_callback == NULL) {
LOGE("[ERROR] Fail to allocate memory");
return MMI_ERROR_OUT_OF_MEMORY;
typedef struct {
int input_event_type;
- int input_event_state;
- result_cb result_callback;
-} result_cb_s;
+ mmi_result_cb result_callback;
+} mmi_result_cb_s;
#ifdef __cplusplus
extern "C" {
int mmi_client_create(void);
int mmi_client_destroy(void);
-int mmi_client_set_result_cb(int input_event_type, result_cb callback, void* user_data);
+int mmi_client_set_result_cb(int input_event_type, mmi_result_cb callback, void* user_data);
mmi_handle mmi_client_get(void);
#ifdef __cplusplus
return MMI_ERROR_NONE;
}
-MMI_API int mmi_set_result_cb(int input_event_type, result_cb callback, void* user_data)
+MMI_API int mmi_set_result_cb(int input_event_type, mmi_result_cb callback, void* user_data)
{
LOGI("Set result cb about input event type(%d)", input_event_type);
MMI_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< MMI NOT supported */
} mmi_error_e;
-typedef void (*result_cb)(void *user_data, int input_event_type, const char *result_out);
+typedef void (*mmi_result_cb)(void *user_data, int input_event_type, const char *result_out);
typedef enum {
MMI_VOICE_TOUCH,
MMI_API int mmi_initialize(void);
MMI_API int mmi_deinitialize(void);
-MMI_API int mmi_set_result_cb(int input_event_type, result_cb callback, void* user_data);
+MMI_API int mmi_set_result_cb(int input_event_type, mmi_result_cb callback, void* user_data);
#ifdef __cplusplus
}
mmi_handle mmi_client = mmi_client_get();
GList* iter = NULL;
- result_cb_s *data = NULL;
+ mmi_result_cb_s *data = NULL;
iter = g_list_first(mmi_client->result_cb_list);
if(NULL != iter) {
- data = (result_cb_s*)iter->data;
+ data = (mmi_result_cb_s*)iter->data;
EXPECT_NE(data->result_callback, nullptr);
EXPECT_EQ(data->result_callback, voice_touch_callback);
EXPECT_EQ(data->input_event_type, input_event_type);