diff options
| author | 2013-02-27 15:10:57 +0100 | |
|---|---|---|
| committer | 2013-02-27 15:10:57 +0100 | |
| commit | 0cac547eb79492e04176ad541fe6fb1d1f576824 (patch) | |
| tree | c285e1a996233b2829645144bdfb936d64b4fcc1 /cython/installation_proxy.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/installation_proxy.pxi')
| -rw-r--r-- | cython/installation_proxy.pxi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cython/installation_proxy.pxi b/cython/installation_proxy.pxi index 3dfb0b1..ff541df 100644 --- a/cython/installation_proxy.pxi +++ b/cython/installation_proxy.pxi | |||
| @@ -13,7 +13,7 @@ cdef extern from "libimobiledevice/installation_proxy.h": | |||
| 13 | INSTPROXY_E_OP_FAILED = -5 | 13 | INSTPROXY_E_OP_FAILED = -5 |
| 14 | INSTPROXY_E_UNKNOWN_ERROR = -256 | 14 | INSTPROXY_E_UNKNOWN_ERROR = -256 |
| 15 | 15 | ||
| 16 | instproxy_error_t instproxy_client_new(idevice_t device, uint16_t port, instproxy_client_t *client) | 16 | instproxy_error_t instproxy_client_new(idevice_t device, lockdownd_service_descriptor_t descriptor, instproxy_client_t *client) |
| 17 | instproxy_error_t instproxy_client_free(instproxy_client_t client) | 17 | instproxy_error_t instproxy_client_free(instproxy_client_t client) |
| 18 | 18 | ||
| 19 | instproxy_error_t instproxy_browse(instproxy_client_t client, plist.plist_t client_options, plist.plist_t *result) | 19 | instproxy_error_t instproxy_browse(instproxy_client_t client, plist.plist_t client_options, plist.plist_t *result) |
| @@ -46,11 +46,11 @@ cdef class InstallationProxyClient(PropertyListService): | |||
| 46 | __service_name__ = "com.apple.mobile.installation_proxy" | 46 | __service_name__ = "com.apple.mobile.installation_proxy" |
| 47 | cdef instproxy_client_t _c_client | 47 | cdef instproxy_client_t _c_client |
| 48 | 48 | ||
| 49 | def __cinit__(self, iDevice device not None, int port, *args, **kwargs): | 49 | def __cinit__(self, iDevice device not None, LockdownServiceDescriptor descriptor, *args, **kwargs): |
| 50 | cdef: | 50 | cdef: |
| 51 | iDevice dev = device | 51 | iDevice dev = device |
| 52 | instproxy_error_t err | 52 | instproxy_error_t err |
| 53 | err = instproxy_client_new(dev._c_dev, port, &self._c_client) | 53 | err = instproxy_client_new(dev._c_dev, descriptor._c_service_descriptor, &self._c_client) |
| 54 | self.handle_error(err) | 54 | self.handle_error(err) |
| 55 | 55 | ||
| 56 | def __dealloc__(self): | 56 | def __dealloc__(self): |
