2
0
Fork 0
lighttpd2/include/lighttpd/angel.h

21 lines
656 B
C
Raw Normal View History

2008-08-05 15:08:32 +00:00
#ifndef _LIGHTTPD_ANGEL_H_
#define _LIGHTTPD_ANGEL_H_
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 */
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 */
int angel_fake_listen(liServer *srv, GString *str);
gboolean angel_fake_log(liServer *srv, GString *str);
2008-08-05 15:08:32 +00:00
#endif