]> git.proxmox.com Git - mirror_smartmontools-debian.git/blob - os_win32/syslog.h
import upstream version 5.36
[mirror_smartmontools-debian.git] / os_win32 / syslog.h
1 /*
2 * os_win32/syslog.h
3 *
4 * Home page of code is: http://smartmontools.sourceforge.net
5 *
6 * Copyright (C) 2004-6 Christian Franke <smartmontools-support@lists.sourceforge.net>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2, or (at your option)
11 * any later version.
12 *
13 * You should have received a copy of the GNU General Public License
14 * (for example COPYING); if not, write to the Free
15 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16 *
17 */
18
19 #ifndef SYSLOG_H
20 #define SYSLOG_H
21
22 #define SYSLOG_H_CVSID "$Id: syslog.h,v 1.4 2006/04/12 14:54:28 ballen4705 Exp $\n"
23
24 #include <stdarg.h>
25
26 /* EVENTLOG_ERROR_TYPE: */
27 #define LOG_EMERG 0
28 #define LOG_ALERT 1
29 #define LOG_CRIT 2
30 #define LOG_ERR 3
31 /* EVENTLOG_WARNING_TYPE: */
32 #define LOG_WARNING 4
33 /* EVENTLOG_INFORMATION_TYPE: */
34 #define LOG_NOTICE 5
35 #define LOG_INFO 6
36 #define LOG_DEBUG 7
37
38 /* event log: */
39 #define LOG_DAEMON ( 3<<3)
40 /* ident.log: */
41 #define LOG_LOCAL0 (16<<3)
42 /* ident1-7.log: */
43 #define LOG_LOCAL1 (17<<3)
44 #define LOG_LOCAL2 (18<<3)
45 #define LOG_LOCAL3 (19<<3)
46 #define LOG_LOCAL4 (20<<3)
47 #define LOG_LOCAL5 (21<<3)
48 #define LOG_LOCAL6 (22<<3)
49 #define LOG_LOCAL7 (23<<3)
50
51 #define LOG_FACMASK 0x03f8
52 #define LOG_FAC(f) (((f) & LOG_FACMASK) >> 3)
53
54 #define LOG_PID 0x01
55
56 void openlog(const char * ident, int option, int facility);
57
58 void closelog(void);
59
60 void vsyslog(int priority, const char * message, va_list args);
61
62 #endif /* SYSLOG_H */