From 5c9372c4a8678c6856360891180b02c2fdf688ee Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 20 Jul 2011 19:35:07 +0400 Subject: * 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 --- src/cfg_file.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'src/cfg_file.h') 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 */ -- cgit v1.2.3