summaryrefslogtreecommitdiffstats
path: root/cython/house_arrest.pxi
diff options
context:
space:
mode:
authorGravatar Kurt Kiefer2014-01-21 15:30:05 -0800
committerGravatar Martin Szulecki2014-03-12 19:23:48 +0100
commit2636941a177dcbbb0fc1d00fd3213632b55c9b7d (patch)
tree6e1371e08dc6f322b127689900e9fdb473d69d7d /cython/house_arrest.pxi
parent6c905358d5f6f73120369891b5c28b26fd6feb29 (diff)
downloadlibimobiledevice-2636941a177dcbbb0fc1d00fd3213632b55c9b7d.tar.gz
libimobiledevice-2636941a177dcbbb0fc1d00fd3213632b55c9b7d.tar.bz2
Changes to make cython HouseArrestClient functional.
Allow HouseArrestClient to initialize the AfcClient without running afc's normal __cinit__ body, and expose send_command and send_request methods to python. Signed-off-by: Martin Szulecki <m.szulecki@libimobiledevice.org>
Diffstat (limited to 'cython/house_arrest.pxi')
-rw-r--r--cython/house_arrest.pxi4
1 files changed, 2 insertions, 2 deletions
diff --git a/cython/house_arrest.pxi b/cython/house_arrest.pxi
index 2a81213..54eebc1 100644
--- a/cython/house_arrest.pxi
+++ b/cython/house_arrest.pxi
@@ -48,10 +48,10 @@ cdef class HouseArrestClient(PropertyListService):
cdef inline BaseError _error(self, int16_t ret):
return HouseArrestError(ret)
- cdef send_request(self, plist.Node message):
+ cpdef send_request(self, plist.Node message):
self.handle_error(house_arrest_send_request(self._c_client, message._c_node))
- cdef send_command(self, bytes command, bytes appid):
+ cpdef send_command(self, bytes command, bytes appid):
self.handle_error(house_arrest_send_command(self._c_client, command, appid))
cpdef plist.Node get_result(self):