summaryrefslogtreecommitdiffstats
path: root/cython/imobiledevice.pxd
diff options
context:
space:
mode:
authorGravatar Bryan Forbes2010-03-31 14:19:38 -0500
committerGravatar Martin Szulecki2012-03-20 23:25:55 +0100
commit23954a2b28e6f763a83524a85ead4716620ee7cc (patch)
tree33a4a940c26d7b7a228400ffcf6abbc0435958ae /cython/imobiledevice.pxd
parent7b4cb7fb2f1b1ed29f3bc97a9bcae5fc2a89fe95 (diff)
downloadlibimobiledevice-23954a2b28e6f763a83524a85ead4716620ee7cc.tar.gz
libimobiledevice-23954a2b28e6f763a83524a85ead4716620ee7cc.tar.bz2
Added all remaining classes from libimobiledevice.
Diffstat (limited to 'cython/imobiledevice.pxd')
-rw-r--r--cython/imobiledevice.pxd18
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:
17cdef class iDeviceError(BaseError): pass 17cdef class iDeviceError(BaseError): pass
18 18
19cdef extern from "libimobiledevice/libimobiledevice.h": 19cdef 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":
32cdef class iDeviceEvent: 35cdef class iDeviceEvent:
33 cdef const_idevice_event_t _c_event 36 cdef const_idevice_event_t _c_event
34 37
38cdef class iDeviceConnection(Base):
39 cdef idevice_connection_t _c_connection
40
41 cpdef disconnect(self)
42
35cdef class iDevice(Base): 43cdef 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
38cdef class LockdownError(BaseError): pass 48cdef class LockdownError(BaseError): pass
39 49
40cdef extern from "libimobiledevice/lockdown.h": 50cdef 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
45cdef class LockdownClient(Base): 55cdef class LockdownClient(Base):
46 cdef lockdownd_client_t _c_client 56 cdef lockdownd_client_t _c_client