summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2014-12-25 15:45:06 +0100
committerGravatar Martin Szulecki2015-01-12 18:08:27 +0100
commit48cb70eda460869983a1e47fad34498bae04a79e (patch)
tree3b53fe187f486c2a94d5c19611da9feb4bd1fad5 /include
parent3afdda798f446dc890b376dd54b0a8deb5bea18a (diff)
downloadlibimobiledevice-48cb70eda460869983a1e47fad34498bae04a79e.tar.gz
libimobiledevice-48cb70eda460869983a1e47fad34498bae04a79e.tar.bz2
lockdown: Refactor internal error checking and add more native errors to enum
Diffstat (limited to 'include')
-rw-r--r--include/libimobiledevice/lockdown.h62
1 files changed, 39 insertions, 23 deletions
diff --git a/include/libimobiledevice/lockdown.h b/include/libimobiledevice/lockdown.h
index 24830ff..4f87235 100644
--- a/include/libimobiledevice/lockdown.h
+++ b/include/libimobiledevice/lockdown.h
@@ -33,29 +33,45 @@ extern "C" {
/** Error Codes */
typedef enum {
- LOCKDOWN_E_SUCCESS = 0,
- LOCKDOWN_E_INVALID_ARG = -1,
- LOCKDOWN_E_INVALID_CONF = -2,
- LOCKDOWN_E_PLIST_ERROR = -3,
- LOCKDOWN_E_PAIRING_FAILED = -4,
- LOCKDOWN_E_SSL_ERROR = -5,
- LOCKDOWN_E_DICT_ERROR = -6,
- LOCKDOWN_E_START_SERVICE_FAILED = -7,
- LOCKDOWN_E_NOT_ENOUGH_DATA = -8,
- LOCKDOWN_E_SET_VALUE_PROHIBITED = -9,
- LOCKDOWN_E_GET_VALUE_PROHIBITED = -10,
- LOCKDOWN_E_REMOVE_VALUE_PROHIBITED = -11,
- LOCKDOWN_E_MUX_ERROR = -12,
- LOCKDOWN_E_ACTIVATION_FAILED = -13,
- LOCKDOWN_E_PASSWORD_PROTECTED = -14,
- LOCKDOWN_E_NO_RUNNING_SESSION = -15,
- LOCKDOWN_E_INVALID_HOST_ID = -16,
- LOCKDOWN_E_INVALID_SERVICE = -17,
- LOCKDOWN_E_INVALID_ACTIVATION_RECORD = -18,
- LOCKDOWN_E_PAIRING_DIALOG_PENDING = -20,
- LOCKDOWN_E_USER_DENIED_PAIRING = -21,
- LOCKDOWN_E_SERVICE_LIMIT = -22,
- LOCKDOWN_E_UNKNOWN_ERROR = -256
+ /* custom */
+ LOCKDOWN_E_SUCCESS = 0,
+ LOCKDOWN_E_INVALID_ARG = -1,
+ LOCKDOWN_E_INVALID_CONF = -2,
+ LOCKDOWN_E_PLIST_ERROR = -3,
+ LOCKDOWN_E_PAIRING_FAILED = -4,
+ LOCKDOWN_E_SSL_ERROR = -5,
+ LOCKDOWN_E_DICT_ERROR = -6,
+ LOCKDOWN_E_NOT_ENOUGH_DATA = -7,
+ LOCKDOWN_E_MUX_ERROR = -8,
+ LOCKDOWN_E_NO_RUNNING_SESSION = -9,
+ /* native */
+ LOCKDOWN_E_INVALID_RESPONSE = -10,
+ LOCKDOWN_E_MISSING_KEY = -11,
+ LOCKDOWN_E_MISSING_VALUE = -12,
+ LOCKDOWN_E_GET_PROHIBITED = -13,
+ LOCKDOWN_E_SET_PROHIBITED = -14,
+ LOCKDOWN_E_REMOVE_PROHIBITED = -15,
+ LOCKDOWN_E_IMMUTABLE_VALUE = -16,
+ LOCKDOWN_E_PASSWORD_PROTECTED = -17,
+ LOCKDOWN_E_USER_DENIED_PAIRING = -18,
+ LOCKDOWN_E_PAIRING_DIALOG_RESPONSE_PENDING = -19,
+ LOCKDOWN_E_MISSING_HOST_ID = -20,
+ LOCKDOWN_E_INVALID_HOST_ID = -21,
+ LOCKDOWN_E_SESSION_ACTIVE = -22,
+ LOCKDOWN_E_SESSION_INACTIVE = -23,
+ LOCKDOWN_E_MISSING_SESSION_ID = -24,
+ LOCKDOWN_E_INVALID_SESSION_ID = -25,
+ LOCKDOWN_E_MISSING_SERVICE = -26,
+ LOCKDOWN_E_INVALID_SERVICE = -27,
+ LOCKDOWN_E_SERVICE_LIMIT = -28,
+ LOCKDOWN_E_MISSING_PAIR_RECORD = -29,
+ LOCKDOWN_E_SAVE_PAIR_RECORD_FAILED = -30,
+ LOCKDOWN_E_INVALID_PAIR_RECORD = -31,
+ LOCKDOWN_E_INVALID_ACTIVATION_RECORD = -32,
+ LOCKDOWN_E_MISSING_ACTIVATION_RECORD = -33,
+ LOCKDOWN_E_SERVICE_PROHIBITED = -34,
+ LOCKDOWN_E_ESCROW_LOCKED = -35,
+ LOCKDOWN_E_UNKNOWN_ERROR = -256
} lockdownd_error_t;
typedef struct lockdownd_client_private lockdownd_client_private;