diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-01-16 20:59:37 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-01-16 20:59:37 +0400 |
commit | 9bacf0d835d66aaddcdb9e664a34364f25ed2554 (patch) | |
tree | 8aa7287724a3abce1b6b63dc7215e101d44eb87d /src/cfg_file.h | |
parent | 9f2cb66ccbce8cd0fb659b79063bcebf1d816a1d (diff) | |
download | rspamd-9bacf0d835d66aaddcdb9e664a34364f25ed2554.tar.gz rspamd-9bacf0d835d66aaddcdb9e664a34364f25ed2554.zip |
* Introduce new system of worker's and modules initialization:
- Removed legacy limitation of worker's types;
- Using GQuarks to identify workers and modules;
- Remove modules.sh script;
- Add a common system of workers and modules;
- Write management and configuration for new architecture.
Diffstat (limited to 'src/cfg_file.h')
-rw-r--r-- | src/cfg_file.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cfg_file.h b/src/cfg_file.h index 797f32837..b90171426 100644 --- a/src/cfg_file.h +++ b/src/cfg_file.h @@ -224,7 +224,8 @@ struct config_scalar { * Config params for rspamd worker */ struct worker_conf { - gint type; /**< worker type */ + worker_t *worker; /**< pointer to worker type */ + GQuark type; /**< type of worker */ gchar *bind_host; /**< bind line */ struct in_addr bind_addr; /**< bind address in case of TCP socket */ guint16 bind_port; /**< bind port in case of TCP socket */ @@ -299,7 +300,6 @@ struct config_file { GList *filters; /**< linked list of all filters */ GList *workers; /**< linked list of all workers params */ gchar *filters_str; /**< string of filters */ - guint modules_num; GHashTable* modules_opts; /**< hash for module options indexed by module name */ GHashTable* variables; /**< hash of $variables defined in config, indexed by variable name */ GHashTable* metrics; /**< hash of metrics indexed by metric name */ |