diff options
author | Martin Szulecki | 2013-02-27 15:10:57 +0100 |
---|---|---|
committer | Martin Szulecki | 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": AFC_LOCK_EX = 2 | 4 AFC_LOCK_UN = 8 | 4 - afc_error_t afc_client_new(idevice_t device, uint16_t port, afc_client_t *client) + afc_error_t afc_client_new(idevice_t device, lockdownd_service_descriptor_t descriptor, afc_client_t *client) afc_error_t afc_client_free(afc_client_t client) afc_error_t afc_get_device_info(afc_client_t client, char ***infos) afc_error_t afc_read_directory(afc_client_t client, char *dir, char ***list) @@ -153,8 +153,8 @@ cdef class AfcClient(BaseService): __service_name__ = "com.apple.afc" cdef afc_client_t _c_client - def __cinit__(self, iDevice device not None, int port, *args, **kwargs): - self.handle_error(afc_client_new(device._c_dev, port, &(self._c_client))) + def __cinit__(self, iDevice device not None, LockdownServiceDescriptor descriptor, *args, **kwargs): + self.handle_error(afc_client_new(device._c_dev, descriptor._c_service_descriptor, &(self._c_client))) def __dealloc__(self): cdef afc_error_t err |