Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Typedefs | Functions | Variables
ngx_conf_file.h File Reference
#include <ngx_config.h>
#include <ngx_core.h>
Include dependency graph for ngx_conf_file.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ngx_command_s
struct  ngx_open_file_s
struct  ngx_module_s
struct  ngx_core_module_t
struct  ngx_conf_file_t
struct  ngx_conf_s
struct  ngx_conf_post_t
struct  ngx_conf_deprecated_t
struct  ngx_conf_num_bounds_t
struct  ngx_conf_enum_t
struct  ngx_conf_bitmask_t

Macros

#define NGX_CONF_NOARGS   0x00000001
#define NGX_CONF_TAKE1   0x00000002
#define NGX_CONF_TAKE2   0x00000004
#define NGX_CONF_TAKE3   0x00000008
#define NGX_CONF_TAKE4   0x00000010
#define NGX_CONF_TAKE5   0x00000020
#define NGX_CONF_TAKE6   0x00000040
#define NGX_CONF_TAKE7   0x00000080
#define NGX_CONF_MAX_ARGS   8
#define NGX_CONF_TAKE12   (NGX_CONF_TAKE1|NGX_CONF_TAKE2)
#define NGX_CONF_TAKE13   (NGX_CONF_TAKE1|NGX_CONF_TAKE3)
#define NGX_CONF_TAKE23   (NGX_CONF_TAKE2|NGX_CONF_TAKE3)
#define NGX_CONF_TAKE123   (NGX_CONF_TAKE1|NGX_CONF_TAKE2|NGX_CONF_TAKE3)
#define NGX_CONF_TAKE1234
#define NGX_CONF_ARGS_NUMBER   0x000000ff
#define NGX_CONF_BLOCK   0x00000100
#define NGX_CONF_FLAG   0x00000200
#define NGX_CONF_ANY   0x00000400
#define NGX_CONF_1MORE   0x00000800
#define NGX_CONF_2MORE   0x00001000
#define NGX_CONF_MULTI   0x00000000 /* compatibility */
#define NGX_DIRECT_CONF   0x00010000
#define NGX_MAIN_CONF   0x01000000
#define NGX_ANY_CONF   0x0F000000
#define NGX_CONF_UNSET   -1
#define NGX_CONF_UNSET_UINT   (ngx_uint_t) -1
#define NGX_CONF_UNSET_PTR   (void *) -1
#define NGX_CONF_UNSET_SIZE   (size_t) -1
#define NGX_CONF_UNSET_MSEC   (ngx_msec_t) -1
#define NGX_CONF_OK   NULL
#define NGX_CONF_ERROR   (void *) -1
#define NGX_CONF_BLOCK_START   1
#define NGX_CONF_BLOCK_DONE   2
#define NGX_CONF_FILE_DONE   3
#define NGX_CORE_MODULE   0x45524F43 /* "CORE" */
#define NGX_CONF_MODULE   0x464E4F43 /* "CONF" */
#define NGX_MAX_CONF_ERRSTR   1024
#define ngx_null_command   { ngx_null_string, 0, NULL, 0, 0, NULL }
#define NGX_MODULE_V1   0, 0, 0, 0, 0, 0, 1
#define NGX_MODULE_V1_PADDING   0, 0, 0, 0, 0, 0, 0, 0
#define NGX_CONF_BITMASK_SET   1
#define ngx_get_conf(conf_ctx, module)   conf_ctx[module.index]
#define ngx_conf_init_value(conf, default)
#define ngx_conf_init_ptr_value(conf, default)
#define ngx_conf_init_uint_value(conf, default)
#define ngx_conf_init_size_value(conf, default)
#define ngx_conf_init_msec_value(conf, default)
#define ngx_conf_merge_value(conf, prev, default)
#define ngx_conf_merge_ptr_value(conf, prev, default)
#define ngx_conf_merge_uint_value(conf, prev, default)
#define ngx_conf_merge_msec_value(conf, prev, default)
#define ngx_conf_merge_sec_value(conf, prev, default)
#define ngx_conf_merge_size_value(conf, prev, default)
#define ngx_conf_merge_off_value(conf, prev, default)
#define ngx_conf_merge_str_value(conf, prev, default)
#define ngx_conf_merge_bufs_value(conf, prev, default_num, default_size)
#define ngx_conf_merge_bitmask_value(conf, prev, default)

Typedefs

typedef char *(* ngx_conf_handler_pt )(ngx_conf_t *cf, ngx_command_t *dummy, void *conf)
typedef char *(* ngx_conf_post_handler_pt )(ngx_conf_t *cf, void *data, void *conf)

Functions

char * ngx_conf_deprecated (ngx_conf_t *cf, void *post, void *data)
char * ngx_conf_check_num_bounds (ngx_conf_t *cf, void *post, void *data)
char * ngx_conf_param (ngx_conf_t *cf)
char * ngx_conf_parse (ngx_conf_t *cf, ngx_str_t *filename)
char * ngx_conf_include (ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
ngx_int_t ngx_conf_full_name (ngx_cycle_t *cycle, ngx_str_t *name, ngx_uint_t conf_prefix)
ngx_open_file_tngx_conf_open_file (ngx_cycle_t *cycle, ngx_str_t *name)
void ngx_cdecl ngx_conf_log_error (ngx_uint_t level, ngx_conf_t *cf, ngx_err_t err, const char *fmt,...)
char * ngx_conf_set_flag_slot (ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
char * ngx_conf_set_str_slot (ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
char * ngx_conf_set_str_array_slot (ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
char * ngx_conf_set_keyval_slot (ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
char * ngx_conf_set_num_slot (ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
char * ngx_conf_set_size_slot (ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
char * ngx_conf_set_off_slot (ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
char * ngx_conf_set_msec_slot (ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
char * ngx_conf_set_sec_slot (ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
char * ngx_conf_set_bufs_slot (ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
char * ngx_conf_set_enum_slot (ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
char * ngx_conf_set_bitmask_slot (ngx_conf_t *cf, ngx_command_t *cmd, void *conf)

Variables

ngx_uint_t ngx_max_module
ngx_module_tngx_modules []

Macro Definition Documentation

#define NGX_ANY_CONF   0x0F000000

Definition at line 53 of file ngx_conf_file.h.

#define NGX_CONF_1MORE   0x00000800

Definition at line 46 of file ngx_conf_file.h.

#define NGX_CONF_2MORE   0x00001000

Definition at line 47 of file ngx_conf_file.h.

#define NGX_CONF_ANY   0x00000400

Definition at line 45 of file ngx_conf_file.h.

#define NGX_CONF_ARGS_NUMBER   0x000000ff

Definition at line 42 of file ngx_conf_file.h.

#define NGX_CONF_BITMASK_SET   1

Definition at line 204 of file ngx_conf_file.h.

#define NGX_CONF_BLOCK   0x00000100

Definition at line 43 of file ngx_conf_file.h.

#define NGX_CONF_BLOCK_DONE   2

Definition at line 68 of file ngx_conf_file.h.

#define NGX_CONF_BLOCK_START   1

Definition at line 67 of file ngx_conf_file.h.

#define NGX_CONF_ERROR   (void *) -1

Definition at line 65 of file ngx_conf_file.h.

#define NGX_CONF_FILE_DONE   3

Definition at line 69 of file ngx_conf_file.h.

#define NGX_CONF_FLAG   0x00000200

Definition at line 44 of file ngx_conf_file.h.

#define ngx_conf_init_msec_value (   conf,
  default 
)
Value:
if (conf == NGX_CONF_UNSET_MSEC) { \
conf = default; \
}

Definition at line 241 of file ngx_conf_file.h.

#define ngx_conf_init_ptr_value (   conf,
  default 
)
Value:
if (conf == NGX_CONF_UNSET_PTR) { \
conf = default; \
}

Definition at line 226 of file ngx_conf_file.h.

#define ngx_conf_init_size_value (   conf,
  default 
)
Value:
if (conf == NGX_CONF_UNSET_SIZE) { \
conf = default; \
}

Definition at line 236 of file ngx_conf_file.h.

#define ngx_conf_init_uint_value (   conf,
  default 
)
Value:
if (conf == NGX_CONF_UNSET_UINT) { \
conf = default; \
}

Definition at line 231 of file ngx_conf_file.h.

#define ngx_conf_init_value (   conf,
  default 
)
Value:
if (conf == NGX_CONF_UNSET) { \
conf = default; \
}

Definition at line 221 of file ngx_conf_file.h.

#define NGX_CONF_MAX_ARGS   8

Definition at line 31 of file ngx_conf_file.h.

#define ngx_conf_merge_bitmask_value (   conf,
  prev,
  default 
)
Value:
if (conf == 0) { \
conf = (prev == 0) ? default : prev; \
}

Definition at line 303 of file ngx_conf_file.h.

#define ngx_conf_merge_bufs_value (   conf,
  prev,
  default_num,
  default_size 
)
Value:
if (conf.num == 0) { \
if (prev.num) { \
conf.num = prev.num; \
conf.size = prev.size; \
} else { \
conf.num = default_num; \
conf.size = default_size; \
} \
}

Definition at line 292 of file ngx_conf_file.h.

#define ngx_conf_merge_msec_value (   conf,
  prev,
  default 
)
Value:
if (conf == NGX_CONF_UNSET_MSEC) { \
conf = (prev == NGX_CONF_UNSET_MSEC) ? default : prev; \
}

Definition at line 261 of file ngx_conf_file.h.

#define ngx_conf_merge_off_value (   conf,
  prev,
  default 
)
Value:
if (conf == NGX_CONF_UNSET) { \
conf = (prev == NGX_CONF_UNSET) ? default : prev; \
}

Definition at line 276 of file ngx_conf_file.h.

#define ngx_conf_merge_ptr_value (   conf,
  prev,
  default 
)
Value:
if (conf == NGX_CONF_UNSET_PTR) { \
conf = (prev == NGX_CONF_UNSET_PTR) ? default : prev; \
}

Definition at line 251 of file ngx_conf_file.h.

#define ngx_conf_merge_sec_value (   conf,
  prev,
  default 
)
Value:
if (conf == NGX_CONF_UNSET) { \
conf = (prev == NGX_CONF_UNSET) ? default : prev; \
}

Definition at line 266 of file ngx_conf_file.h.

#define ngx_conf_merge_size_value (   conf,
  prev,
  default 
)
Value:
if (conf == NGX_CONF_UNSET_SIZE) { \
conf = (prev == NGX_CONF_UNSET_SIZE) ? default : prev; \
}

Definition at line 271 of file ngx_conf_file.h.

#define ngx_conf_merge_str_value (   conf,
  prev,
  default 
)
Value:
if (conf.data == NULL) { \
if (prev.data) { \
conf.len = prev.len; \
conf.data = prev.data; \
} else { \
conf.len = sizeof(default) - 1; \
conf.data = (u_char *) default; \
} \
}

Definition at line 281 of file ngx_conf_file.h.

#define ngx_conf_merge_uint_value (   conf,
  prev,
  default 
)
Value:
if (conf == NGX_CONF_UNSET_UINT) { \
conf = (prev == NGX_CONF_UNSET_UINT) ? default : prev; \
}

Definition at line 256 of file ngx_conf_file.h.

#define ngx_conf_merge_value (   conf,
  prev,
  default 
)
Value:
if (conf == NGX_CONF_UNSET) { \
conf = (prev == NGX_CONF_UNSET) ? default : prev; \
}

Definition at line 246 of file ngx_conf_file.h.

#define NGX_CONF_MODULE   0x464E4F43 /* "CONF" */

Definition at line 72 of file ngx_conf_file.h.

#define NGX_CONF_MULTI   0x00000000 /* compatibility */

Definition at line 48 of file ngx_conf_file.h.

#define NGX_CONF_NOARGS   0x00000001

Definition at line 22 of file ngx_conf_file.h.

#define NGX_CONF_OK   NULL

Definition at line 64 of file ngx_conf_file.h.

#define NGX_CONF_TAKE1   0x00000002

Definition at line 23 of file ngx_conf_file.h.

#define NGX_CONF_TAKE12   (NGX_CONF_TAKE1|NGX_CONF_TAKE2)

Definition at line 33 of file ngx_conf_file.h.

#define NGX_CONF_TAKE123   (NGX_CONF_TAKE1|NGX_CONF_TAKE2|NGX_CONF_TAKE3)

Definition at line 38 of file ngx_conf_file.h.

#define NGX_CONF_TAKE1234
#define NGX_CONF_TAKE13   (NGX_CONF_TAKE1|NGX_CONF_TAKE3)

Definition at line 34 of file ngx_conf_file.h.

#define NGX_CONF_TAKE2   0x00000004

Definition at line 24 of file ngx_conf_file.h.

#define NGX_CONF_TAKE23   (NGX_CONF_TAKE2|NGX_CONF_TAKE3)

Definition at line 36 of file ngx_conf_file.h.

#define NGX_CONF_TAKE3   0x00000008

Definition at line 25 of file ngx_conf_file.h.

#define NGX_CONF_TAKE4   0x00000010

Definition at line 26 of file ngx_conf_file.h.

#define NGX_CONF_TAKE5   0x00000020

Definition at line 27 of file ngx_conf_file.h.

#define NGX_CONF_TAKE6   0x00000040

Definition at line 28 of file ngx_conf_file.h.

#define NGX_CONF_TAKE7   0x00000080

Definition at line 29 of file ngx_conf_file.h.

#define NGX_CONF_UNSET   -1

Definition at line 57 of file ngx_conf_file.h.

#define NGX_CONF_UNSET_MSEC   (ngx_msec_t) -1

Definition at line 61 of file ngx_conf_file.h.

#define NGX_CONF_UNSET_PTR   (void *) -1

Definition at line 59 of file ngx_conf_file.h.

#define NGX_CONF_UNSET_SIZE   (size_t) -1

Definition at line 60 of file ngx_conf_file.h.

#define NGX_CONF_UNSET_UINT   (ngx_uint_t) -1

Definition at line 58 of file ngx_conf_file.h.

#define NGX_CORE_MODULE   0x45524F43 /* "CORE" */

Definition at line 71 of file ngx_conf_file.h.

#define NGX_DIRECT_CONF   0x00010000

Definition at line 50 of file ngx_conf_file.h.

#define ngx_get_conf (   conf_ctx,
  module 
)    conf_ctx[module.index]

Definition at line 217 of file ngx_conf_file.h.

#define NGX_MAIN_CONF   0x01000000

Definition at line 52 of file ngx_conf_file.h.

#define NGX_MAX_CONF_ERRSTR   1024

Definition at line 75 of file ngx_conf_file.h.

#define NGX_MODULE_V1   0, 0, 0, 0, 0, 0, 1

Definition at line 99 of file ngx_conf_file.h.

#define NGX_MODULE_V1_PADDING   0, 0, 0, 0, 0, 0, 0, 0

Definition at line 100 of file ngx_conf_file.h.

#define ngx_null_command   { ngx_null_string, 0, NULL, 0, 0, NULL }

Definition at line 87 of file ngx_conf_file.h.

Typedef Documentation

typedef char*(* ngx_conf_handler_pt)(ngx_conf_t *cf, ngx_command_t *dummy, void *conf)

Definition at line 153 of file ngx_conf_file.h.

typedef char*(* ngx_conf_post_handler_pt)(ngx_conf_t *cf, void *data, void *conf)

Definition at line 176 of file ngx_conf_file.h.

Function Documentation

char* ngx_conf_check_num_bounds ( ngx_conf_t cf,
void *  post,
void *  data 
)

Definition at line 1454 of file ngx_conf_file.c.

Here is the call graph for this function:

char* ngx_conf_deprecated ( ngx_conf_t cf,
void *  post,
void *  data 
)

Definition at line 1440 of file ngx_conf_file.c.

Here is the call graph for this function:

ngx_int_t ngx_conf_full_name ( ngx_cycle_t cycle,
ngx_str_t name,
ngx_uint_t  conf_prefix 
)

Definition at line 797 of file ngx_conf_file.c.

Here is the call graph for this function:

Here is the caller graph for this function:

char* ngx_conf_include ( ngx_conf_t cf,
ngx_command_t cmd,
void *  conf 
)

Definition at line 734 of file ngx_conf_file.c.

Here is the call graph for this function:

void ngx_cdecl ngx_conf_log_error ( ngx_uint_t  level,
ngx_conf_t cf,
ngx_err_t  err,
const char *  fmt,
  ... 
)

Definition at line 986 of file ngx_conf_file.c.

Here is the call graph for this function:

Here is the caller graph for this function:

ngx_open_file_t* ngx_conf_open_file ( ngx_cycle_t cycle,
ngx_str_t name 
)

Definition at line 892 of file ngx_conf_file.c.

Here is the call graph for this function:

Here is the caller graph for this function:

char* ngx_conf_param ( ngx_conf_t cf)

Definition at line 63 of file ngx_conf_file.c.

Here is the call graph for this function:

Here is the caller graph for this function:

char* ngx_conf_parse ( ngx_conf_t cf,
ngx_str_t filename 
)

Definition at line 102 of file ngx_conf_file.c.

Here is the call graph for this function:

Here is the caller graph for this function:

char* ngx_conf_set_bitmask_slot ( ngx_conf_t cf,
ngx_command_t cmd,
void *  conf 
)

Definition at line 1383 of file ngx_conf_file.c.

Here is the call graph for this function:

char* ngx_conf_set_bufs_slot ( ngx_conf_t cf,
ngx_command_t cmd,
void *  conf 
)

Definition at line 1316 of file ngx_conf_file.c.

Here is the call graph for this function:

char* ngx_conf_set_enum_slot ( ngx_conf_t cf,
ngx_command_t cmd,
void *  conf 
)

Definition at line 1346 of file ngx_conf_file.c.

Here is the call graph for this function:

char* ngx_conf_set_flag_slot ( ngx_conf_t cf,
ngx_command_t cmd,
void *  conf 
)

Definition at line 1020 of file ngx_conf_file.c.

Here is the call graph for this function:

char* ngx_conf_set_keyval_slot ( ngx_conf_t cf,
ngx_command_t cmd,
void *  conf 
)

Definition at line 1123 of file ngx_conf_file.c.

Here is the call graph for this function:

char* ngx_conf_set_msec_slot ( ngx_conf_t cf,
ngx_command_t cmd,
void *  conf 
)

Definition at line 1254 of file ngx_conf_file.c.

Here is the call graph for this function:

char* ngx_conf_set_num_slot ( ngx_conf_t cf,
ngx_command_t cmd,
void *  conf 
)

Definition at line 1161 of file ngx_conf_file.c.

Here is the call graph for this function:

char* ngx_conf_set_off_slot ( ngx_conf_t cf,
ngx_command_t cmd,
void *  conf 
)

Definition at line 1223 of file ngx_conf_file.c.

Here is the call graph for this function:

char* ngx_conf_set_sec_slot ( ngx_conf_t cf,
ngx_command_t cmd,
void *  conf 
)

Definition at line 1285 of file ngx_conf_file.c.

Here is the call graph for this function:

char* ngx_conf_set_size_slot ( ngx_conf_t cf,
ngx_command_t cmd,
void *  conf 
)

Definition at line 1192 of file ngx_conf_file.c.

Here is the call graph for this function:

char* ngx_conf_set_str_array_slot ( ngx_conf_t cf,
ngx_command_t cmd,
void *  conf 
)

Definition at line 1087 of file ngx_conf_file.c.

Here is the call graph for this function:

char* ngx_conf_set_str_slot ( ngx_conf_t cf,
ngx_command_t cmd,
void *  conf 
)

Definition at line 1060 of file ngx_conf_file.c.

Variable Documentation

ngx_uint_t ngx_max_module

Definition at line 187 of file nginx.c.

ngx_module_t* ngx_modules[]

Definition at line 55 of file ngx_modules.c.