logging: add function to send message to foreground process

This commit is contained in:
Miroslav Lichvar
2024-07-04 16:08:46 +02:00
parent 05bd4898a9
commit 7915f52495
2 changed files with 16 additions and 2 deletions

View File

@@ -126,7 +126,10 @@ extern void LOG_OpenSystemLog(void);
/* Stop using stderr and send fatal message to the foreground process */
extern void LOG_SetParentFd(int fd);
/* Close the pipe to the foreground process so it can exit */
/* Send a message to the foreground process */
extern int LOG_NotifyParent(const char *message);
/* Close the pipe to the foreground process */
extern void LOG_CloseParentFd(void);
/* File logging functions */