summaryrefslogtreecommitdiffstats
path: root/lua/lua-plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lua-plugin.h')
-rw-r--r--lua/lua-plugin.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/lua/lua-plugin.h b/lua/lua-plugin.h
index 8a265af..c22ce37 100644
--- a/lua/lua-plugin.h
+++ b/lua/lua-plugin.h
@@ -127,6 +127,16 @@ gboolean ibus_engine_plugin_add_trigger(IBusEnginePlugin * plugin, lua_trigger_t
const GArray * ibus_engine_plugin_get_available_triggers(IBusEnginePlugin * plugin);
/**
+ * retrieve the lua function name of the matched input for lua_trigger_t.
+ */
+gboolean ibus_engine_plugin_match_input(IBusEnginePlugin * plugin, const char * input, const char ** lua_function_name);
+
+/**
+ * retrieve the lua function name of the matched candidate for lua_trigger_t.
+ */
+gboolean ibus_engine_plugin_match_candidate(IBusEnginePlugin * plugin, const char * candidate, const char ** lua_function_name);
+
+/**
* add a lua_converter_t to plugin.
*/
gboolean ibus_engine_plugin_add_converter(IBusEnginePlugin * plugin, lua_converter_t * converter);
@@ -155,16 +165,6 @@ const char * ibus_engine_plugin_get_converter(IBusEnginePlugin * plugin);
const lua_command_t * ibus_engine_plugin_lookup_command(IBusEnginePlugin * plugin, const char * command_name);
/**
- * retrieve the lua function name of the matched input for lua_trigger_t.
- */
-gboolean ibus_engine_plugin_match_input(IBusEnginePlugin * plugin, const char * input, const char ** lua_function_name);
-
-/**
- * retrieve the lua function name of the matched candidate for lua_trigger_t.
- */
-gboolean ibus_engine_plugin_match_candidate(IBusEnginePlugin * plugin, const char * candidate, const char ** lua_function_name);
-
-/**
* retval int: returns the number of results,
* only support string or string array.
* the consequence call of ibus_engine_plugin_get_retval* must follow this call immediately.