2009-04-24 08:03:04 +00:00
|
|
|
#ifndef _LIGHTTPD_ANGEL_PLUGIN_CORE_H_
|
|
|
|
#define _LIGHTTPD_ANGEL_PLUGIN_CORE_H_
|
|
|
|
|
|
|
|
#include <lighttpd/angel_base.h>
|
|
|
|
|
2009-07-08 19:06:07 +00:00
|
|
|
typedef struct liPluginCoreConfig liPluginCoreConfig;
|
|
|
|
struct liPluginCoreConfig {
|
2009-07-07 20:40:44 +00:00
|
|
|
/* Load */
|
2009-07-08 19:06:07 +00:00
|
|
|
liInstanceConf *load_instconf;
|
2009-07-07 20:40:44 +00:00
|
|
|
gboolean load_failed;
|
2009-09-04 13:56:52 +00:00
|
|
|
GPtrArray *load_listen_masks;
|
2009-07-07 20:40:44 +00:00
|
|
|
|
|
|
|
/* Running */
|
2009-07-08 19:06:07 +00:00
|
|
|
liInstanceConf *instconf;
|
|
|
|
liInstance *inst;
|
2009-09-04 13:56:52 +00:00
|
|
|
GPtrArray *listen_masks;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct liPluginCoreListenMask liPluginCoreListenMask;
|
|
|
|
struct liPluginCoreListenMask {
|
|
|
|
enum {
|
|
|
|
LI_PLUGIN_CORE_LISTEN_MASK_IPV4,
|
|
|
|
LI_PLUGIN_CORE_LISTEN_MASK_IPV6,
|
|
|
|
LI_PLUGIN_CORE_LISTEN_MASK_UNIX
|
|
|
|
} type;
|
|
|
|
|
|
|
|
union {
|
|
|
|
struct {
|
|
|
|
guint32 addr;
|
|
|
|
guint32 networkmask;
|
|
|
|
guint16 port;
|
|
|
|
} ipv4;
|
|
|
|
struct {
|
|
|
|
guint8 addr[16];
|
|
|
|
guint network;
|
|
|
|
guint16 port;
|
|
|
|
} ipv6;
|
|
|
|
struct {
|
|
|
|
GString *path;
|
|
|
|
} unix_socket;
|
|
|
|
} value;
|
2009-07-08 19:06:07 +00:00
|
|
|
};
|
2009-07-07 20:40:44 +00:00
|
|
|
|
2009-07-08 19:06:07 +00:00
|
|
|
gboolean plugin_core_init(liServer *srv);
|
2009-04-24 08:03:04 +00:00
|
|
|
|
|
|
|
#endif
|