diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-08-13 20:40:50 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-08-13 20:40:50 +0400 |
commit | cd85daafe383de85701d726461e3e464f7f70249 (patch) | |
tree | 5216e42fc3ae75d08ac653870b3e82f7f482ea6c /src/lua/lua_common.h | |
parent | ac13c4d304d190ead195f12a2db74ae08a91ed6b (diff) | |
download | rspamd-cd85daafe383de85701d726461e3e464f7f70249.tar.gz rspamd-cd85daafe383de85701d726461e3e464f7f70249.zip |
* Add DNS resolver lua bindings.
Make lua http library working without task object.
Fix a problem with resolver in lua_worker.
Added some utility functions to lua api.
Diffstat (limited to 'src/lua/lua_common.h')
-rw-r--r-- | src/lua/lua_common.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h index f9ab43d91..0ec0466e0 100644 --- a/src/lua/lua_common.h +++ b/src/lua/lua_common.h @@ -47,6 +47,11 @@ void lua_set_table_index (lua_State *L, const gchar *index, const gchar *value); gint lua_class_tostring (lua_State *L); /** + * Check whether the argument at specified index is of the specified class + */ +gpointer lua_check_class (lua_State *L, gint index, const gchar *name); + +/** * Open libraries functions */ gint luaopen_message (lua_State *L); @@ -71,11 +76,8 @@ 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); +gint luaopen_dns_resolver (lua_State * L); -void init_lua (struct config_file *cfg); -gboolean init_lua_filters (struct config_file *cfg); - -/* Filters functions */ gint lua_call_filter (const gchar *function, struct worker_task *task); gint lua_call_chain_filter (const gchar *function, struct worker_task *task, gint *marks, guint number); double lua_consolidation_func (struct worker_task *task, const gchar *metric_name, const gchar *function_name); |