Files
shairport-sync/daemon.h
T
Paul LietarandJames Laird aef689c07c In daemon mode, send error messages to parent to write them on stderr.
This allows to get a better error message than "Spawning the daemon failed."
when initialization fails.

The error message is sent through the pipe. When init is OK, just send
a null byte.
2013-06-21 11:54:13 +10:00

10 lines
170 B
C

#ifndef _DAEMON_H
#define _DAEMON_H
void daemon_init();
void daemon_ready();
void daemon_fail(const char *format, va_list arg);
void daemon_exit();
#endif // _DAEMON_H