xref: /lighttpd1.4/src/base_decls.h (revision e11f72b1)
1 #ifndef INCLUDED_BASE_DECLS_H
2 #define INCLUDED_BASE_DECLS_H
3 
4 #include "first.h"
5 
6 struct server;
7 typedef struct server server;
8 
9 struct connection;
10 typedef struct connection connection;
11 
12 struct plugin;
13 typedef struct plugin plugin;
14 
15 struct request_st;
16 typedef struct request_st request_st;
17 
18 union sock_addr;
19 typedef union sock_addr sock_addr;
20 
21 struct fdnode_st;
22 typedef struct fdnode_st fdnode;
23 
24 struct log_error_st;
25 typedef struct log_error_st log_error_st;
26 
27 enum handler_t {
28   HANDLER_UNSET,
29   HANDLER_GO_ON,
30   HANDLER_FINISHED,
31   HANDLER_COMEBACK,
32   HANDLER_WAIT_FOR_EVENT,
33   HANDLER_ERROR,
34   HANDLER_WAIT_FOR_FD
35 };
36 typedef enum handler_t handler_t;
37 
38 #define BV(x) (1 << x)
39 
40 
41 #endif
42