Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / ipxe / src / include / ipxe / errortab.h
1 #ifndef _IPXE_ERRORTAB_H
2 #define _IPXE_ERRORTAB_H
3
4 /** @file
5  *
6  * Error message tables
7  *
8  */
9
10 FILE_LICENCE ( GPL2_OR_LATER );
11
12 #include <ipxe/tables.h>
13
14 struct errortab {
15         int errno;
16         const char *text;
17 };
18
19 #define ERRORTAB __table ( struct errortab, "errortab" )
20
21 #define __errortab __table_entry ( ERRORTAB, 01 )
22
23 #define __einfo_errortab( einfo ) {                     \
24         .errno = __einfo_errno ( einfo ),               \
25         .text = __einfo_desc ( einfo ),                 \
26         }
27
28 #endif /* _IPXE_ERRORTAB_H */