diff options
Diffstat (limited to 'utility/logparse.h')
-rw-r--r-- | utility/logparse.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/utility/logparse.h b/utility/logparse.h index 816624a..bc39cb1 100644 --- a/utility/logparse.h +++ b/utility/logparse.h | |||
@@ -3,10 +3,21 @@ | |||
3 | 3 | ||
4 | #include "config.h" | 4 | #include "config.h" |
5 | 5 | ||
6 | typedef apr_status_t (*parser_func_t)(apr_pool_t *p, config_t *cfg, | 6 | typedef apr_status_t (*parser_func_f)(apr_pool_t *p, config_t *cfg, |
7 | config_output_field_t *field, const char *value, const char **ret); | 7 | config_output_field_t *field, const char *value, const char **ret); |
8 | 8 | ||
9 | parser_func_t parser_get_func(const char *name); | 9 | struct parser_func_t { |
10 | parser_func_f func; | ||
11 | int pos; | ||
12 | void *data; | ||
13 | void ***linedata; | ||
14 | }; | ||
15 | |||
16 | #define parser_get_linedata(f) (*f->linedata)[f->pos] | ||
17 | |||
18 | #define parser_set_linedata(f, v) (*f->linedata)[f->pos] = v | ||
19 | |||
20 | parser_func_t *parser_get_func(const char *name); | ||
10 | 21 | ||
11 | void parser_init(apr_pool_t *p); | 22 | void parser_init(apr_pool_t *p); |
12 | 23 | ||