diff options
| author | Roman Arutyunyan <arut@nginx.com> | 2016-09-15 14:55:46 +0300 |
|---|---|---|
| committer | Roman Arutyunyan <arut@nginx.com> | 2016-09-15 14:55:46 +0300 |
| commit | 04b9434b1817def37eb55cd7f4360d1164678797 (patch) | |
| tree | c0b609612ea98be3291822b4685d5cda6f4ea8d7 /src/stream/ngx_stream.h | |
| parent | afa771140bcf677505adcc6517008a9f9108c878 (diff) | |
| download | nginx-04b9434b1817def37eb55cd7f4360d1164678797.tar.gz nginx-04b9434b1817def37eb55cd7f4360d1164678797.tar.bz2 | |
Stream: filters.
Diffstat (limited to 'src/stream/ngx_stream.h')
| -rw-r--r-- | src/stream/ngx_stream.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/stream/ngx_stream.h b/src/stream/ngx_stream.h index 6251cc72a..a76c182c0 100644 --- a/src/stream/ngx_stream.h +++ b/src/stream/ngx_stream.h @@ -243,6 +243,9 @@ typedef struct { NULL) +#define NGX_STREAM_WRITE_BUFFERED 0x10 + + void ngx_stream_init_connection(ngx_connection_t *c); void ngx_stream_finalize_session(ngx_stream_session_t *s, ngx_uint_t rc); @@ -252,4 +255,11 @@ extern ngx_uint_t ngx_stream_max_module; extern ngx_module_t ngx_stream_core_module; +typedef ngx_int_t (*ngx_stream_filter_pt)(ngx_stream_session_t *s, + ngx_chain_t *chain, ngx_uint_t from_upstream); + + +extern ngx_stream_filter_pt ngx_stream_top_filter; + + #endif /* _NGX_STREAM_H_INCLUDED_ */ |
