diff options
author | Bryan Forbes | 2010-03-31 14:19:38 -0500 |
---|---|---|
committer | Martin Szulecki | 2012-03-20 23:25:55 +0100 |
commit | 23954a2b28e6f763a83524a85ead4716620ee7cc (patch) | |
tree | 33a4a940c26d7b7a228400ffcf6abbc0435958ae /cython/imobiledevice.pxd | |
parent | 7b4cb7fb2f1b1ed29f3bc97a9bcae5fc2a89fe95 (diff) | |
download | libimobiledevice-23954a2b28e6f763a83524a85ead4716620ee7cc.tar.gz libimobiledevice-23954a2b28e6f763a83524a85ead4716620ee7cc.tar.bz2 |
Added all remaining classes from libimobiledevice.
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: cdef class iDeviceError(BaseError): pass cdef extern from "libimobiledevice/libimobiledevice.h": - cdef struct idevice_int: + cdef struct idevice_private: pass - ctypedef idevice_int* idevice_t + ctypedef idevice_private* idevice_t + cdef struct idevice_connection_private: + pass + ctypedef idevice_connection_private* idevice_connection_t cdef enum idevice_event_type: IDEVICE_DEVICE_ADD = 1, IDEVICE_DEVICE_REMOVE @@ -32,15 +35,22 @@ cdef extern from "libimobiledevice/libimobiledevice.h": cdef class iDeviceEvent: cdef const_idevice_event_t _c_event +cdef class iDeviceConnection(Base): + cdef idevice_connection_t _c_connection + + cpdef disconnect(self) + cdef class iDevice(Base): cdef idevice_t _c_dev + cpdef iDeviceConnection connect(self, uint16_t port) + cdef class LockdownError(BaseError): pass cdef extern from "libimobiledevice/lockdown.h": - cdef struct lockdownd_client_int: + cdef struct lockdownd_client_private: pass - ctypedef lockdownd_client_int *lockdownd_client_t + ctypedef lockdownd_client_private *lockdownd_client_t cdef class LockdownClient(Base): cdef lockdownd_client_t _c_client |