diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-13 14:11:31 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-13 14:11:31 +0300 |
commit | 89f264624c1c846c995c22a8390b7e79f09ef960 (patch) | |
tree | c3a22a993c411510030930e88fff5b86890d5e24 /src/statfile.h | |
parent | 9a0362647374be48a29887d0571b8a665877be6b (diff) | |
download | rspamd-89f264624c1c846c995c22a8390b7e79f09ef960.tar.gz rspamd-89f264624c1c846c995c22a8390b7e79f09ef960.zip |
* Add ability to configure sections in statfiles
* Add ability to define variables in modules blocks
* Add symbolic aliases for statfile sections
Diffstat (limited to 'src/statfile.h')
-rw-r--r-- | src/statfile.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/statfile.h b/src/statfile.h index 38ec9d13f..ee89acda9 100644 --- a/src/statfile.h +++ b/src/statfile.h @@ -14,6 +14,8 @@ /* Section types */ #define STATFILE_SECTION_COMMON 1 +#define STATFILE_SECTION_HEADERS 2 +#define STATFILE_SECTION_URLS 3 /** * Common statfile header @@ -190,4 +192,12 @@ gboolean statfile_pool_set_section (statfile_pool_t *pool, char *filename, uint3 */ gboolean statfile_pool_add_section (statfile_pool_t *pool, char *filename, uint32_t code, uint64_t length); + +/** + * Return code of section identified by name + * @param name name of section + * @return code of section or 0 if name of section is unknown + */ +uint32_t statfile_get_section_by_name (const char *name); + #endif |