interface changed to lua_plugin_context.
authorPeng Wu <epico@dhcp-65-116.nay.redhat.com>
Wed, 7 Apr 2010 03:06:11 +0000 (11:06 +0800)
committerPeng Wu <alexepico@gmail.com>
Wed, 19 May 2010 02:09:32 +0000 (10:09 +0800)
lua/lua-plugin.h

index 2ffdeed..3aa73d6 100644 (file)
@@ -15,6 +15,11 @@ typedef struct{
   const char * help; /* optional. */
 } lua_command_t;
 
+typedef struct{
+  lua_State * L;
+  GArray * lua_commands; /* Array of lua_command_t. */
+} lua_plugin_context_t;
+
 /**
  * retrieve all available lua plugin commands.
  * return array of command informations of type lua_command_t.