From 2b0629a969e492e6cb957edaafddf5160d7b46d2 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 14 Jun 2013 15:49:37 +0100 Subject: Support metaoptions in lua configuration. --- 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 d7a8d18f1..d03fba0ce 100644 --- a/src/lua/lua_common.h +++ b/src/lua/lua_common.h @@ -67,6 +67,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 */ @@ -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); -- cgit v1.2.3