Debian Codegraph @

include/base/ereport.h

raw
1 /** BEGIN COPYRIGHT BLOCK
2 * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
3 * Copyright (C) 2005 Red Hat, Inc.
4 * All rights reserved.
5 *
6 * License: GPL (version 3 or any later version).
7 * See LICENSE for details.
8 * END COPYRIGHT BLOCK **/
9
10 #ifdef HAVE_CONFIG_H
11 #include <config.h>
12 #endif
13
14 #ifndef BASE_EREPORT_H
15 #define BASE_EREPORT_H
16
17 #ifndef NOINTNSAPI
18 #define INTNSAPI
19 #endif /* !NOINTNSAPI */
20
21 /*
22 * ereport.h: Records transactions, reports errors to administrators, etc.
23 *
24 * Rob McCool
25 */
26
27 /* --- Begin function prototypes --- */
28
29 #ifdef INTNSAPI
30
31 NSPR_BEGIN_EXTERN_C
32
33 /*
34 * INTereport logs an error of the given degree and formats the arguments with
35 * the printf() style fmt. Returns whether the log was successful. Records
36 * the current date.
37 */
38
39 NSAPI_PUBLIC int INTereport(int degree, char *fmt, ...)
40 #ifdef __GNUC__
41 __attribute__((format(printf, 2, 3)));
42 #else
43 ;
44 #endif
45 NSAPI_PUBLIC int INTereport_v(int degree, char *fmt, va_list args);
46
47 NSPR_END_EXTERN_C
48
49 /* --- End function prototypes --- */
50
51 #define ereport INTereport
52 #define ereport_v INTereport_v
53
54 #endif /* INTNSAPI */
55
56 #endif /* !BASE_EREPORT_H */