~ubuntu-branches/ubuntu/trusty/nginx/trusty-proposed

« back to all changes in this revision

Viewing changes to src/core/ngx_conf_file.h

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry
  • Date: 2013-04-25 12:51:45 UTC
  • mfrom: (1.3.28)
  • mto: (1.3.29) (15.1.2 experimental)
  • mto: This revision was merged to the branch mainline in revision 64.
  • Revision ID: package-import@ubuntu.com-20130425125145-ugl0wor6bq0u5eae
Tags: upstream-1.4.0
ImportĀ upstreamĀ versionĀ 1.4.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
/*
3
3
 * Copyright (C) Igor Sysoev
 
4
 * Copyright (C) Nginx, Inc.
4
5
 */
5
6
 
6
7
 
13
14
 
14
15
 
15
16
/*
16
 
 *        AAAA  number of agruments
 
17
 *        AAAA  number of arguments
17
18
 *      FF      command flags
18
19
 *    TT        command type, i.e. HTTP "location" or "server" command
19
20
 */
44
45
#define NGX_CONF_ANY         0x00000400
45
46
#define NGX_CONF_1MORE       0x00000800
46
47
#define NGX_CONF_2MORE       0x00001000
47
 
#define NGX_CONF_MULTI       0x00002000
 
48
#define NGX_CONF_MULTI       0x00000000  /* compatibility */
48
49
 
49
50
#define NGX_DIRECT_CONF      0x00010000
50
51
 
71
72
#define NGX_CONF_MODULE      0x464E4F43  /* "CONF" */
72
73
 
73
74
 
74
 
#define NGX_MAX_CONF_ERRSTR  256
 
75
#define NGX_MAX_CONF_ERRSTR  1024
75
76
 
76
77
 
77
78
struct ngx_command_s {
90
91
    ngx_fd_t              fd;
91
92
    ngx_str_t             name;
92
93
 
93
 
    u_char               *buffer;
94
 
    u_char               *pos;
95
 
    u_char               *last;
96
 
 
97
 
#if 0
98
 
    /* e.g. append mode, error_log */
99
 
    ngx_uint_t            flags;
100
 
    /* e.g. reopen db file */
101
 
    ngx_uint_t          (*handler)(void *data, ngx_open_file_t *file);
 
94
    void                (*flush)(ngx_open_file_t *file, ngx_log_t *log);
102
95
    void                 *data;
103
 
#endif
104
96
};
105
97
 
106
98
 
314
306
    }
315
307
 
316
308
 
317
 
#define addressof(addr)  ((int) &addr)
318
 
 
319
 
 
 
309
char *ngx_conf_param(ngx_conf_t *cf);
320
310
char *ngx_conf_parse(ngx_conf_t *cf, ngx_str_t *filename);
 
311
char *ngx_conf_include(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
321
312
 
322
313
 
323
314
ngx_int_t ngx_conf_full_name(ngx_cycle_t *cycle, ngx_str_t *name,
324
315
    ngx_uint_t conf_prefix);
325
316
ngx_open_file_t *ngx_conf_open_file(ngx_cycle_t *cycle, ngx_str_t *name);
326
317
void ngx_cdecl ngx_conf_log_error(ngx_uint_t level, ngx_conf_t *cf,
327
 
    ngx_err_t err, char *fmt, ...);
 
318
    ngx_err_t err, const char *fmt, ...);
328
319
 
329
320
 
330
321
char *ngx_conf_set_flag_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);