diff src/http/ngx_http_core_module.h @ 44:0e81ac0bb3e2

nginx-0.0.1-2003-01-09-08:36:00 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 09 Jan 2003 05:36:00 +0000
parents src/http/ngx_http_core.h@59e7c7f30d49
children d81326c3b21b
line wrap: on
line diff
copy from src/http/ngx_http_core.h
copy to src/http/ngx_http_core_module.h
--- a/src/http/ngx_http_core.h
+++ b/src/http/ngx_http_core_module.h
@@ -2,24 +2,75 @@
 #define _NGX_HTTP_CORE_H_INCLUDED_
 
 
+#include <ngx_string.h>
+#include <ngx_array.h>
 #include <ngx_http.h>
 
 
 typedef struct {
-    int dummy;
-} ngx_http_core_conf_t;
+    int               addr;
+    int               port;
+    int               family;
+    int               flags;             /* 'default' */
+    ngx_conf_file_t  *conf_file;
+    int               line;
+} ngx_http_listen_t;
 
 
 typedef struct {
-    int dummy;
+    ngx_array_t  locations;    /* array of ngx_http_core_loc_conf_t */
+
+    ngx_array_t  listen;       /* 'listen', array of ngx_http_listen_t */
+    ngx_array_t  server_names; /* 'server_name',
+                                  array of ngx_http_server_name_t */
+    ngx_http_conf_ctx_t *ctx;
 } ngx_http_core_srv_conf_t;
 
 
 typedef struct {
-    time_t  send_timeout;
+    ngx_str_t                name;
+    ngx_http_core_srv_conf_t  *core_srv_conf;
+} ngx_http_server_name_t;
+
+
+typedef struct {
+    int           port;
+    ngx_array_t   addr;
+} ngx_http_in_port_t;
+
+typedef struct {
+    u_int32_t                  addr;
+    ngx_array_t                names;
+    int                        flags;
+    ngx_http_core_srv_conf_t  *core_srv_conf;
+} ngx_http_in_addr_t;
+
+#define NGX_HTTP_DEFAULT_SERVER  1
+
+
+
+typedef struct {
+    ngx_str_t   name;          /* location name */
+    void      **loc_conf;      /* used in translation handler */
+
+    ngx_str_t   doc_root;      /* 'root' */
+
+    time_t      send_timeout;  /* 'send_timeout' */
+    size_t      discarded_buffer_size;   /* 'discarded_buffer_size */
+    time_t      lingering_time;          /* 'lingering_time */
+    ngx_msec_t  lingering_timeout;       /* 'lingering_timeout */
 } ngx_http_core_loc_conf_t;
 
 
+
+
+#if 0
+typedef struct {
+    int dummy;
+} ngx_http_core_conf_t;
+#endif
+
+
 extern ngx_http_module_t  ngx_http_core_module_ctx;
 extern ngx_module_t  ngx_http_core_module;
 
@@ -27,4 +78,9 @@ extern int (*ngx_http_top_header_filter)
 extern int ngx_http_max_module;
 
 
+
+int ngx_http_core_translate_handler(ngx_http_request_t *r);
+
+
+
 #endif /* _NGX_HTTP_CORE_H_INCLUDED_ */