summaryrefslogtreecommitdiffstats
path: root/cython/mobilebackup.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/mobilebackup.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/mobilebackup.pxi')
-rw-r--r--cython/mobilebackup.pxi14
1 files changed, 7 insertions, 7 deletions
diff --git a/cython/mobilebackup.pxi b/cython/mobilebackup.pxi
index f6b13a9..53a4b6f 100644
--- a/cython/mobilebackup.pxi
+++ b/cython/mobilebackup.pxi
@@ -3,13 +3,13 @@ cdef extern from "libimobiledevice/mobilebackup.h":
pass
ctypedef mobilebackup_client_int *mobilebackup_client_t
- ctypedef int16_t mobilebackup_error_t
- int16_t MOBILEBACKUP_E_SUCCESS
- int16_t MOBILEBACKUP_E_INVALID_ARG
- int16_t MOBILEBACKUP_E_PLIST_ERROR
- int16_t MOBILEBACKUP_E_MUX_ERROR
- int16_t MOBILEBACKUP_E_BAD_VERSION
- int16_t MOBILEBACKUP_E_UNKNOWN_ERROR
+ ctypedef enum mobilebackup_error_t:
+ MOBILEBACKUP_E_SUCCESS = 0
+ MOBILEBACKUP_E_INVALID_ARG = -1
+ MOBILEBACKUP_E_PLIST_ERROR = -2
+ MOBILEBACKUP_E_MUX_ERROR = -3
+ MOBILEBACKUP_E_BAD_VERSION = -4
+ MOBILEBACKUP_E_UNKNOWN_ERROR = -256
mobilebackup_error_t mobilebackup_client_new(idevice_t device, uint16_t port, mobilebackup_client_t * client)
mobilebackup_error_t mobilebackup_client_free(mobilebackup_client_t client)