diff options
author | Peng Wu <alexepico@gmail.com> | 2018-06-08 15:44:21 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2018-06-08 15:44:37 +0800 |
commit | 41b283aeed897d5ea23ce2a60b9470472b2d492c (patch) | |
tree | b4fa4a6d8113decf225cdb89da9497d9caf7556f /lua/lua-plugin.h | |
parent | 184a264f3eb4436ff2377b7db498cd321a339393 (diff) | |
download | ibus-libpinyin-41b283aeed897d5ea23ce2a60b9470472b2d492c.tar.gz ibus-libpinyin-41b283aeed897d5ea23ce2a60b9470472b2d492c.tar.xz ibus-libpinyin-41b283aeed897d5ea23ce2a60b9470472b2d492c.zip |
update lua-plugin.c
Diffstat (limited to 'lua/lua-plugin.h')
-rw-r--r-- | lua/lua-plugin.h | 20 |
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. |