]> git.proxmox.com Git - grub2.git/blob - include/grub/gcrypt/gpg-error.h
Import grub2_2.02+dfsg1.orig.tar.xz
[grub2.git] / include / grub / gcrypt / gpg-error.h
1 #ifndef GRUB_GPG_ERROR_H
2 #define GRUB_GPG_ERROR_H 1
3
4 #include <grub/crypto.h>
5 typedef enum
6 {
7 GPG_ERR_SOURCE_USER_1
8 }
9 gpg_err_source_t;
10 #define GPG_ERR_INLINE inline
11 static inline int
12 gpg_err_make (gpg_err_source_t source __attribute__ ((unused)), gpg_err_code_t code)
13 {
14 return code;
15 }
16
17 static inline gpg_err_code_t
18 gpg_err_code (gpg_error_t err)
19 {
20 return err;
21 }
22
23 static inline gpg_err_source_t
24 gpg_err_source (gpg_error_t err __attribute__ ((unused)))
25 {
26 return GPG_ERR_SOURCE_USER_1;
27 }
28
29 gcry_err_code_t
30 gpg_error_from_syserror (void);
31
32 #endif