diff options
Diffstat (limited to 'src/http/ngx_http_script.h')
| -rw-r--r-- | src/http/ngx_http_script.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/http/ngx_http_script.h b/src/http/ngx_http_script.h index 4a745128b..658faaa9b 100644 --- a/src/http/ngx_http_script.h +++ b/src/http/ngx_http_script.h @@ -8,10 +8,18 @@ #define _NGX_HTTP_SCRIPT_H_INCLUDED_ -typedef struct { - handler; - offset / data; - size; +#include <ngx_config.h> +#include <ngx_core.h> +#include <ngx_http.h> + + +typedef u_char *(*ngx_http_script_code_pt) (ngx_http_request_t *r, + u_char *buf, void *data); + +typedef struct ngx_http_script_code_s { + size_t data_len; + size_t code_len; + ngx_http_script_code_pt code; } ngx_http_script_code_t; |
