aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_common.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-06-14 15:49:37 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-06-14 15:49:37 +0100
commit2b0629a969e492e6cb957edaafddf5160d7b46d2 (patch)
tree640879b2d888cd3ccadf875855833c3ee54fa4c3 /src/lua/lua_common.h
parentb346120d244ee4761bb0b0838ae00264376b97e9 (diff)
downloadrspamd-2b0629a969e492e6cb957edaafddf5160d7b46d2.tar.gz
rspamd-2b0629a969e492e6cb957edaafddf5160d7b46d2.zip
Support metaoptions in lua configuration.
Diffstat (limited to 'src/lua/lua_common.h')
-rw-r--r--src/lua/lua_common.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h
index d7a8d18f1..d03fba0ce 100644
--- a/src/lua/lua_common.h
+++ b/src/lua/lua_common.h
@@ -68,6 +68,11 @@ void lua_setclass (lua_State *L, const gchar *classname, gint objidx);
void lua_set_table_index (lua_State *L, const gchar *index, const gchar *value);
/**
+ * Get string value of index in a table (return t['index'])
+ */
+const gchar * lua_get_table_index_str (lua_State *L, const gchar *index);
+
+/**
* Convert classname to string
*/
gint lua_class_tostring (lua_State *L);
@@ -140,7 +145,8 @@ double lua_normalizer_func (struct config_file *cfg, long double score, void *pa
/* Config file functions */
void lua_post_load_config (struct config_file *cfg);
-void lua_process_element (struct config_file *cfg, const gchar *name, struct module_opt *opt, gint idx);
+void lua_process_element (struct config_file *cfg, const gchar *name,
+ const gchar *module_name, struct module_opt *opt, gint idx, gboolean allow_meta);
gboolean lua_handle_param (struct worker_task *task, gchar *mname, gchar *optname,
enum lua_var_type expected_type, gpointer *res);
gboolean lua_check_condition (struct config_file *cfg, const gchar *condition);