From c3bc5bd52879a85a7a6bfd4e2baefbe7cf37bc01 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 13 Apr 2010 15:55:07 +0800 Subject: ime register command in progress. --- lua/lua-plugin.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lua/lua-plugin.h') diff --git a/lua/lua-plugin.h b/lua/lua-plugin.h index 2d50329..084fe15 100644 --- a/lua/lua-plugin.h +++ b/lua/lua-plugin.h @@ -5,8 +5,7 @@ #define LUA_IMELIBNAME "ime" LUALIB_API int (luaopen_ime) (lua_State * L); - -void lua_plugin_openlibs (lua_State *L); +#define LUA_IMELIB_CONTEXT "__context" typedef struct{ const char * command_name; @@ -31,6 +30,10 @@ typedef struct _IBusEnginePlugin IBusEnginePlugin; typedef struct _IBusEnginePluginClass IBusEnginePluginClass; typedef struct _IBusEnginePluginPrivate IBusEnginePluginPrivate; +void lua_plugin_openlibs (lua_State *L); +void lua_plugin_store_plugin(lua_State * L, IBusEnginePlugin * plugin); +IBusEnginePlugin * lua_plugin_retrieve_plugin(lua_State * L); + struct _IBusEnginePlugin { GObject parent_instance; -- cgit