summaryrefslogtreecommitdiffstats
path: root/src/cfg_file.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-04-05 21:09:40 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-04-05 21:09:40 +0400
commit42baae32bc212e9287e11afa685e2de77cdf48e4 (patch)
tree1bf9ad6eeb94a0bf40e8d60ed1a0777aa23aa69d /src/cfg_file.h
parent6be82def714f297d54302953286223b4afb07208 (diff)
downloadrspamd-42baae32bc212e9287e11afa685e2de77cdf48e4.tar.gz
rspamd-42baae32bc212e9287e11afa685e2de77cdf48e4.zip
* Add initial version of lua configuration system
Diffstat (limited to 'src/cfg_file.h')
-rw-r--r--src/cfg_file.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/cfg_file.h b/src/cfg_file.h
index 3ec7391e4..225a940ac 100644
--- a/src/cfg_file.h
+++ b/src/cfg_file.h
@@ -98,8 +98,8 @@ struct memcached_server {
* script module list item
*/
struct script_module {
- gchar *name; /**< name of module */
- gchar *path; /**< path to module */
+ gchar *name; /**< name of module */
+ gchar *path; /**< path to module */
};
/**
@@ -108,6 +108,15 @@ struct script_module {
struct module_opt {
gchar *param; /**< parameter name */
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 */
};
/**
@@ -278,6 +287,7 @@ struct config_file {
gchar* checksum; /**< real checksum of config file */
gchar* dump_checksum; /**< dump checksum of config file */
+ gpointer lua_state; /**< pointer to lua state */
};
/**