From 656b96ca6caac90eb78266bd1fabe7b76bcb8c03 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 28 Sep 2019 12:49:17 +0200 Subject: cython: Fix all error codes after recent updates --- cython/restore.pxi | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'cython/restore.pxi') 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) -- cgit v1.1-32-gdbae