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.
10 lines
170 B
C
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
|