summaryrefslogtreecommitdiffstats
path: root/src/cfg_file.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-04-06 19:55:11 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-04-06 19:55:11 +0400
commit4405a019f681fcb51ce0e53b477ed64d50740138 (patch)
tree1717f2091849f9231447c5c6492f9b77361488bf /src/cfg_file.h
parent42baae32bc212e9287e11afa685e2de77cdf48e4 (diff)
downloadrspamd-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/cfg_file.h')
-rw-r--r--src/cfg_file.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/cfg_file.h b/src/cfg_file.h
index 225a940ac..17f81b3a6 100644
--- a/src/cfg_file.h
+++ b/src/cfg_file.h
@@ -103,6 +103,16 @@ struct script_module {
};
/**
+ * Type of lua variable
+ */
+enum lua_var_type {
+ LUA_VAR_NUM,
+ LUA_VAR_BOOLEAN,
+ LUA_VAR_STRING,
+ LUA_VAR_FUNCTION,
+ LUA_VAR_UNKNOWN
+};
+/**
* Module option
*/
struct module_opt {
@@ -110,13 +120,7 @@ struct module_opt {
gchar *value; /**< paramater value */
gpointer actual_data; /**< parsed data */
gboolean is_lua; /**< actually this is lua variable */
- enum {
- LUA_VAR_NUM,
- LUA_VAR_BOOLEAN,
- LUA_VAR_STRING,
- LUA_VAR_FUNCTION,
- LUA_VAR_UNKNOWN
- } lua_type; /**< type of lua variable */
+ enum lua_var_type lua_type; /**< type of lua variable */
};
/**