~ubuntu-branches/ubuntu/quantal/nginx/quantal-updates

« back to all changes in this revision

Viewing changes to debian/modules/chunkin-nginx-module/src/ngx_http_chunkin_filter_module.h

  • Committer: Package Import Robot
  • Author(s): Dmitry E. Oboukhov
  • Date: 2011-11-24 14:16:50 UTC
  • mfrom: (4.2.40 sid)
  • Revision ID: package-import@ubuntu.com-20111124141650-4n06eynzekxycf6c
Tags: 1.1.8-2
* debian/modules/chunkin-nginx-module:
  + Reinclude HttpChunkin Module with new upstream version (closes: #638814)
* debian/control:
  + Add myself to uploaders list.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef NGX_HTTP_CHUNKIN_FILTER_MODULE_H
 
2
#define NGX_HTTP_CHUNKIN_FILTER_MODULE_H
 
3
 
 
4
#include <ngx_core.h>
 
5
#include <ngx_http.h>
 
6
#include <nginx.h>
 
7
 
 
8
typedef struct {
 
9
    ngx_flag_t          enabled;
 
10
    ngx_flag_t          keepalive;
 
11
    ngx_uint_t          max_chunks_per_buf;
 
12
 
 
13
} ngx_http_chunkin_conf_t;
 
14
 
 
15
 
 
16
typedef struct {
 
17
    ngx_flag_t          ignore_body /* for output filters only */;
 
18
    int                 parser_state;  /* current state */
 
19
 
 
20
    size_t              chunk_bytes_read;
 
21
    size_t              chunk_size;
 
22
    int                 chunk_size_order;
 
23
 
 
24
    size_t              chunks_total_size;
 
25
    size_t              chunks_written_size;
 
26
    ngx_uint_t          chunks_count;
 
27
 
 
28
    off_t               raw_body_size;
 
29
 
 
30
    ngx_chain_t         *chunks;
 
31
    ngx_chain_t         **next_chunk;
 
32
    ngx_chain_t         *chunk;
 
33
 
 
34
    ngx_flag_t          just_after_preread;
 
35
 
 
36
    ngx_chain_t         *free_bufs;
 
37
    ngx_chain_t         *last_complete_chunk;
 
38
 
 
39
    u_char              *saved_header_in_pos;
 
40
 
 
41
    ngx_uint_t          count;
 
42
    ngx_flag_t          r_discard_body:1;
 
43
 
 
44
    ngx_flag_t          done:1;
 
45
    ngx_flag_t          waiting_more_body:1;
 
46
 
 
47
} ngx_http_chunkin_ctx_t;
 
48
 
 
49
 
 
50
extern ngx_module_t  ngx_http_chunkin_filter_module;
 
51
 
 
52
#endif /* NGX_HTTP_CHUNKIN_FILTER_MODULE_H */
 
53