#ifndef _LIGHTTPD_ANGEL_PLUGIN_CORE_H_ #define _LIGHTTPD_ANGEL_PLUGIN_CORE_H_ #include typedef struct liPluginCoreConfig liPluginCoreConfig; struct liPluginCoreConfig { /* Load */ liInstanceConf *load_instconf; gboolean load_failed; GPtrArray *load_listen_masks; /* Running */ liInstanceConf *instconf; liInstance *inst; 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; }; gboolean plugin_core_init(liServer *srv); #endif