diff options
| author | 2019-09-28 12:49:17 +0200 | |
|---|---|---|
| committer | 2019-09-28 12:49:17 +0200 | |
| commit | 656b96ca6caac90eb78266bd1fabe7b76bcb8c03 (patch) | |
| tree | 07f5864bad103b970d90dc68d98590e4bda60081 /cython/restore.pxi | |
| parent | e88fdf99f943c9523ed9f1d30c940804ad99d7de (diff) | |
| download | libimobiledevice-656b96ca6caac90eb78266bd1fabe7b76bcb8c03.tar.gz libimobiledevice-656b96ca6caac90eb78266bd1fabe7b76bcb8c03.tar.bz2 | |
cython: Fix all error codes after recent updates
Diffstat (limited to 'cython/restore.pxi')
| -rw-r--r-- | cython/restore.pxi | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/cython/restore.pxi b/cython/restore.pxi index 7d3d80e..9d03935 100644 --- a/cython/restore.pxi +++ b/cython/restore.pxi | |||
| @@ -6,12 +6,10 @@ cdef extern from "libimobiledevice/restore.h": | |||
| 6 | ctypedef enum restored_error_t: | 6 | ctypedef enum restored_error_t: |
| 7 | RESTORE_E_SUCCESS = 0 | 7 | RESTORE_E_SUCCESS = 0 |
| 8 | RESTORE_E_INVALID_ARG = -1 | 8 | RESTORE_E_INVALID_ARG = -1 |
| 9 | RESTORE_E_INVALID_CONF = -2 | 9 | RESTORE_E_PLIST_ERROR = -2 |
| 10 | RESTORE_E_PLIST_ERROR = -3 | 10 | RESTORE_E_MUX_ERROR = -3 |
| 11 | RESTORE_E_DICT_ERROR = -4 | 11 | RESTORE_E_NOT_ENOUGH_DATA = -4 |
| 12 | RESTORE_E_NOT_ENOUGH_DATA = -5 | 12 | RESTORE_E_RECEIVE_TIMEOUT = -5 |
| 13 | RESTORE_E_MUX_ERROR = -6 | ||
| 14 | RESTORE_E_START_RESTORE_FAILED = -7 | ||
| 15 | RESTORE_E_UNKNOWN_ERROR = -256 | 13 | RESTORE_E_UNKNOWN_ERROR = -256 |
| 16 | 14 | ||
| 17 | restored_error_t restored_client_new(idevice_t device, restored_client_t *client, char *label) | 15 | restored_error_t restored_client_new(idevice_t device, restored_client_t *client, char *label) |
| @@ -34,12 +32,10 @@ cdef class RestoreError(BaseError): | |||
| 34 | self._lookup_table = { | 32 | self._lookup_table = { |
| 35 | RESTORE_E_SUCCESS: "Success", | 33 | RESTORE_E_SUCCESS: "Success", |
| 36 | RESTORE_E_INVALID_ARG: "Invalid argument", | 34 | RESTORE_E_INVALID_ARG: "Invalid argument", |
| 37 | RESTORE_E_INVALID_CONF: "Invalid configuration", | ||
| 38 | RESTORE_E_PLIST_ERROR: "Property list error", | 35 | RESTORE_E_PLIST_ERROR: "Property list error", |
| 39 | RESTORE_E_DICT_ERROR: "Dict error", | ||
| 40 | RESTORE_E_NOT_ENOUGH_DATA: "Not enough data", | ||
| 41 | RESTORE_E_MUX_ERROR: "MUX Error", | 36 | RESTORE_E_MUX_ERROR: "MUX Error", |
| 42 | RESTORE_E_START_RESTORE_FAILED: "Starting restore failed", | 37 | RESTORE_E_NOT_ENOUGH_DATA: "Not enough data", |
| 38 | RESTORE_E_RECEIVE_TIMEOUT: "Receive timeout", | ||
| 43 | RESTORE_E_UNKNOWN_ERROR: "Unknown error" | 39 | RESTORE_E_UNKNOWN_ERROR: "Unknown error" |
| 44 | } | 40 | } |
| 45 | BaseError.__init__(self, *args, **kwargs) | 41 | BaseError.__init__(self, *args, **kwargs) |
