From e1a8ed50131891516f5da6e22aae69a306147d38 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 26 Jul 2012 21:50:13 +0400 Subject: * Add lua worker type and lua worker bindings. * Add lua utility library for basic utils. * Fixes lua_buffer code. Fix lua loading error. Added some other lua utility functions. --- src/lua/lua_common.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/lua/lua_common.h') diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h index daab695fc..dc417fa68 100644 --- a/src/lua/lua_common.h +++ b/src/lua/lua_common.h @@ -24,7 +24,12 @@ extern GMutex *lua_mtx; /** * Create and register new class */ -void lua_newclass (lua_State *L, const gchar *classname, const struct luaL_reg *func); +void lua_newclass (lua_State *L, const gchar *classname, const struct luaL_reg *methods); + +/** + * Create and register new class with static methods + */ +void lua_newclass_full (lua_State *L, const gchar *classname, const gchar *static_name, const struct luaL_reg *methods, const struct luaL_reg *func); /** * Set class name for object at @param objidx position @@ -64,6 +69,7 @@ gint luaopen_redis (lua_State * L); gint luaopen_upstream (lua_State * L); gint luaopen_mempool (lua_State * L); gint luaopen_session (lua_State * L); +gint luaopen_io_dispatcher (lua_State * L); void init_lua (struct config_file *cfg); gboolean init_lua_filters (struct config_file *cfg); -- cgit v1.2.3