diff options
author | 2021-07-29 02:45:10 +0200 | |
---|---|---|
committer | 2021-07-29 02:45:10 +0200 | |
commit | 4405a0fff74faaed363bc3ea4c4997293ac9d4a3 (patch) | |
tree | b1d00d7ed7eef7f4e2ea88b0391e0306fa2b65d0 /common/userpref.h | |
parent | 2380f7c6db47aef91263e125a6c8ca6aba170b28 (diff) | |
download | libimobiledevice-4405a0fff74faaed363bc3ea4c4997293ac9d4a3.tar.gz libimobiledevice-4405a0fff74faaed363bc3ea4c4997293ac9d4a3.tar.bz2 |
common: Return proper error codes from userpref_read_pair_record
Diffstat (limited to 'common/userpref.h')
-rw-r--r-- | common/userpref.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/common/userpref.h b/common/userpref.h index 072721a..75bb8b7 100644 --- a/common/userpref.h +++ b/common/userpref.h | |||
@@ -54,10 +54,11 @@ typedef gnutls_datum_t key_data_t; | |||
54 | typedef enum { | 54 | typedef enum { |
55 | USERPREF_E_SUCCESS = 0, | 55 | USERPREF_E_SUCCESS = 0, |
56 | USERPREF_E_INVALID_ARG = -1, | 56 | USERPREF_E_INVALID_ARG = -1, |
57 | USERPREF_E_INVALID_CONF = -2, | 57 | USERPREF_E_NOENT = -2, |
58 | USERPREF_E_SSL_ERROR = -3, | 58 | USERPREF_E_INVALID_CONF = -3, |
59 | USERPREF_E_READ_ERROR = -4, | 59 | USERPREF_E_SSL_ERROR = -4, |
60 | USERPREF_E_WRITE_ERROR = -5, | 60 | USERPREF_E_READ_ERROR = -5, |
61 | USERPREF_E_WRITE_ERROR = -6, | ||
61 | USERPREF_E_UNKNOWN_ERROR = -256 | 62 | USERPREF_E_UNKNOWN_ERROR = -256 |
62 | } userpref_error_t; | 63 | } userpref_error_t; |
63 | 64 | ||