2017-07-31 03:42:41 +00:00
|
|
|
#ifndef INCLUDED_BASE_DECLS_H
|
|
|
|
#define INCLUDED_BASE_DECLS_H
|
|
|
|
|
|
|
|
#include "first.h"
|
|
|
|
|
|
|
|
struct server;
|
|
|
|
typedef struct server server;
|
|
|
|
|
|
|
|
struct connection;
|
|
|
|
typedef struct connection connection;
|
|
|
|
|
2020-01-11 04:12:08 +00:00
|
|
|
struct plugin;
|
|
|
|
typedef struct plugin plugin;
|
|
|
|
|
2020-01-06 05:03:05 +00:00
|
|
|
struct request_st;
|
|
|
|
typedef struct request_st request_st;
|
|
|
|
|
2017-07-31 03:42:41 +00:00
|
|
|
union sock_addr;
|
|
|
|
typedef union sock_addr sock_addr;
|
|
|
|
|
2019-03-01 04:58:49 +00:00
|
|
|
struct fdnode_st;
|
|
|
|
typedef struct fdnode_st fdnode;
|
2017-07-31 03:42:41 +00:00
|
|
|
|
2019-03-21 08:03:07 +00:00
|
|
|
struct log_error_st;
|
|
|
|
typedef struct log_error_st log_error_st;
|
|
|
|
|
2018-03-25 07:45:05 +00:00
|
|
|
enum handler_t {
|
|
|
|
HANDLER_UNSET,
|
|
|
|
HANDLER_GO_ON,
|
|
|
|
HANDLER_FINISHED,
|
|
|
|
HANDLER_COMEBACK,
|
|
|
|
HANDLER_WAIT_FOR_EVENT,
|
|
|
|
HANDLER_ERROR,
|
|
|
|
HANDLER_WAIT_FOR_FD
|
|
|
|
};
|
|
|
|
typedef enum handler_t handler_t;
|
|
|
|
|
|
|
|
#define BV(x) (1 << x)
|
|
|
|
|
|
|
|
|
2017-07-31 03:42:41 +00:00
|
|
|
#endif
|