rx: Remove RX_CALL_BUSY
[openafs.git] / src / WINNT / kfw / inc / krb5 / com_err.h
1 /*
2  * Header file for common error description library.
3  *
4  * Copyright 1988, Student Information Processing Board of the
5  * Massachusetts Institute of Technology.
6  *
7  * Copyright 1995 by Cygnus Support.
8  *
9  * For copyright and distribution info, see the documentation supplied
10  * with this package.
11  */
12
13 #ifndef __COM_ERR_H
14
15 #if defined(_WIN32)
16 #include <win-mac.h>
17 #endif
18
19 #ifndef KRB5_CALLCONV
20 #define KRB5_CALLCONV
21 #define KRB5_CALLCONV_C
22 #endif
23
24 #include <stdarg.h>
25
26 typedef long errcode_t;
27 typedef void (*et_old_error_hook_func) (const char *, errcode_t,
28                                         const char *, va_list ap);
29
30 struct error_table {
31         /*@shared@*/ char const * const * msgs;
32         long base;
33         unsigned int n_msgs;
34 };
35
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39
40 /* Public interfaces */
41 extern void KRB5_CALLCONV_C com_err
42         (const char *, errcode_t, const char *, ...);
43 extern void KRB5_CALLCONV com_err_va
44         (const char *whoami, errcode_t code, const char *fmt,
45          va_list ap);
46 extern /*@observer@*//*@dependent@*/ const char * KRB5_CALLCONV error_message
47         (errcode_t)
48        /*@modifies internalState@*/;
49 extern errcode_t KRB5_CALLCONV add_error_table
50         (/*@dependent@*/ const struct error_table *)
51        /*@modifies internalState@*/;
52 extern errcode_t KRB5_CALLCONV remove_error_table
53         (const struct error_table *)
54        /*@modifies internalState@*/;
55
56 #if !defined(_WIN32)
57 /*
58  * The display routine should be application specific.  A global hook,
59  * may cause inappropriate display procedures to be called between
60  * applications under non-Unix environments.
61  */
62
63 extern et_old_error_hook_func set_com_err_hook (et_old_error_hook_func);
64 extern et_old_error_hook_func reset_com_err_hook (void);
65 #endif
66
67 #ifdef __cplusplus
68 }
69 #endif
70
71 #define __COM_ERR_H
72 #endif /* ! defined(__COM_ERR_H) */