summaryrefslogtreecommitdiffstats
path: root/cython/mobilesync.pxi
diff options
context:
space:
mode:
authorGravatar Bryan Forbes2010-03-18 20:50:26 -0500
committerGravatar Martin Szulecki2012-03-20 23:25:54 +0100
commit7b4cb7fb2f1b1ed29f3bc97a9bcae5fc2a89fe95 (patch)
tree4268abec171becef6befdfc5bd0a1ffc46d1962a /cython/mobilesync.pxi
parent68c63cc1382326e7f0cb4e6bd863427f9069ca05 (diff)
downloadlibimobiledevice-7b4cb7fb2f1b1ed29f3bc97a9bcae5fc2a89fe95.tar.gz
libimobiledevice-7b4cb7fb2f1b1ed29f3bc97a9bcae5fc2a89fe95.tar.bz2
Added afc.pxi.
More errors handled. Changed error codes to enums in cython defs.
Diffstat (limited to 'cython/mobilesync.pxi')
-rw-r--r--cython/mobilesync.pxi14
1 files changed, 7 insertions, 7 deletions
diff --git a/cython/mobilesync.pxi b/cython/mobilesync.pxi
index abd56b4..87539d2 100644
--- a/cython/mobilesync.pxi
+++ b/cython/mobilesync.pxi
@@ -3,13 +3,13 @@ cdef extern from "libimobiledevice/mobilesync.h":
pass
ctypedef mobilesync_client_int *mobilesync_client_t
- ctypedef int16_t mobilesync_error_t
- int16_t MOBILESYNC_E_SUCCESS
- int16_t MOBILESYNC_E_INVALID_ARG
- int16_t MOBILESYNC_E_PLIST_ERROR
- int16_t MOBILESYNC_E_MUX_ERROR
- int16_t MOBILESYNC_E_BAD_VERSION
- int16_t MOBILESYNC_E_UNKNOWN_ERROR
+ ctypedef enum mobilesync_error_t:
+ MOBILESYNC_E_SUCCESS = 0
+ MOBILESYNC_E_INVALID_ARG = -1
+ MOBILESYNC_E_PLIST_ERROR = -2
+ MOBILESYNC_E_MUX_ERROR = -3
+ MOBILESYNC_E_BAD_VERSION = -4
+ MOBILESYNC_E_UNKNOWN_ERROR = -256
mobilesync_error_t mobilesync_client_new(idevice_t device, uint16_t port, mobilesync_client_t * client)
mobilesync_error_t mobilesync_client_free(mobilesync_client_t client)