diff options
| author | 2019-06-13 02:01:04 +0300 | |
|---|---|---|
| committer | 2019-06-13 01:41:20 +0200 | |
| commit | 4d8b89223cbc9f530cc650ab5131c09eab1af258 (patch) | |
| tree | e63216393208c07ae83c7b8eba5e0a9546de4fef /cython/imobiledevice.pyx | |
| parent | 6edc36fccb52a963c9ebfbb44ba7b91570e0fd06 (diff) | |
| download | libimobiledevice-4d8b89223cbc9f530cc650ab5131c09eab1af258.tar.gz libimobiledevice-4d8b89223cbc9f530cc650ab5131c09eab1af258.tar.bz2 | |
Timeout support for SSL connections and better timeout handeling.
Diffstat (limited to 'cython/imobiledevice.pyx')
| -rw-r--r-- | cython/imobiledevice.pyx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cython/imobiledevice.pyx b/cython/imobiledevice.pyx index bc861b3..141f67c 100644 --- a/cython/imobiledevice.pyx +++ b/cython/imobiledevice.pyx | |||
| @@ -38,8 +38,8 @@ cdef extern from "libimobiledevice/libimobiledevice.h": | |||
| 38 | IDEVICE_E_UNKNOWN_ERROR = -2 | 38 | IDEVICE_E_UNKNOWN_ERROR = -2 |
| 39 | IDEVICE_E_NO_DEVICE = -3 | 39 | IDEVICE_E_NO_DEVICE = -3 |
| 40 | IDEVICE_E_NOT_ENOUGH_DATA = -4 | 40 | IDEVICE_E_NOT_ENOUGH_DATA = -4 |
| 41 | IDEVICE_E_BAD_HEADER = -5 | ||
| 42 | IDEVICE_E_SSL_ERROR = -6 | 41 | IDEVICE_E_SSL_ERROR = -6 |
| 42 | IDEVICE_E_TIMEOUT = -7 | ||
| 43 | ctypedef void (*idevice_event_cb_t) (const_idevice_event_t event, void *user_data) | 43 | ctypedef void (*idevice_event_cb_t) (const_idevice_event_t event, void *user_data) |
| 44 | cdef extern idevice_error_t idevice_event_subscribe(idevice_event_cb_t callback, void *user_data) | 44 | cdef extern idevice_error_t idevice_event_subscribe(idevice_event_cb_t callback, void *user_data) |
| 45 | cdef extern idevice_error_t idevice_event_unsubscribe() | 45 | cdef extern idevice_error_t idevice_event_unsubscribe() |
| @@ -64,8 +64,8 @@ cdef class iDeviceError(BaseError): | |||
| 64 | IDEVICE_E_UNKNOWN_ERROR: 'Unknown error', | 64 | IDEVICE_E_UNKNOWN_ERROR: 'Unknown error', |
| 65 | IDEVICE_E_NO_DEVICE: 'No device', | 65 | IDEVICE_E_NO_DEVICE: 'No device', |
| 66 | IDEVICE_E_NOT_ENOUGH_DATA: 'Not enough data', | 66 | IDEVICE_E_NOT_ENOUGH_DATA: 'Not enough data', |
| 67 | IDEVICE_E_BAD_HEADER: 'Bad header', | 67 | IDEVICE_E_SSL_ERROR: 'SSL Error', |
| 68 | IDEVICE_E_SSL_ERROR: 'SSL Error' | 68 | IDEVICE_E_TIMEOUT: 'Connection timeout' |
| 69 | } | 69 | } |
| 70 | BaseError.__init__(self, *args, **kwargs) | 70 | BaseError.__init__(self, *args, **kwargs) |
| 71 | 71 | ||
