2 * Copyright 2003-2015, Axel Dörfler, axeld@pinc-software.de.
3 * Distributed under the terms of the MIT License.
5 #ifndef _SYSLOG_DAEMON_H_
6 #define _SYSLOG_DAEMON_H_
9 #include <Application.h>
14 #include <syslog_daemon.h>
17 typedef void (*handler_func
)(syslog_message
&);
20 class SyslogDaemon
: public BApplication
{
24 virtual void ReadyToRun();
25 virtual void AboutRequested();
26 virtual bool QuitRequested();
27 virtual void MessageReceived(BMessage
* message
);
29 void AddHandler(handler_func function
);
33 static int32
_DaemonThread(void* data
);
44 #endif /* _SYSLOG_DAEMON_H_ */