iPXE
errortab.h
Go to the documentation of this file.
1#ifndef _IPXE_ERRORTAB_H
2#define _IPXE_ERRORTAB_H
3
4/** @file
5 *
6 * Error message tables
7 *
8 */
9
10FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11FILE_SECBOOT ( PERMITTED );
12
13#include <ipxe/tables.h>
14
15struct errortab {
16 int errno;
17 const char *text;
18};
19
20#define ERRORTAB __table ( struct errortab, "errortab" )
21
22#define __errortab __table_entry ( ERRORTAB, 01 )
23
24#define __einfo_errortab( einfo ) { \
25 .errno = __einfo_errno ( einfo ), \
26 .text = __einfo_desc ( einfo ), \
27 }
28
29#endif /* _IPXE_ERRORTAB_H */
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:896
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Definition compiler.h:926
const char * text
Definition errortab.h:17
int errno
Definition errortab.h:16
Linker tables.