diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-04-06 19:55:11 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-04-06 19:55:11 +0400 |
commit | 4405a019f681fcb51ce0e53b477ed64d50740138 (patch) | |
tree | 1717f2091849f9231447c5c6492f9b77361488bf /src/lua/lua_common.h | |
parent | 42baae32bc212e9287e11afa685e2de77cdf48e4 (diff) | |
download | rspamd-4405a019f681fcb51ce0e53b477ed64d50740138.tar.gz rspamd-4405a019f681fcb51ce0e53b477ed64d50740138.zip |
* Add lua functions parsing for module options
* Add missing sections to XML parser (classifier, statfile, view, settings)
* Add missing params to XML parser
* Implement new commandline options parser (using glib)
* Set version to 0.3.0 as new rspamd would use new config system
Diffstat (limited to 'src/lua/lua_common.h')
-rw-r--r-- | src/lua/lua_common.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h index 5de7bdc71..4c8ff2585 100644 --- a/src/lua/lua_common.h +++ b/src/lua/lua_common.h @@ -30,7 +30,7 @@ int luaopen_hash_table (lua_State *L); int luaopen_textpart (lua_State *L); int luaopen_classifier (lua_State *L); int luaopen_statfile (lua_State * L); -void init_lua (); +void init_lua (struct config_file *cfg); void init_lua_filters (struct config_file *cfg); /* Filters functions */ @@ -48,6 +48,8 @@ double lua_normalizer_func (double score, void *params); /* Config file functions */ void lua_post_load_config (struct config_file *cfg); void lua_process_element (struct config_file *cfg, const char *name, struct module_opt *opt, int idx); +gboolean lua_handle_param (struct worker_task *task, gchar *mname, gchar *optname, + enum lua_var_type expected_type, gpointer *res); #endif /* WITH_LUA */ |