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