You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

errortab.h 466B

12345678910111213141516171819202122232425262728
  1. #ifndef _IPXE_ERRORTAB_H
  2. #define _IPXE_ERRORTAB_H
  3. /** @file
  4. *
  5. * Error message tables
  6. *
  7. */
  8. FILE_LICENCE ( GPL2_OR_LATER );
  9. #include <ipxe/tables.h>
  10. struct errortab {
  11. int errno;
  12. const char *text;
  13. };
  14. #define ERRORTAB __table ( struct errortab, "errortab" )
  15. #define __errortab __table_entry ( ERRORTAB, 01 )
  16. #define __einfo_errortab( einfo ) { \
  17. .errno = __einfo_errno ( einfo ), \
  18. .text = __einfo_desc ( einfo ), \
  19. }
  20. #endif /* _IPXE_ERRORTAB_H */