Postfix3.3.1
msg_output.h
[詳解]
1 #ifndef _MSG_OUTPUT_FN_
2 #define _MSG_OUTPUT_FN_
3 
4 /*++
5 /* NAME
6 /* msg_output 3h
7 /* SUMMARY
8 /* diagnostics output management
9 /* SYNOPSIS
10 /* #include <msg_output.h>
11 /* DESCRIPTION
12 
13  /*
14  * System library.
15  */
16 #include <stdarg.h>
17 
18  /*
19  * External interface. Severity levels are documented to be monotonically
20  * increasing from 0 up to MSG_LAST.
21  */
22 typedef void (*MSG_OUTPUT_FN) (int, const char *);
23 extern void msg_output(MSG_OUTPUT_FN);
24 extern void PRINTFLIKE(2, 3) msg_printf(int, const char *,...);
25 extern void msg_vprintf(int, const char *, va_list);
26 extern void msg_text(int, const char *);
27 
28 #define MSG_INFO 0 /* informative */
29 #define MSG_WARN 1 /* warning (non-fatal) */
30 #define MSG_ERROR 2 /* error (fatal) */
31 #define MSG_FATAL 3 /* software error (fatal) */
32 #define MSG_PANIC 4 /* software error (fatal) */
33 
34 #define MSG_LAST 4 /* highest-numbered severity level */
35 
36 /* LICENSE
37 /* .ad
38 /* .fi
39 /* The Secure Mailer license must be distributed with this software.
40 /* AUTHOR(S)
41 /* Wietse Venema
42 /* IBM T.J. Watson Research
43 /* P.O. Box 704
44 /* Yorktown Heights, NY 10598, USA
45 /*--*/
46 
47 #endif
void const char void msg_vprintf(int, const char *, va_list)
Definition: msg_output.c:149
void msg_printf(int level, const char *format,...)
Definition: msg_output.c:138
void msg_text(int, const char *)
Definition: msg_output.c:168
void(* MSG_OUTPUT_FN)(int, const char *)
Definition: msg_output.h:22
void PRINTFLIKE(2, 3) msg_printf(int
int int
Definition: smtpd_proxy.h:21
void msg_output(MSG_OUTPUT_FN)
Definition: msg_output.c:115