comerr-rename-20070410
[openafs.git] / src / comerr / 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  * For copyright and distribution info, see the documentation supplied
8  * with this package.
9  */
10
11 #ifndef __AFS_COM_ERR_H
12
13 #include <stdarg.h>
14
15 extern void afs_com_err(const char *, afs_int32, const char *, ...);
16 extern void afs_com_err_va(const char *whoami, afs_int32 code, const char *fmt,
17                        va_list args);
18 extern const char *afs_error_table_name(afs_int32);
19 extern const char *afs_error_message(afs_int32);
20 extern
21 void (*afs_set_com_err_hook
22       (void (*)(const char *, afs_int32, const char *, va_list)))
23   (const char *, afs_int32, const char *, va_list);
24 extern void (*afs_reset_com_err_hook(void)) (const char *, afs_int32,
25                                          const char *, va_list);
26
27 #define __AFS_COM_ERR_H
28 #ifdef AFS_OLD_COM_ERR 
29 #define com_err                 afs_com_err
30 #define com_err_va              afs_com_err_va
31 #define error_table_name        afs_error_table_name
32 #define error_message           afs_error_message
33 #define set_com_err_hook        afs_set_com_err_hook
34 #define reset_com_err_hook      afs_reset_com_err_hook
35 #endif /* AFS_OLD_COM_ERR */
36 #endif /* ! defined(__AFS_COM_ERR_H) */