haiku/headers/private/syslog_daemon/syslog_daemon.h
Axel Dörfler 37023b5035 Added new message codes for adding/removing a syslog listener.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5341 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-13 01:15:46 +00:00

35 lines
779 B
C

/*
** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
#ifndef SYSLOG_DAEMON_H
#define SYSLOG_DAEMON_H
#include <OS.h>
#define SYSLOG_PORT_NAME "syslog_daemon"
#define SYSLOG_MESSAGE '_Syl'
#define SYSLOG_ADD_LISTENER 'aSyl'
#define SYSLOG_REMOVE_LISTENER 'rSyl'
// This message is sent from both, the POSIX syslog API and the kernel's
// dprintf() logging facility if logging to syslog was enabled.
struct syslog_message {
thread_id from;
time_t when;
int32 options;
int16 priority;
char ident[B_OS_NAME_LENGTH];
char message[1];
};
#define SYSLOG_PRIORITY(options) ((options) & 0x7)
#define SYSLOG_FACILITY(options) ((options) & 0x03f8)
#endif /* SYSLOG_DAEMON_H */