summaryrefslogtreecommitdiffstats
path: root/cython
diff options
context:
space:
mode:
authorGravatar Hao Zhou2014-12-13 13:17:44 +0800
committerGravatar Martin Szulecki2015-01-12 18:33:49 +0100
commit7b082b87102725a2e282ac5bfe8bf5ee1fb57437 (patch)
treea2f88d13538d46c778f4ae9e557e4ac85f2db976 /cython
parentf7884fb0af7fe08dbb2989617b711a33945f329e (diff)
downloadlibimobiledevice-7b082b87102725a2e282ac5bfe8bf5ee1fb57437.tar.gz
libimobiledevice-7b082b87102725a2e282ac5bfe8bf5ee1fb57437.tar.bz2
cython: Add new FILE_RELAY_E_PERMISSION_DENIED(-6) error to detect permission denied on iOS8+
Diffstat (limited to 'cython')
-rw-r--r--cython/file_relay.pxi2
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":
FILE_RELAY_E_MUX_ERROR = -3
FILE_RELAY_E_INVALID_SOURCE = -4
FILE_RELAY_E_STAGING_EMPTY = -5
+ FILE_RELAY_E_PERMISSION_DENIED = -6
FILE_RELAY_E_UNKNOWN_ERROR = -256
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):
FILE_RELAY_E_MUX_ERROR: "MUX error",
FILE_RELAY_E_INVALID_SOURCE: "Invalid source",
FILE_RELAY_E_STAGING_EMPTY: "Staging empty",
+ FILE_RELAY_E_PERMISSION_DENIED: "Permission denied",
FILE_RELAY_E_UNKNOWN_ERROR: "Unknown error"
}
BaseError.__init__(self, *args, **kwargs)