diff options
| author | 2013-02-27 15:10:57 +0100 | |
|---|---|---|
| committer | 2013-02-27 15:10:57 +0100 | |
| commit | 0cac547eb79492e04176ad541fe6fb1d1f576824 (patch) | |
| tree | c285e1a996233b2829645144bdfb936d64b4fcc1 /cython/afc.pxi | |
| parent | 12754fa1c93d810f408b2de291b44e39eaee7ee5 (diff) | |
| download | libimobiledevice-0cac547eb79492e04176ad541fe6fb1d1f576824.tar.gz libimobiledevice-0cac547eb79492e04176ad541fe6fb1d1f576824.tar.bz2 | |
cython: Port all binding code to latest API and fix broken compilation
Diffstat (limited to 'cython/afc.pxi')
| -rw-r--r-- | cython/afc.pxi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cython/afc.pxi b/cython/afc.pxi index 0383471..2608ee6 100644 --- a/cython/afc.pxi +++ b/cython/afc.pxi | |||
| @@ -46,7 +46,7 @@ cdef extern from "libimobiledevice/afc.h": | |||
| 46 | AFC_LOCK_EX = 2 | 4 | 46 | AFC_LOCK_EX = 2 | 4 |
| 47 | AFC_LOCK_UN = 8 | 4 | 47 | AFC_LOCK_UN = 8 | 4 |
| 48 | 48 | ||
| 49 | afc_error_t afc_client_new(idevice_t device, uint16_t port, afc_client_t *client) | 49 | afc_error_t afc_client_new(idevice_t device, lockdownd_service_descriptor_t descriptor, afc_client_t *client) |
| 50 | afc_error_t afc_client_free(afc_client_t client) | 50 | afc_error_t afc_client_free(afc_client_t client) |
| 51 | afc_error_t afc_get_device_info(afc_client_t client, char ***infos) | 51 | afc_error_t afc_get_device_info(afc_client_t client, char ***infos) |
| 52 | afc_error_t afc_read_directory(afc_client_t client, char *dir, char ***list) | 52 | afc_error_t afc_read_directory(afc_client_t client, char *dir, char ***list) |
| @@ -153,8 +153,8 @@ cdef class AfcClient(BaseService): | |||
| 153 | __service_name__ = "com.apple.afc" | 153 | __service_name__ = "com.apple.afc" |
| 154 | cdef afc_client_t _c_client | 154 | cdef afc_client_t _c_client |
| 155 | 155 | ||
| 156 | def __cinit__(self, iDevice device not None, int port, *args, **kwargs): | 156 | def __cinit__(self, iDevice device not None, LockdownServiceDescriptor descriptor, *args, **kwargs): |
| 157 | self.handle_error(afc_client_new(device._c_dev, port, &(self._c_client))) | 157 | self.handle_error(afc_client_new(device._c_dev, descriptor._c_service_descriptor, &(self._c_client))) |
| 158 | 158 | ||
| 159 | def __dealloc__(self): | 159 | def __dealloc__(self): |
| 160 | cdef afc_error_t err | 160 | cdef afc_error_t err |
