diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-07-20 19:35:07 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-07-20 19:35:07 +0400 |
commit | 5c9372c4a8678c6856360891180b02c2fdf688ee (patch) | |
tree | bc67f5cb057c4784c67e691f76aa8a8f80a40e51 /src/cfg_file.h | |
parent | 9bc06fea2eac12cc46028fcdd630d291a76b68ae (diff) | |
download | rspamd-5c9372c4a8678c6856360891180b02c2fdf688ee.tar.gz rspamd-5c9372c4a8678c6856360891180b02c2fdf688ee.zip |
* Add start script for red hat compatible systems
Add descriptions for some rspamd API functions (no functional changes).
--HG--
rename : linux/rspamd => linux/rspamd_debian.in
Diffstat (limited to 'src/cfg_file.h')
-rw-r--r-- | src/cfg_file.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/cfg_file.h b/src/cfg_file.h index 6a4abb9b8..f58c228c7 100644 --- a/src/cfg_file.h +++ b/src/cfg_file.h @@ -423,17 +423,56 @@ gboolean get_config_checksum (struct config_file *cfg); */ void unescape_quotes (gchar *line); +/* + * Convert comma separated string to a list of strings + */ GList* parse_comma_list (memory_pool_t *pool, gchar *line); + +/* + * Return a new classifier_config structure, setting default and non-conflicting attributes + */ struct classifier_config* check_classifier_conf (struct config_file *cfg, struct classifier_config *c); +/* + * Return a new worker_conf structure, setting default and non-conflicting attributes + */ struct worker_conf* check_worker_conf (struct config_file *cfg, struct worker_conf *c); +/* + * Return a new metric structure, setting default and non-conflicting attributes + */ struct metric* check_metric_conf (struct config_file *cfg, struct metric *c); +/* + * Return a new statfile structure, setting default and non-conflicting attributes + */ struct statfile* check_statfile_conf (struct config_file *cfg, struct statfile *c); + +/* + * XXX: Depreciated function, now it is used for + */ gboolean parse_normalizer (struct config_file *cfg, struct statfile *st, const gchar *line); + +/* + * Read XML configuration file + */ gboolean read_xml_config (struct config_file *cfg, const gchar *filename); + +/* + * Check modules configuration for semantic validity + */ gboolean check_modules_config (struct config_file *cfg); + +/* + * Register symbols of classifiers inside metrics + */ void insert_classifier_symbols (struct config_file *cfg); + +/* + * Check statfiles inside a classifier + */ gboolean check_classifier_statfiles (struct classifier_config *cf); +/* + * Find classifier config by name + */ struct classifier_config* find_classifier_conf (struct config_file *cfg, const gchar *name); #endif /* ifdef CFG_FILE_H */ |