diff options
| author | 2013-02-27 15:10:57 +0100 | |
|---|---|---|
| committer | 2013-02-27 15:10:57 +0100 | |
| commit | 0cac547eb79492e04176ad541fe6fb1d1f576824 (patch) | |
| tree | c285e1a996233b2829645144bdfb936d64b4fcc1 /cython/imobiledevice.pyx | |
| parent | 12754fa1c93d810f408b2de291b44e39eaee7ee5 (diff) | |
| download | libimobiledevice-0cac547eb79492e04176ad541fe6fb1d1f576824.tar.gz libimobiledevice-0cac547eb79492e04176ad541fe6fb1d1f576824.tar.bz2 | |
cython: Port all binding code to latest API and fix broken compilation
Diffstat (limited to 'cython/imobiledevice.pyx')
| -rw-r--r-- | cython/imobiledevice.pyx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cython/imobiledevice.pyx b/cython/imobiledevice.pyx index cdb9978..de59456 100644 --- a/cython/imobiledevice.pyx +++ b/cython/imobiledevice.pyx | |||
| @@ -130,7 +130,7 @@ cdef class iDeviceConnection(Base): | |||
| 130 | err = idevice_disconnect(self._c_connection) | 130 | err = idevice_disconnect(self._c_connection) |
| 131 | self.handle_error(err) | 131 | self.handle_error(err) |
| 132 | 132 | ||
| 133 | cdef inline BaseError _error(self, int16_t ret): | 133 | cdef BaseError _error(self, int16_t ret): |
| 134 | return iDeviceError(ret) | 134 | return iDeviceError(ret) |
| 135 | 135 | ||
| 136 | from libc.stdlib cimport * | 136 | from libc.stdlib cimport * |
| @@ -148,7 +148,7 @@ cdef class iDevice(Base): | |||
| 148 | if self._c_dev is not NULL: | 148 | if self._c_dev is not NULL: |
| 149 | self.handle_error(idevice_free(self._c_dev)) | 149 | self.handle_error(idevice_free(self._c_dev)) |
| 150 | 150 | ||
| 151 | cdef inline BaseError _error(self, int16_t ret): | 151 | cdef BaseError _error(self, int16_t ret): |
| 152 | return iDeviceError(ret) | 152 | return iDeviceError(ret) |
| 153 | 153 | ||
| 154 | cpdef iDeviceConnection connect(self, uint16_t port): | 154 | cpdef iDeviceConnection connect(self, uint16_t port): |
