diff options
author | Peng Wu <epico@dhcp-65-116.nay.redhat.com> | 2010-04-11 15:26:30 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2010-05-19 10:09:32 +0800 |
commit | 25776642382b9e780e197b9f85aeb5aeb7852c7b (patch) | |
tree | 0c5c024bad9d797e99b9dbcc4fd7a716cfdb9ebc /lua/lua-plugin.h | |
parent | 83ae73bf667347973ce53f8124a64310b00b0805 (diff) | |
download | ibus-libpinyin-25776642382b9e780e197b9f85aeb5aeb7852c7b.tar.gz ibus-libpinyin-25776642382b9e780e197b9f85aeb5aeb7852c7b.tar.xz ibus-libpinyin-25776642382b9e780e197b9f85aeb5aeb7852c7b.zip |
refactor lua-plugin
Diffstat (limited to 'lua/lua-plugin.h')
-rw-r--r-- | lua/lua-plugin.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lua/lua-plugin.h b/lua/lua-plugin.h index 677aab3..2d50329 100644 --- a/lua/lua-plugin.h +++ b/lua/lua-plugin.h @@ -46,24 +46,30 @@ struct _IBusEnginePluginClass GType ibus_engine_plugin_get_type(void); +IBusEnginePlugin * ibus_engine_plugin_new(); + /** * retrieve all available lua plugin commands. * return array of command informations of type lua_command_t. */ -GArray * lua_plugin_ime_get_available_commands(IBusEnginePlugin * plugin); +GArray * ibus_engine_plugin_ime_get_available_commands(IBusEnginePlugin * plugin); /** * retval int: only support string or string array. */ -int lua_plugin_ime_call(IBusEnginePlugin * plugin, const lua_command_t * command, const char * argument /*optional, maybe NULL.*/); +int ibus_engine_plugin_ime_call(IBusEnginePlugin * plugin, const lua_command_t * command, const char * argument /*optional, maybe NULL.*/); /** * retrieve the retval string value. (value has been copied.) */ -const char * lua_plugin_ime_get_retval(IBusEnginePlugin * plugin); +const char * ibus_engine_plugin_ime_get_retval(IBusEnginePlugin * plugin); /** * retrieve the array of string values. (string values have been copied.) */ -GArray * lua_plugin_ime_get_retvals(IBusEnginePlugin * plugin); +GArray * ibus_engine_plugin_ime_get_retvals(IBusEnginePlugin * plugin); + +/*< private >*/ +/* will drop this function soon. */ +lua_State * ibus_engine_plugin_get_lua_State(IBusEnginePlugin * plugin); #endif |