23:a2c8fc23c90e | 24:1a7853a4257e |
---|---|
42 * ereport.h: Records transactions, reports errors to administrators, etc. | 42 * ereport.h: Records transactions, reports errors to administrators, etc. |
43 * | 43 * |
44 * Rob McCool | 44 * Rob McCool |
45 */ | 45 */ |
46 | 46 |
47 //TODO: include netsite.h or systems.h | |
48 | |
47 #ifndef BASE_SESSION_H | 49 #ifndef BASE_SESSION_H |
48 #include "../daemon/session.h" | 50 #include "../daemon/session.h" |
49 #endif /* !BASE_SESSION_H */ | 51 #endif /* !BASE_SESSION_H */ |
50 | 52 |
51 /* Pseudo-filename to enable logging to syslog */ | 53 /* Pseudo-filename to enable logging to syslog */ |
57 | 59 |
58 /* --- Begin function prototypes --- */ | 60 /* --- Begin function prototypes --- */ |
59 | 61 |
60 #ifdef INTNSAPI | 62 #ifdef INTNSAPI |
61 | 63 |
62 NSPR_BEGIN_EXTERN_C | 64 #ifdef __cplusplus |
65 extern "C" { | |
66 #endif | |
63 | 67 |
64 /* | 68 /* |
65 * INTereport logs an error of the given degree and formats the arguments with | 69 * INTereport logs an error of the given degree and formats the arguments with |
66 * the printf() style fmt. Returns whether the log was successful. Records | 70 * the printf() style fmt. Returns whether the log was successful. Records |
67 * the current date. | 71 * the current date. |
82 NSAPI_PUBLIC void INTereport_terminate(void); | 86 NSAPI_PUBLIC void INTereport_terminate(void); |
83 | 87 |
84 /* For restarts */ | 88 /* For restarts */ |
85 NSAPI_PUBLIC SYS_FILE INTereport_getfd(void); | 89 NSAPI_PUBLIC SYS_FILE INTereport_getfd(void); |
86 | 90 |
87 NSPR_END_EXTERN_C | 91 #ifdef __cplusplus |
92 } | |
93 #endif | |
88 | 94 |
89 #ifdef __cplusplus | 95 #ifdef __cplusplus |
90 class EreportableException; | 96 class EreportableException; |
91 NSAPI_PUBLIC int INTereport_exception(const EreportableException& e); | 97 NSAPI_PUBLIC int INTereport_exception(const EreportableException& e); |
92 #endif | 98 #endif |