diff options
| author | 2014-12-13 13:17:44 +0800 | |
|---|---|---|
| committer | 2015-01-12 18:33:49 +0100 | |
| commit | 7b082b87102725a2e282ac5bfe8bf5ee1fb57437 (patch) | |
| tree | a2f88d13538d46c778f4ae9e557e4ac85f2db976 | |
| parent | f7884fb0af7fe08dbb2989617b711a33945f329e (diff) | |
| download | libimobiledevice-7b082b87102725a2e282ac5bfe8bf5ee1fb57437.tar.gz libimobiledevice-7b082b87102725a2e282ac5bfe8bf5ee1fb57437.tar.bz2 | |
cython: Add new FILE_RELAY_E_PERMISSION_DENIED(-6) error to detect permission denied on iOS8+
| -rw-r--r-- | cython/file_relay.pxi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cython/file_relay.pxi b/cython/file_relay.pxi index ec4942e..5e9cbbe 100644 --- a/cython/file_relay.pxi +++ b/cython/file_relay.pxi | |||
| @@ -11,6 +11,7 @@ cdef extern from "libimobiledevice/file_relay.h": | |||
| 11 | FILE_RELAY_E_MUX_ERROR = -3 | 11 | FILE_RELAY_E_MUX_ERROR = -3 |
| 12 | FILE_RELAY_E_INVALID_SOURCE = -4 | 12 | FILE_RELAY_E_INVALID_SOURCE = -4 |
| 13 | FILE_RELAY_E_STAGING_EMPTY = -5 | 13 | FILE_RELAY_E_STAGING_EMPTY = -5 |
| 14 | FILE_RELAY_E_PERMISSION_DENIED = -6 | ||
| 14 | FILE_RELAY_E_UNKNOWN_ERROR = -256 | 15 | FILE_RELAY_E_UNKNOWN_ERROR = -256 |
| 15 | 16 | ||
| 16 | file_relay_error_t file_relay_client_new(idevice_t device, lockdownd_service_descriptor_t descriptor, file_relay_client_t *client) | 17 | file_relay_error_t file_relay_client_new(idevice_t device, lockdownd_service_descriptor_t descriptor, file_relay_client_t *client) |
| @@ -27,6 +28,7 @@ cdef class FileRelayError(BaseError): | |||
| 27 | FILE_RELAY_E_MUX_ERROR: "MUX error", | 28 | FILE_RELAY_E_MUX_ERROR: "MUX error", |
| 28 | FILE_RELAY_E_INVALID_SOURCE: "Invalid source", | 29 | FILE_RELAY_E_INVALID_SOURCE: "Invalid source", |
| 29 | FILE_RELAY_E_STAGING_EMPTY: "Staging empty", | 30 | FILE_RELAY_E_STAGING_EMPTY: "Staging empty", |
| 31 | FILE_RELAY_E_PERMISSION_DENIED: "Permission denied", | ||
| 30 | FILE_RELAY_E_UNKNOWN_ERROR: "Unknown error" | 32 | FILE_RELAY_E_UNKNOWN_ERROR: "Unknown error" |
| 31 | } | 33 | } |
| 32 | BaseError.__init__(self, *args, **kwargs) | 34 | BaseError.__init__(self, *args, **kwargs) |
