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/plugins/spf.c | |
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/plugins/spf.c')
-rw-r--r-- | src/plugins/spf.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/plugins/spf.c b/src/plugins/spf.c index 12ec80e67..093c57703 100644 --- a/src/plugins/spf.c +++ b/src/plugins/spf.c @@ -67,6 +67,18 @@ static void spf_symbol_callback (struct worker_task *task, voi static GList * spf_record_copy (GList *addrs); static void spf_record_destroy (gpointer list); +/* Initialization */ +gint spf_module_init (struct config_file *cfg, struct module_ctx **ctx); +gint spf_module_config (struct config_file *cfg); +gint spf_module_reconfig (struct config_file *cfg); + +module_t spf_module = { + "spf", + spf_module_init, + spf_module_config, + spf_module_reconfig +}; + gint spf_module_init (struct config_file *cfg, struct module_ctx **ctx) { |