1 /*
2  * os_win32/syslog.h
3  *
4  * Home page of code is: http://www.smartmontools.org
5  *
6  * Copyright (C) 2004-8 Christian Franke
7  *
8  * SPDX-License-Identifier: GPL-2.0-or-later
9  */
10 
11 #ifndef SYSLOG_H
12 #define SYSLOG_H
13 
14 #define SYSLOG_H_CVSID "$Id: syslog.h 4760 2018-08-19 18:45:53Z chrfranke $\n"
15 
16 #include <stdarg.h>
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 /* EVENTLOG_ERROR_TYPE: */
23 #define LOG_EMERG       0
24 #define LOG_ALERT       1
25 #define LOG_CRIT        2
26 #define LOG_ERR         3
27 /* EVENTLOG_WARNING_TYPE: */
28 #define LOG_WARNING     4
29 /* EVENTLOG_INFORMATION_TYPE: */
30 #define LOG_NOTICE      5
31 #define LOG_INFO        6
32 #define LOG_DEBUG       7
33 
34 /* event log: */
35 #define LOG_DAEMON      ( 3<<3)
36 /* ident.log: */
37 #define LOG_LOCAL0      (16<<3)
38 /* ident1-7.log: */
39 #define LOG_LOCAL1      (17<<3)
40 #define LOG_LOCAL2      (18<<3)
41 #define LOG_LOCAL3      (19<<3)
42 #define LOG_LOCAL4      (20<<3)
43 #define LOG_LOCAL5      (21<<3)
44 #define LOG_LOCAL6      (22<<3)
45 #define LOG_LOCAL7      (23<<3)
46 
47 #define LOG_FACMASK     0x03f8
48 #define LOG_FAC(f)      (((f) & LOG_FACMASK) >> 3)
49 
50 #define LOG_PID         0x01
51 
52 void openlog(const char * ident, int option, int facility);
53 
54 void closelog(void);
55 
56 void vsyslog(int priority, const char * message, va_list args);
57 
58 #ifdef __cplusplus
59 }
60 #endif
61 
62 #endif /* SYSLOG_H */
63