diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-07-26 21:50:13 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-07-26 21:50:13 +0400 |
commit | e1a8ed50131891516f5da6e22aae69a306147d38 (patch) | |
tree | 61002cf909d2d41553b94b8ed654d0f2f3567a67 /src/lua/lua_common.h | |
parent | 2e615083e475c7390c667695b9e659fa5ba4da5f (diff) | |
download | rspamd-e1a8ed50131891516f5da6e22aae69a306147d38.tar.gz rspamd-e1a8ed50131891516f5da6e22aae69a306147d38.zip |
* 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.
Diffstat (limited to 'src/lua/lua_common.h')
-rw-r--r-- | src/lua/lua_common.h | 8 |
1 files changed, 7 insertions, 1 deletions
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); |