diff options
| author | 2010-04-09 16:52:30 -0500 | |
|---|---|---|
| committer | 2012-03-20 23:25:55 +0100 | |
| commit | bea5efe442daeab05d5d7a2e9d9e7b934ba6e684 (patch) | |
| tree | 0346eebd799517c0976e640db7241d0c72cf7d95 /cython/installation_proxy.pxi | |
| parent | acac4f819ccafa6f6bb945626f2e21ec2b75074b (diff) | |
| download | libimobiledevice-bea5efe442daeab05d5d7a2e9d9e7b934ba6e684.tar.gz libimobiledevice-bea5efe442daeab05d5d7a2e9d9e7b934ba6e684.tar.bz2 | |
Implemented hierarchy suggested by Martin S.
Implemented new BaseService constructors.
Moved LockdownClient to lockdown.pxi.
Implemented more of the afc interface.
Diffstat (limited to 'cython/installation_proxy.pxi')
| -rw-r--r-- | cython/installation_proxy.pxi | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/cython/installation_proxy.pxi b/cython/installation_proxy.pxi index a8083d3..f584cbd 100644 --- a/cython/installation_proxy.pxi +++ b/cython/installation_proxy.pxi | |||
| @@ -43,18 +43,13 @@ cdef class InstallationProxyError(BaseError): | |||
| 43 | BaseError.__init__(self, *args, **kwargs) | 43 | BaseError.__init__(self, *args, **kwargs) |
| 44 | 44 | ||
| 45 | cdef class InstallationProxy(Base): | 45 | cdef class InstallationProxy(Base): |
| 46 | __service_name__ = "com.apple.mobile.installation_proxy" | ||
| 46 | cdef instproxy_client_t _c_client | 47 | cdef instproxy_client_t _c_client |
| 47 | 48 | ||
| 48 | def __cinit__(self, iDevice device not None, LockdownClient lockdown=None, *args, **kwargs): | 49 | def __cinit__(self, iDevice device not None, int port, *args, **kwargs): |
| 49 | cdef: | 50 | cdef: |
| 50 | iDevice dev = device | 51 | iDevice dev = device |
| 51 | LockdownClient lckd | ||
| 52 | instproxy_error_t err | 52 | instproxy_error_t err |
| 53 | if lockdown is None: | ||
| 54 | lckd = LockdownClient(dev) | ||
| 55 | else: | ||
| 56 | lckd = lockdown | ||
| 57 | port = lckd.start_service("com.apple.mobile.installation_proxy") | ||
| 58 | err = instproxy_client_new(dev._c_dev, port, &self._c_client) | 53 | err = instproxy_client_new(dev._c_dev, port, &self._c_client) |
| 59 | self.handle_error(err) | 54 | self.handle_error(err) |
| 60 | 55 | ||
