summaryrefslogtreecommitdiffstats
path: root/cython/afc.pxi
diff options
context:
space:
mode:
Diffstat (limited to 'cython/afc.pxi')
-rw-r--r--cython/afc.pxi5
1 files changed, 3 insertions, 2 deletions
diff --git a/cython/afc.pxi b/cython/afc.pxi
index abc1180..e34588f 100644
--- a/cython/afc.pxi
+++ b/cython/afc.pxi
@@ -171,8 +171,9 @@ cdef class AfcClient(BaseService):
171 __service_name__ = "com.apple.afc" 171 __service_name__ = "com.apple.afc"
172 cdef afc_client_t _c_client 172 cdef afc_client_t _c_client
173 173
174 def __cinit__(self, iDevice device not None, LockdownServiceDescriptor descriptor, *args, **kwargs): 174 def __cinit__(self, iDevice device = None, LockdownServiceDescriptor descriptor = None, *args, **kwargs):
175 self.handle_error(afc_client_new(device._c_dev, descriptor._c_service_descriptor, &(self._c_client))) 175 if (device is not None and descriptor is not None):
176 self.handle_error(afc_client_new(device._c_dev, descriptor._c_service_descriptor, &(self._c_client)))
176 177
177 def __dealloc__(self): 178 def __dealloc__(self):
178 cdef afc_error_t err 179 cdef afc_error_t err