diff options
author | Edward Rudd <urkle@outoforder.cc> | 2008-10-25 16:44:17 (GMT) |
---|---|---|
committer | Edward Rudd <urkle@outoforder.cc> | 2008-10-25 16:44:17 (GMT) |
commit | 19e09e15d96fa891d18fd07bb0f751faa0a7fc7a (patch) | |
tree | 77da4c55a5c91713184a1344cca6270ae8fd0afe /utility/logparse.h | |
parent | caae8dcfed1462cb19c82f99087e6fe2ba3d407c (diff) |
implement query arg extracter
"merge in" ap_unescape_url from HTTPD
updated logging statements
add per-line func data and per-func data
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 | ||