diff options
| author | 2010-03-17 01:12:52 -0500 | |
|---|---|---|
| committer | 2012-03-20 23:25:54 +0100 | |
| commit | cfe6244f8954efce4ef12b9b4338cc0d41a9ff40 (patch) | |
| tree | 8b181941ea31e9f8a16930536b429178ce7d4afe /cython/property_list_service.pxi | |
| parent | bc6886898d03d28dc30c90db18c2a5f90f20c746 (diff) | |
| download | libimobiledevice-cfe6244f8954efce4ef12b9b4338cc0d41a9ff40.tar.gz libimobiledevice-cfe6244f8954efce4ef12b9b4338cc0d41a9ff40.tar.bz2 | |
Moved everything but iDevice and LockdownClient to pxi files.
Added MobileBackupClient and PropertyListService.
Diffstat (limited to 'cython/property_list_service.pxi')
| -rw-r--r-- | cython/property_list_service.pxi | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cython/property_list_service.pxi b/cython/property_list_service.pxi new file mode 100644 index 0000000..9b3f694 --- /dev/null +++ b/cython/property_list_service.pxi | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | cdef class PropertyListService: | ||
| 2 | cpdef send(self, plist.Node node): | ||
| 3 | cdef plist.Node n = node | ||
| 4 | cdef BaseError err = self._send(n._c_node) | ||
| 5 | if err: raise err | ||
| 6 | |||
| 7 | cpdef plist.Node receive(self): | ||
| 8 | cdef plist.plist_t c_node = NULL | ||
| 9 | cdef BaseError err = self._receive(&c_node) | ||
| 10 | if err: raise err | ||
| 11 | |||
| 12 | return plist.plist_t_to_node(c_node) | ||
| 13 | |||
| 14 | cdef _send(self, plist.plist_t node): pass | ||
| 15 | cdef _receive(self, plist.plist_t* c_node): pass | ||
