nginx/src/core/ngx_conf_file.h


/*
 * Copyright (C) Igor Sysoev
 * Copyright (C) Nginx, Inc.
 */


#ifndef _NGX_CONF_FILE_H_INCLUDED_
#define _NGX_CONF_FILE_H_INCLUDED_


#include <ngx_config.h>
#include <ngx_core.h>


/*
 *        AAAA  number of arguments
 *      FF      command flags
 *    TT        command type, i.e. HTTP "location" or "server" command
 */

#define NGX_CONF_NOARGS
#define NGX_CONF_TAKE1
#define NGX_CONF_TAKE2
#define NGX_CONF_TAKE3
#define NGX_CONF_TAKE4
#define NGX_CONF_TAKE5
#define NGX_CONF_TAKE6
#define NGX_CONF_TAKE7

#define NGX_CONF_MAX_ARGS

#define NGX_CONF_TAKE12
#define NGX_CONF_TAKE13

#define NGX_CONF_TAKE23

#define NGX_CONF_TAKE123
#define NGX_CONF_TAKE1234

#define NGX_CONF_ARGS_NUMBER
#define NGX_CONF_BLOCK
#define NGX_CONF_FLAG
#define NGX_CONF_ANY
#define NGX_CONF_1MORE
#define NGX_CONF_2MORE

#define NGX_DIRECT_CONF

#define NGX_MAIN_CONF
#define NGX_ANY_CONF



#define NGX_CONF_UNSET
#define NGX_CONF_UNSET_UINT
#define NGX_CONF_UNSET_PTR
#define NGX_CONF_UNSET_SIZE
#define NGX_CONF_UNSET_MSEC


#define NGX_CONF_OK
#define NGX_CONF_ERROR

#define NGX_CONF_BLOCK_START
#define NGX_CONF_BLOCK_DONE
#define NGX_CONF_FILE_DONE

#define NGX_CORE_MODULE
#define NGX_CONF_MODULE


#define NGX_MAX_CONF_ERRSTR


struct ngx_command_s {};

#define ngx_null_command


struct ngx_open_file_s {};


ngx_conf_file_t;


ngx_conf_dump_t;


ngx_conf_handler_pt;


struct ngx_conf_s {};


ngx_conf_post_handler_pt;

ngx_conf_post_t;


ngx_conf_deprecated_t;


ngx_conf_num_bounds_t;


ngx_conf_enum_t;


#define NGX_CONF_BITMASK_SET

ngx_conf_bitmask_t;



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);


#define ngx_get_conf(conf_ctx, module)



#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)


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_t *ngx_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);


#endif /* _NGX_CONF_FILE_H_INCLUDED_ */