summaryrefslogtreecommitdiffstats
path: root/cython/restore.pxi
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-09-28 12:49:17 +0200
committerGravatar Nikias Bassen2019-09-28 12:49:17 +0200
commit656b96ca6caac90eb78266bd1fabe7b76bcb8c03 (patch)
tree07f5864bad103b970d90dc68d98590e4bda60081 /cython/restore.pxi
parente88fdf99f943c9523ed9f1d30c940804ad99d7de (diff)
downloadlibimobiledevice-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.pxi16
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":
ctypedef enum restored_error_t:
RESTORE_E_SUCCESS = 0
RESTORE_E_INVALID_ARG = -1
- RESTORE_E_INVALID_CONF = -2
- RESTORE_E_PLIST_ERROR = -3
- RESTORE_E_DICT_ERROR = -4
- RESTORE_E_NOT_ENOUGH_DATA = -5
- RESTORE_E_MUX_ERROR = -6
- RESTORE_E_START_RESTORE_FAILED = -7
+ RESTORE_E_PLIST_ERROR = -2
+ RESTORE_E_MUX_ERROR = -3
+ RESTORE_E_NOT_ENOUGH_DATA = -4
+ RESTORE_E_RECEIVE_TIMEOUT = -5
RESTORE_E_UNKNOWN_ERROR = -256
restored_error_t restored_client_new(idevice_t device, restored_client_t *client, char *label)
@@ -34,12 +32,10 @@ cdef class RestoreError(BaseError):
self._lookup_table = {
RESTORE_E_SUCCESS: "Success",
RESTORE_E_INVALID_ARG: "Invalid argument",
- RESTORE_E_INVALID_CONF: "Invalid configuration",
RESTORE_E_PLIST_ERROR: "Property list error",
- RESTORE_E_DICT_ERROR: "Dict error",
- RESTORE_E_NOT_ENOUGH_DATA: "Not enough data",
RESTORE_E_MUX_ERROR: "MUX Error",
- RESTORE_E_START_RESTORE_FAILED: "Starting restore failed",
+ RESTORE_E_NOT_ENOUGH_DATA: "Not enough data",
+ RESTORE_E_RECEIVE_TIMEOUT: "Receive timeout",
RESTORE_E_UNKNOWN_ERROR: "Unknown error"
}
BaseError.__init__(self, *args, **kwargs)