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.h7
1 files changed, 5 insertions, 2 deletions
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;