diff options
author | Nikias Bassen | 2021-07-29 02:45:10 +0200 |
---|---|---|
committer | Nikias Bassen | 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; typedef enum { USERPREF_E_SUCCESS = 0, USERPREF_E_INVALID_ARG = -1, - USERPREF_E_INVALID_CONF = -2, - USERPREF_E_SSL_ERROR = -3, - USERPREF_E_READ_ERROR = -4, - USERPREF_E_WRITE_ERROR = -5, + USERPREF_E_NOENT = -2, + USERPREF_E_INVALID_CONF = -3, + USERPREF_E_SSL_ERROR = -4, + USERPREF_E_READ_ERROR = -5, + USERPREF_E_WRITE_ERROR = -6, USERPREF_E_UNKNOWN_ERROR = -256 } userpref_error_t; |