diff options
| author | Peng Wu <epico@dhcp-65-116.nay.redhat.com> | 2010-04-11 15:01:11 +0800 |
|---|---|---|
| committer | Peng Wu <alexepico@gmail.com> | 2010-05-19 10:09:32 +0800 |
| commit | 7505cd8f7c7298f6db1dc1ad665b082810234944 (patch) | |
| tree | 37c8b313588b274a672a5c3a21cc18236c365357 /lua/test-lua-plugin.c | |
| parent | 07351a7e974d192a1b93679d518be75cb764fdd2 (diff) | |
add gobject interface for lua-plugin.
Diffstat (limited to 'lua/test-lua-plugin.c')
| -rw-r--r-- | lua/test-lua-plugin.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lua/test-lua-plugin.c b/lua/test-lua-plugin.c index 34bbef5..44bce4a 100644 --- a/lua/test-lua-plugin.c +++ b/lua/test-lua-plugin.c @@ -36,13 +36,15 @@ static int run_test(lua_State *L, const char * filename){ int main(int argc, char * argv[]){ printf("starting test...\n"); - /* initialize Lua */ - L = lua_open(); + IBusEnginePluginPrivate priv; - lua_plugin_init(L); + priv.L = NULL; + priv.lua_commands = NULL; - run_test(L, "test.lua"); + lua_plugin_init(&priv); + + run_test(priv.L, "test.lua"); - lua_plugin_fini(L); + lua_plugin_fini(&priv); return 0; } |
