diff options
| author | 2010-04-09 16:52:30 -0500 | |
|---|---|---|
| committer | 2012-03-20 23:25:55 +0100 | |
| commit | bea5efe442daeab05d5d7a2e9d9e7b934ba6e684 (patch) | |
| tree | 0346eebd799517c0976e640db7241d0c72cf7d95 /cython/notification_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/notification_proxy.pxi')
| -rw-r--r-- | cython/notification_proxy.pxi | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/cython/notification_proxy.pxi b/cython/notification_proxy.pxi index d5f2d25..cc25f2d 100644 --- a/cython/notification_proxy.pxi +++ b/cython/notification_proxy.pxi | |||
| @@ -31,18 +31,13 @@ cdef class NotificationProxyError(BaseError): | |||
| 31 | BaseError.__init__(self, *args, **kwargs) | 31 | BaseError.__init__(self, *args, **kwargs) |
| 32 | 32 | ||
| 33 | cdef class NotificationProxy(Base): | 33 | cdef class NotificationProxy(Base): |
| 34 | __service_name__ = "com.apple.mobile.notification_proxy" | ||
| 34 | cdef np_client_t _c_client | 35 | cdef np_client_t _c_client |
| 35 | 36 | ||
| 36 | def __cinit__(self, iDevice device not None, LockdownClient lockdown=None, *args, **kwargs): | 37 | def __cinit__(self, iDevice device not None, int port, *args, **kwargs): |
| 37 | cdef: | 38 | cdef: |
| 38 | iDevice dev = device | 39 | iDevice dev = device |
| 39 | LockdownClient lckd | ||
| 40 | np_error_t err | 40 | np_error_t err |
| 41 | if lockdown is None: | ||
| 42 | lckd = LockdownClient(dev) | ||
| 43 | else: | ||
| 44 | lckd = lockdown | ||
| 45 | port = lckd.start_service("com.apple.mobile.notification_proxy") | ||
| 46 | err = np_client_new(dev._c_dev, port, &self._c_client) | 41 | err = np_client_new(dev._c_dev, port, &self._c_client) |
| 47 | self.handle_error(err) | 42 | self.handle_error(err) |
| 48 | 43 | ||
