diff options
Diffstat (limited to 'include/libimobiledevice/lockdown.h')
| -rw-r--r-- | include/libimobiledevice/lockdown.h | 54 |
1 files changed, 25 insertions, 29 deletions
diff --git a/include/libimobiledevice/lockdown.h b/include/libimobiledevice/lockdown.h index 3a088c1..beb07d3 100644 --- a/include/libimobiledevice/lockdown.h +++ b/include/libimobiledevice/lockdown.h | |||
| @@ -31,35 +31,31 @@ extern "C" { | |||
| 31 | #include <libimobiledevice/libimobiledevice.h> | 31 | #include <libimobiledevice/libimobiledevice.h> |
| 32 | #include <libimobiledevice/lockdown.h> | 32 | #include <libimobiledevice/lockdown.h> |
| 33 | 33 | ||
| 34 | /** @name Error Codes */ | 34 | /** Error Codes */ |
| 35 | /*@{*/ | 35 | typedef enum { |
| 36 | #define LOCKDOWN_E_SUCCESS 0 | 36 | LOCKDOWN_E_SUCCESS = 0, |
| 37 | #define LOCKDOWN_E_INVALID_ARG -1 | 37 | LOCKDOWN_E_INVALID_ARG = -1, |
| 38 | #define LOCKDOWN_E_INVALID_CONF -2 | 38 | LOCKDOWN_E_INVALID_CONF = -2, |
| 39 | #define LOCKDOWN_E_PLIST_ERROR -3 | 39 | LOCKDOWN_E_PLIST_ERROR = -3, |
| 40 | #define LOCKDOWN_E_PAIRING_FAILED -4 | 40 | LOCKDOWN_E_PAIRING_FAILED = -4, |
| 41 | #define LOCKDOWN_E_SSL_ERROR -5 | 41 | LOCKDOWN_E_SSL_ERROR = -5, |
| 42 | #define LOCKDOWN_E_DICT_ERROR -6 | 42 | LOCKDOWN_E_DICT_ERROR = -6, |
| 43 | #define LOCKDOWN_E_START_SERVICE_FAILED -7 | 43 | LOCKDOWN_E_START_SERVICE_FAILED = -7, |
| 44 | #define LOCKDOWN_E_NOT_ENOUGH_DATA -8 | 44 | LOCKDOWN_E_NOT_ENOUGH_DATA = -8, |
| 45 | #define LOCKDOWN_E_SET_VALUE_PROHIBITED -9 | 45 | LOCKDOWN_E_SET_VALUE_PROHIBITED = -9, |
| 46 | #define LOCKDOWN_E_GET_VALUE_PROHIBITED -10 | 46 | LOCKDOWN_E_GET_VALUE_PROHIBITED = -10, |
| 47 | #define LOCKDOWN_E_REMOVE_VALUE_PROHIBITED -11 | 47 | LOCKDOWN_E_REMOVE_VALUE_PROHIBITED = -11, |
| 48 | #define LOCKDOWN_E_MUX_ERROR -12 | 48 | LOCKDOWN_E_MUX_ERROR = -12, |
| 49 | #define LOCKDOWN_E_ACTIVATION_FAILED -13 | 49 | LOCKDOWN_E_ACTIVATION_FAILED = -13, |
| 50 | #define LOCKDOWN_E_PASSWORD_PROTECTED -14 | 50 | LOCKDOWN_E_PASSWORD_PROTECTED = -14, |
| 51 | #define LOCKDOWN_E_NO_RUNNING_SESSION -15 | 51 | LOCKDOWN_E_NO_RUNNING_SESSION = -15, |
| 52 | #define LOCKDOWN_E_INVALID_HOST_ID -16 | 52 | LOCKDOWN_E_INVALID_HOST_ID = -16, |
| 53 | #define LOCKDOWN_E_INVALID_SERVICE -17 | 53 | LOCKDOWN_E_INVALID_SERVICE = -17, |
| 54 | #define LOCKDOWN_E_INVALID_ACTIVATION_RECORD -18 | 54 | LOCKDOWN_E_INVALID_ACTIVATION_RECORD = -18, |
| 55 | #define LOCKDOWN_E_PAIRING_DIALOG_PENDING -20 | 55 | LOCKDOWN_E_PAIRING_DIALOG_PENDING = -20, |
| 56 | #define LOCKDOWN_E_USER_DENIED_PAIRING -21 | 56 | LOCKDOWN_E_USER_DENIED_PAIRING = -21, |
| 57 | 57 | LOCKDOWN_E_UNKNOWN_ERROR = -256 | |
| 58 | #define LOCKDOWN_E_UNKNOWN_ERROR -256 | 58 | } lockdownd_error_t; |
| 59 | /*@}*/ | ||
| 60 | |||
| 61 | /** Represents an error code. */ | ||
| 62 | typedef int16_t lockdownd_error_t; | ||
| 63 | 59 | ||
| 64 | typedef struct lockdownd_client_private lockdownd_client_private; | 60 | typedef struct lockdownd_client_private lockdownd_client_private; |
| 65 | typedef lockdownd_client_private *lockdownd_client_t; /**< The client handle. */ | 61 | typedef lockdownd_client_private *lockdownd_client_t; /**< The client handle. */ |
