int ime_reset_imengine(void);
/**
+ * @brief Send an Event to IMEngine
+ *
+ * @since_tizen 5.5
+ *
+ * @privilege %http://tizen.org/privilege/ime
+ *
+ * @return 0 on success, otherwise a negative error value
+ * @param[in] command The command to be sent.
+ * @param[in] value The value corresponding to the command.
+ */
+int ime_send_imengine_event(int command, unsigned int value);
+
+/**
* @brief Sends the selected item index in the candidate list.
*
* @since_tizen 3.0
return IME_ERROR_NONE;
}
+EXPORT_API int ime_send_imengine_event(int command, unsigned int value)
+{
+ ime_error_e retVal = IME_ERROR_NONE;
+
+ if (!g_running) {
+ LOGW("IME_ERROR_NOT_RUNNING");
+ return IME_ERROR_NOT_RUNNING;
+ }
+
+ retVal = _check_privilege();
+ if (retVal != IME_ERROR_NONE) return retVal;
+
+ g_core.send_imengine_event(-1, NULL, command, value);
+
+ return IME_ERROR_NONE;
+}
+
EXPORT_API int ime_reset_imengine(void)
{
ime_error_e retVal = IME_ERROR_NONE;