summaryrefslogtreecommitdiffstats
path: root/cython/notification_proxy.pxi
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-02-27 15:10:57 +0100
committerGravatar Martin Szulecki2013-02-27 15:10:57 +0100
commit0cac547eb79492e04176ad541fe6fb1d1f576824 (patch)
treec285e1a996233b2829645144bdfb936d64b4fcc1 /cython/notification_proxy.pxi
parent12754fa1c93d810f408b2de291b44e39eaee7ee5 (diff)
downloadlibimobiledevice-0cac547eb79492e04176ad541fe6fb1d1f576824.tar.gz
libimobiledevice-0cac547eb79492e04176ad541fe6fb1d1f576824.tar.bz2
cython: Port all binding code to latest API and fix broken compilation
Diffstat (limited to 'cython/notification_proxy.pxi')
-rw-r--r--cython/notification_proxy.pxi6
1 files changed, 3 insertions, 3 deletions
diff --git a/cython/notification_proxy.pxi b/cython/notification_proxy.pxi
index 07a72d9..4ffbf07 100644
--- a/cython/notification_proxy.pxi
+++ b/cython/notification_proxy.pxi
@@ -9,7 +9,7 @@ cdef extern from "libimobiledevice/notification_proxy.h":
9 NP_E_CONN_FAILED = -3 9 NP_E_CONN_FAILED = -3
10 NP_E_UNKNOWN_ERROR = -256 10 NP_E_UNKNOWN_ERROR = -256
11 ctypedef void (*np_notify_cb_t) (const_char_ptr notification, void *userdata) 11 ctypedef void (*np_notify_cb_t) (const_char_ptr notification, void *userdata)
12 np_error_t np_client_new(idevice_t device, uint16_t port, np_client_t *client) 12 np_error_t np_client_new(idevice_t device, lockdownd_service_descriptor_t descriptor, np_client_t *client)
13 np_error_t np_client_free(np_client_t client) 13 np_error_t np_client_free(np_client_t client)
14 np_error_t np_post_notification(np_client_t client, char *notification) 14 np_error_t np_post_notification(np_client_t client, char *notification)
15 np_error_t np_observe_notification(np_client_t client, char *notification) 15 np_error_t np_observe_notification(np_client_t client, char *notification)
@@ -88,8 +88,8 @@ cdef class NotificationProxyClient(PropertyListService):
88 __service_name__ = "com.apple.mobile.notification_proxy" 88 __service_name__ = "com.apple.mobile.notification_proxy"
89 cdef np_client_t _c_client 89 cdef np_client_t _c_client
90 90
91 def __cinit__(self, iDevice device not None, int port, *args, **kwargs): 91 def __cinit__(self, iDevice device not None, LockdownServiceDescriptor descriptor, *args, **kwargs):
92 self.handle_error(np_client_new(device._c_dev, port, &self._c_client)) 92 self.handle_error(np_client_new(device._c_dev, descriptor._c_service_descriptor, &self._c_client))
93 93
94 def __dealloc__(self): 94 def __dealloc__(self):
95 cdef np_error_t err 95 cdef np_error_t err