Mercurial > hg > nginx-quic
annotate src/http/modules/ngx_http_ssi_filter_module.h @ 1331:adb6d251ac92 stable-0.5
r1330, r1331 merge:
$nginx_version
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 22 Jul 2007 13:17:41 +0000 |
parents | 4ab852b691f5 |
children | 2d8fab47dd89 |
rev | line source |
---|---|
597 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #ifndef _NGX_HTTP_SSI_FILTER_H_INCLUDED_ | |
8 #define _NGX_HTTP_SSI_FILTER_H_INCLUDED_ | |
9 | |
10 | |
11 #include <ngx_config.h> | |
12 #include <ngx_core.h> | |
13 #include <ngx_http.h> | |
14 | |
15 | |
16 #define NGX_HTTP_SSI_MAX_PARAMS 16 | |
17 | |
609 | 18 #define NGX_HTTP_SSI_COMMAND_LEN 32 |
19 #define NGX_HTTP_SSI_PARAM_LEN 32 | |
597 | 20 #define NGX_HTTP_SSI_PARAMS_N 4 |
21 | |
22 | |
629 | 23 #define NGX_HTTP_SSI_COND_IF 1 |
24 #define NGX_HTTP_SSI_COND_ELSE 2 | |
25 | |
26 | |
597 | 27 typedef struct { |
28 ngx_hash_t hash; | |
29 ngx_hash_keys_arrays_t commands; | |
30 } ngx_http_ssi_main_conf_t; | |
31 | |
32 | |
33 typedef struct { | |
34 ngx_buf_t *buf; | |
35 | |
36 u_char *pos; | |
37 u_char *copy_start; | |
38 u_char *copy_end; | |
39 | |
40 ngx_uint_t key; | |
41 ngx_str_t command; | |
42 ngx_array_t params; | |
43 ngx_table_elt_t *param; | |
44 ngx_table_elt_t params_array[NGX_HTTP_SSI_PARAMS_N]; | |
45 | |
46 ngx_chain_t *in; | |
47 ngx_chain_t *out; | |
48 ngx_chain_t **last_out; | |
49 ngx_chain_t *busy; | |
50 ngx_chain_t *free; | |
51 | |
52 ngx_uint_t state; | |
53 ngx_uint_t saved_state; | |
54 size_t saved; | |
55 size_t looked; | |
56 | |
57 size_t value_len; | |
58 | |
777
4ab852b691f5
<!--#include virtual=... set=... -->
Igor Sysoev <igor@sysoev.ru>
parents:
758
diff
changeset
|
59 ngx_list_t *variables; |
667 | 60 ngx_array_t *blocks; |
597 | 61 |
629 | 62 unsigned conditional:2; |
667 | 63 unsigned block:1; |
629 | 64 unsigned output:1; |
65 unsigned output_chosen:1; | |
597 | 66 |
758
86bb73dc8d40
fix <!--#include virtual=... wait="yes" -->
Igor Sysoev <igor@sysoev.ru>
parents:
667
diff
changeset
|
67 ngx_http_request_t *wait; |
609 | 68 void *value_buf; |
597 | 69 ngx_str_t timefmt; |
70 ngx_str_t errmsg; | |
71 } ngx_http_ssi_ctx_t; | |
72 | |
73 | |
74 typedef ngx_int_t (*ngx_http_ssi_command_pt) (ngx_http_request_t *r, | |
75 ngx_http_ssi_ctx_t *ctx, ngx_str_t **); | |
76 | |
77 | |
78 typedef struct { | |
79 ngx_str_t name; | |
80 ngx_uint_t index; | |
81 | |
82 unsigned mandatory:1; | |
83 unsigned multiple:1; | |
84 } ngx_http_ssi_param_t; | |
85 | |
86 | |
87 typedef struct { | |
88 ngx_str_t name; | |
89 ngx_http_ssi_command_pt handler; | |
90 ngx_http_ssi_param_t *params; | |
91 | |
629 | 92 unsigned conditional:2; |
667 | 93 unsigned block:1; |
597 | 94 unsigned flush:1; |
95 } ngx_http_ssi_command_t; | |
96 | |
97 | |
98 extern ngx_module_t ngx_http_ssi_filter_module; | |
99 | |
100 | |
101 #endif /* _NGX_HTTP_SSI_FILTER_H_INCLUDED_ */ |