|
|
| version 1.1.1.1, 2013/10/14 10:32:47 | version 1.1.1.2, 2016/11/02 10:35:00 |
|---|---|
| Line 1 | Line 1 |
| #ifndef _CONFIG_PARSER_H_ | #ifndef _CONFIG_PARSER_H_ |
| #define _CONFIG_PARSER_H_ | #define _CONFIG_PARSER_H_ |
| #include "first.h" | |
| #include "array.h" | #include "array.h" |
| #include "buffer.h" | #include "buffer.h" |
| Line 9 typedef struct { | Line 10 typedef struct { |
| server *srv; | server *srv; |
| int ok; | int ok; |
| array *all_configs; | array *all_configs; |
| array *configs_stack; /* to parse nested block */ | vector_config_weak configs_stack; /* to parse nested block */ |
| data_config *current; /* current started with { */ | data_config *current; /* current started with { */ |
| buffer *basedir; | buffer *basedir; |
| } config_t; | } config_t; |
| Line 21 int config_parse_file(server *srv, config_t *context, | Line 22 int config_parse_file(server *srv, config_t *context, |
| int config_parse_cmd(server *srv, config_t *context, const char *cmd); | int config_parse_cmd(server *srv, config_t *context, const char *cmd); |
| data_unset *configparser_merge_data(data_unset *op1, const data_unset *op2); | data_unset *configparser_merge_data(data_unset *op1, const data_unset *op2); |
| int config_setup_connection(server *srv, connection *con); | |
| int config_patch_connection(server *srv, connection *con); | |
| void config_cond_cache_reset(server *srv, connection *con); | void config_cond_cache_reset(server *srv, connection *con); |
| void config_cond_cache_reset_item(server *srv, connection *con, comp_key_t item); | void config_cond_cache_reset_item(server *srv, connection *con, comp_key_t item); |
| #define config_cond_cache_reset_all_items(srv, con) \ | |
| config_cond_cache_reset_item(srv, con, COMP_LAST_ELEMENT); | |
| #endif | #endif |