aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_conf_file.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-10-23 06:13:16 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-10-23 06:13:16 +0000
commitf107910a9ef3b7de8752fc4e9e34cb69c1924a09 (patch)
tree35335e8d2e15d30819f6818ebc1871ee5a74b568 /src/core/ngx_conf_file.h
parentdc9dd434aa1cfd24a98265742ff0ed4aeefc1f05 (diff)
downloadnginx-f107910a9ef3b7de8752fc4e9e34cb69c1924a09.tar.gz
nginx-f107910a9ef3b7de8752fc4e9e34cb69c1924a09.zip
nginx-0.0.1-2003-10-23-10:13:16 import
Diffstat (limited to 'src/core/ngx_conf_file.h')
-rw-r--r--src/core/ngx_conf_file.h37
1 files changed, 30 insertions, 7 deletions
diff --git a/src/core/ngx_conf_file.h b/src/core/ngx_conf_file.h
index 66ca2a912..e09cc65e9 100644
--- a/src/core/ngx_conf_file.h
+++ b/src/core/ngx_conf_file.h
@@ -52,17 +52,37 @@
#define NGX_CONF_MODULE 0x464E4F43 /* "CONF" */
+typedef struct ngx_conf_bounds_s ngx_conf_bounds_t;
+
+struct ngx_conf_bounds_s {
+ char *(*check)(ngx_conf_t *cf, ngx_conf_bounds_t *bounds, void *conf);
+
+ union {
+ struct {
+ int low;
+ int high;
+ } num;
+
+ struct num {
+ int low_num;
+ int high_num;
+ int low_size;
+ int high_size;
+ } bufs;
+ } type;
+};
+
struct ngx_command_s {
- ngx_str_t name;
- int type;
- char *(*set)(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
- int conf;
- int offset;
- void *bounds;
+ ngx_str_t name;
+ int type;
+ char *(*set)(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
+ int conf;
+ int offset;
+ ngx_conf_bounds_t *bounds;
};
-#define ngx_null_command {ngx_null_string, 0, NULL, 0, 0, NULL}
+#define ngx_null_command { ngx_null_string, 0, NULL, 0, 0, NULL }
struct ngx_open_file_s {
@@ -221,6 +241,9 @@ char *ngx_conf_set_bufs_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
char *ngx_conf_set_core_flag_slot(ngx_conf_t *cf, ngx_command_t *cmd,
void *conf);
+char *ngx_conf_check_num_bounds(ngx_conf_t *cf, ngx_conf_bounds_t *bounds,
+ void *conf);
+
extern ngx_module_t *ngx_modules[];
extern ngx_cycle_t *ngx_cycle;