2002-08-22 23:24:03 +08:00
|
|
|
#ifndef _NGX_CORE_H_INCLUDED_
|
|
|
|
#define _NGX_CORE_H_INCLUDED_
|
|
|
|
|
|
|
|
|
2003-06-03 23:42:58 +08:00
|
|
|
typedef struct ngx_module_s ngx_module_t;
|
|
|
|
typedef struct ngx_conf_s ngx_conf_t;
|
2003-07-02 22:41:17 +08:00
|
|
|
typedef struct ngx_cycle_s ngx_cycle_t;
|
2003-11-20 00:26:41 +08:00
|
|
|
typedef struct ngx_log_s ngx_log_t;
|
2003-12-09 04:48:12 +08:00
|
|
|
typedef struct ngx_array_s ngx_array_t;
|
2003-07-02 22:41:17 +08:00
|
|
|
typedef struct ngx_open_file_s ngx_open_file_t;
|
2003-06-03 23:42:58 +08:00
|
|
|
typedef struct ngx_command_s ngx_command_t;
|
|
|
|
|
|
|
|
typedef struct ngx_file_s ngx_file_t;
|
2003-05-20 23:37:55 +08:00
|
|
|
typedef struct ngx_event_s ngx_event_t;
|
2003-06-03 23:42:58 +08:00
|
|
|
typedef struct ngx_connection_s ngx_connection_t;
|
2003-05-20 00:39:14 +08:00
|
|
|
|
2003-11-17 05:49:42 +08:00
|
|
|
|
2003-12-19 16:15:11 +08:00
|
|
|
#include <ngx_atomic.h>
|
2003-11-17 05:49:42 +08:00
|
|
|
#include <ngx_time.h>
|
|
|
|
#include <ngx_socket.h>
|
|
|
|
#include <ngx_errno.h>
|
|
|
|
#include <ngx_process.h>
|
2003-07-11 00:26:57 +08:00
|
|
|
#include <ngx_string.h>
|
2003-10-23 23:54:19 +08:00
|
|
|
#include <ngx_parse.h>
|
2003-05-20 00:39:14 +08:00
|
|
|
#include <ngx_log.h>
|
|
|
|
#include <ngx_alloc.h>
|
|
|
|
#include <ngx_hunk.h>
|
|
|
|
#include <ngx_array.h>
|
2003-06-03 23:42:58 +08:00
|
|
|
#include <ngx_table.h>
|
2003-11-17 05:49:42 +08:00
|
|
|
#include <ngx_types.h>
|
2003-05-20 00:39:14 +08:00
|
|
|
#include <ngx_file.h>
|
2003-06-03 23:42:58 +08:00
|
|
|
#include <ngx_files.h>
|
2003-12-01 04:03:18 +08:00
|
|
|
#include <ngx_crc.h>
|
2003-12-19 16:15:11 +08:00
|
|
|
#if (HAVE_PCRE)
|
2003-11-26 04:44:56 +08:00
|
|
|
#include <ngx_regex.h>
|
2003-12-19 16:15:11 +08:00
|
|
|
#endif
|
2003-12-04 22:53:00 +08:00
|
|
|
#include <ngx_rbtree.h>
|
2003-11-11 05:09:22 +08:00
|
|
|
#include <ngx_times.h>
|
2003-06-02 23:24:30 +08:00
|
|
|
#include <ngx_inet.h>
|
2004-01-06 04:55:48 +08:00
|
|
|
#include <ngx_cycle.h>
|
2003-05-20 00:39:14 +08:00
|
|
|
#include <ngx_conf_file.h>
|
2003-11-14 00:16:33 +08:00
|
|
|
#include <ngx_os.h>
|
2003-05-20 23:37:55 +08:00
|
|
|
#include <ngx_connection.h>
|
2003-05-20 00:39:14 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
2002-09-11 23:18:33 +08:00
|
|
|
#define NGX_OK 0
|
|
|
|
#define NGX_ERROR -1
|
|
|
|
#define NGX_AGAIN -2
|
2003-10-17 04:19:16 +08:00
|
|
|
#define NGX_DONE -3
|
2002-12-06 00:21:24 +08:00
|
|
|
#define NGX_DECLINED -4
|
2003-10-10 23:10:50 +08:00
|
|
|
#define NGX_ABORT -5
|
|
|
|
|
2003-04-08 23:40:10 +08:00
|
|
|
/*
|
2003-10-10 23:10:50 +08:00
|
|
|
#define NGX_BUSY -3
|
2003-01-30 15:28:09 +08:00
|
|
|
#define NGX_ALERT -5
|
2003-04-08 23:40:10 +08:00
|
|
|
*/
|
2002-08-22 23:24:03 +08:00
|
|
|
|
|
|
|
|
2003-05-21 21:28:21 +08:00
|
|
|
#define LF 10
|
|
|
|
#define CR 13
|
|
|
|
#define CRLF "\x0d\x0a"
|
|
|
|
|
|
|
|
|
|
|
|
|
2003-05-30 22:27:59 +08:00
|
|
|
#define NGX_MAXHOSTNAMELEN 64
|
2003-01-15 15:02:27 +08:00
|
|
|
/*
|
|
|
|
#define NGX_MAXHOSTNAMELEN MAXHOSTNAMELEN
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2002-08-22 23:24:03 +08:00
|
|
|
#endif /* _NGX_CORE_H_INCLUDED_ */
|