Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ngx_http_ssi_filter_module.h
Go to the documentation of this file.
1 
2 /*
3  * Copyright (C) Igor Sysoev
4  * Copyright (C) Nginx, Inc.
5  */
6 
7 
8 #ifndef _NGX_HTTP_SSI_FILTER_H_INCLUDED_
9 #define _NGX_HTTP_SSI_FILTER_H_INCLUDED_
10 
11 
12 #include <ngx_config.h>
13 #include <ngx_core.h>
14 #include <ngx_http.h>
15 
16 
17 #define NGX_HTTP_SSI_MAX_PARAMS 16
18 
19 #define NGX_HTTP_SSI_COMMAND_LEN 32
20 #define NGX_HTTP_SSI_PARAM_LEN 32
21 #define NGX_HTTP_SSI_PARAMS_N 4
22 
23 
24 #define NGX_HTTP_SSI_COND_IF 1
25 #define NGX_HTTP_SSI_COND_ELSE 2
26 
27 
28 #define NGX_HTTP_SSI_NO_ENCODING 0
29 #define NGX_HTTP_SSI_URL_ENCODING 1
30 #define NGX_HTTP_SSI_ENTITY_ENCODING 2
31 
32 
33 typedef struct {
37 
38 
39 typedef struct {
41 
42  u_char *pos;
43  u_char *copy_start;
44  u_char *copy_end;
45 
51 
57 
60  size_t saved;
61  size_t looked;
62 
63  size_t value_len;
64 
67 
68 #if (NGX_PCRE)
69  ngx_uint_t ncaptures;
70  int *captures;
71  u_char *captures_data;
72 #endif
73 
74  unsigned conditional:2;
75  unsigned encoding:2;
76  unsigned block:1;
77  unsigned output:1;
78  unsigned output_chosen:1;
79 
81  void *value_buf;
85 
86 
88  ngx_http_ssi_ctx_t *ctx, ngx_str_t **);
89 
90 
91 typedef struct {
94 
95  unsigned mandatory:1;
96  unsigned multiple:1;
98 
99 
100 typedef struct {
104 
105  unsigned conditional:2;
106  unsigned block:1;
107  unsigned flush:1;
109 
110 
112 
113 
114 #endif /* _NGX_HTTP_SSI_FILTER_H_INCLUDED_ */