diff options
author | Bryan Forbes | 2010-03-18 20:50:26 -0500 |
---|---|---|
committer | Martin Szulecki | 2012-03-20 23:25:54 +0100 |
commit | 7b4cb7fb2f1b1ed29f3bc97a9bcae5fc2a89fe95 (patch) | |
tree | 4268abec171becef6befdfc5bd0a1ffc46d1962a /cython/mobilesync.pxi | |
parent | 68c63cc1382326e7f0cb4e6bd863427f9069ca05 (diff) | |
download | libimobiledevice-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.pxi | 14 |
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) |