summaryrefslogtreecommitdiffstats
path: root/cython/afc.pxi
diff options
context:
space:
mode:
Diffstat (limited to 'cython/afc.pxi')
-rw-r--r--cython/afc.pxi6
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