gpg-error.h 559 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef GRUB_GPG_ERROR_H
  2. #define GRUB_GPG_ERROR_H 1
  3. #include <grub/crypto.h>
  4. typedef enum
  5. {
  6. GPG_ERR_SOURCE_USER_1
  7. }
  8. gpg_err_source_t;
  9. #define GPG_ERR_INLINE inline
  10. static inline int
  11. gpg_err_make (gpg_err_source_t source __attribute__ ((unused)), gpg_err_code_t code)
  12. {
  13. return code;
  14. }
  15. static inline gpg_err_code_t
  16. gpg_err_code (gpg_error_t err)
  17. {
  18. return err;
  19. }
  20. static inline gpg_err_source_t
  21. gpg_err_source (gpg_error_t err __attribute__ ((unused)))
  22. {
  23. return GPG_ERR_SOURCE_USER_1;
  24. }
  25. gcry_err_code_t
  26. gpg_error_from_syserror (void);
  27. #endif