2008-08-05 15:08:32 +00:00
|
|
|
#ifndef _LIGHTTPD_ANGEL_H_
|
|
|
|
#define _LIGHTTPD_ANGEL_H_
|
|
|
|
|
2009-09-08 17:09:39 +00:00
|
|
|
typedef void (*liAngelListenCB)(liServer *srv, int fd, gpointer data);
|
|
|
|
|
2008-08-05 15:08:32 +00:00
|
|
|
/* interface to the angel; implementation needs to work without angel too */
|
2009-07-09 20:17:24 +00:00
|
|
|
LI_API void li_angel_setup(liServer *srv);
|
2008-08-05 15:08:32 +00:00
|
|
|
|
2008-12-20 15:25:02 +00:00
|
|
|
/* listen to a socket */
|
2009-09-08 17:09:39 +00:00
|
|
|
LI_API void li_angel_listen(liServer *srv, GString *str, liAngelListenCB cb, gpointer data);
|
2008-08-05 15:08:32 +00:00
|
|
|
|
2008-12-22 16:03:43 +00:00
|
|
|
/* send log messages during startup to angel, frees the string */
|
2009-07-09 20:17:24 +00:00
|
|
|
LI_API void li_angel_log(liServer *srv, GString *str);
|
2008-12-20 15:25:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* angle_fake definitions, only for internal use */
|
2009-10-09 13:38:12 +00:00
|
|
|
int li_angel_fake_listen(liServer *srv, GString *str);
|
|
|
|
gboolean li_angel_fake_log(liServer *srv, GString *str);
|
2008-08-05 15:08:32 +00:00
|
|
|
|
|
|
|
#endif
|