diff options
Diffstat (limited to 'cython/imobiledevice.pxd')
| -rw-r--r-- | cython/imobiledevice.pxd | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/cython/imobiledevice.pxd b/cython/imobiledevice.pxd index 8a7d6b2..8efd669 100644 --- a/cython/imobiledevice.pxd +++ b/cython/imobiledevice.pxd | |||
| @@ -17,9 +17,12 @@ cdef class Base: | |||
| 17 | cdef class iDeviceError(BaseError): pass | 17 | cdef class iDeviceError(BaseError): pass |
| 18 | 18 | ||
| 19 | cdef extern from "libimobiledevice/libimobiledevice.h": | 19 | cdef extern from "libimobiledevice/libimobiledevice.h": |
| 20 | cdef struct idevice_int: | 20 | cdef struct idevice_private: |
| 21 | pass | 21 | pass |
| 22 | ctypedef idevice_int* idevice_t | 22 | ctypedef idevice_private* idevice_t |
| 23 | cdef struct idevice_connection_private: | ||
| 24 | pass | ||
| 25 | ctypedef idevice_connection_private* idevice_connection_t | ||
| 23 | cdef enum idevice_event_type: | 26 | cdef enum idevice_event_type: |
| 24 | IDEVICE_DEVICE_ADD = 1, | 27 | IDEVICE_DEVICE_ADD = 1, |
| 25 | IDEVICE_DEVICE_REMOVE | 28 | IDEVICE_DEVICE_REMOVE |
| @@ -32,15 +35,22 @@ cdef extern from "libimobiledevice/libimobiledevice.h": | |||
| 32 | cdef class iDeviceEvent: | 35 | cdef class iDeviceEvent: |
| 33 | cdef const_idevice_event_t _c_event | 36 | cdef const_idevice_event_t _c_event |
| 34 | 37 | ||
| 38 | cdef class iDeviceConnection(Base): | ||
| 39 | cdef idevice_connection_t _c_connection | ||
| 40 | |||
| 41 | cpdef disconnect(self) | ||
| 42 | |||
| 35 | cdef class iDevice(Base): | 43 | cdef class iDevice(Base): |
| 36 | cdef idevice_t _c_dev | 44 | cdef idevice_t _c_dev |
| 37 | 45 | ||
| 46 | cpdef iDeviceConnection connect(self, uint16_t port) | ||
| 47 | |||
| 38 | cdef class LockdownError(BaseError): pass | 48 | cdef class LockdownError(BaseError): pass |
| 39 | 49 | ||
| 40 | cdef extern from "libimobiledevice/lockdown.h": | 50 | cdef extern from "libimobiledevice/lockdown.h": |
| 41 | cdef struct lockdownd_client_int: | 51 | cdef struct lockdownd_client_private: |
| 42 | pass | 52 | pass |
| 43 | ctypedef lockdownd_client_int *lockdownd_client_t | 53 | ctypedef lockdownd_client_private *lockdownd_client_t |
| 44 | 54 | ||
| 45 | cdef class LockdownClient(Base): | 55 | cdef class LockdownClient(Base): |
| 46 | cdef lockdownd_client_t _c_client | 56 | cdef lockdownd_client_t _c_client |
