diff options
Diffstat (limited to 'cython/mobilesync.pxi')
| -rw-r--r-- | cython/mobilesync.pxi | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/cython/mobilesync.pxi b/cython/mobilesync.pxi index d5dacb1..1b36ba7 100644 --- a/cython/mobilesync.pxi +++ b/cython/mobilesync.pxi | |||
| @@ -28,19 +28,14 @@ cdef class MobileSyncError(BaseError): | |||
| 28 | } | 28 | } |
| 29 | BaseError.__init__(self, *args, **kwargs) | 29 | BaseError.__init__(self, *args, **kwargs) |
| 30 | 30 | ||
| 31 | cdef class MobileSyncClient(PropertyListClient): | 31 | cdef class MobileSyncClient(DeviceLinkService): |
| 32 | __service_name__ = "com.apple.mobilesync" | ||
| 32 | cdef mobilesync_client_t _c_client | 33 | cdef mobilesync_client_t _c_client |
| 33 | 34 | ||
| 34 | def __cinit__(self, iDevice device not None, LockdownClient lockdown=None, *args, **kwargs): | 35 | def __cinit__(self, iDevice device not None, int port, *args, **kwargs): |
| 35 | cdef: | 36 | cdef: |
| 36 | iDevice dev = device | 37 | iDevice dev = device |
| 37 | LockdownClient lckd | ||
| 38 | mobilesync_error_t err | 38 | mobilesync_error_t err |
| 39 | if lockdown is None: | ||
| 40 | lckd = LockdownClient(dev) | ||
| 41 | else: | ||
| 42 | lckd = lockdown | ||
| 43 | port = lckd.start_service("com.apple.mobilesync") | ||
| 44 | err = mobilesync_client_new(dev._c_dev, port, &(self._c_client)) | 39 | err = mobilesync_client_new(dev._c_dev, port, &(self._c_client)) |
| 45 | self.handle_error(err) | 40 | self.handle_error(err) |
| 46 | 41 | ||
