diff options
| author | Peng Wu <alexepico@gmail.com> | 2021-01-27 15:29:36 +0800 |
|---|---|---|
| committer | Peng Wu <alexepico@gmail.com> | 2021-01-27 15:40:33 +0800 |
| commit | b8d700607ea7a6d27cc9c7ab9d4f9901bd40997c (patch) | |
| tree | a8816c2eafab8b2dbb04d0fcc5c921a44cb9cd5e /lua/lua-plugin.h | |
| parent | dcf8e13c6921e4d8a39ec9bf33263fd37616560c (diff) | |
Update Lua Plugin API
Diffstat (limited to 'lua/lua-plugin.h')
| -rw-r--r-- | lua/lua-plugin.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lua/lua-plugin.h b/lua/lua-plugin.h index bed2f9a..46631dc 100644 --- a/lua/lua-plugin.h +++ b/lua/lua-plugin.h @@ -175,9 +175,19 @@ const lua_command_t * ibus_engine_plugin_lookup_command(IBusEnginePlugin * plugi int ibus_engine_plugin_call(IBusEnginePlugin * plugin, const char * lua_function_name, const char * argument /*optional, maybe NULL.*/); /** - * retrieve the first string value. (value has been copied.) + * retrieve the number of string values. */ -gchar * ibus_engine_plugin_get_first_result(IBusEnginePlugin * plugin); +gint ibus_engine_plugin_get_n_result(IBusEnginePlugin * plugin); + +/** + * retrieve the nth string value. (value has been copied.) + */ +gchar * ibus_engine_plugin_get_nth_result(IBusEnginePlugin * plugin, gint index); + +/** + * clear the string values from the stack. + */ +void ibus_engine_plugin_clear_results(IBusEnginePlugin * plugin); /** * retrieve the retval string value. (value has been copied.) |
