diff options
| -rw-r--r-- | cython/imobiledevice.pyx | 6 | ||||
| -rw-r--r-- | cython/installation_proxy.pxi | 2 | ||||
| -rw-r--r-- | cython/mobile_image_mounter.pxi | 2 | ||||
| -rw-r--r-- | cython/sbservices.pxi | 2 |
4 files changed, 7 insertions, 5 deletions
diff --git a/cython/imobiledevice.pyx b/cython/imobiledevice.pyx index b7ec87b..dc0fb88 100644 --- a/cython/imobiledevice.pyx +++ b/cython/imobiledevice.pyx | |||
| @@ -70,10 +70,12 @@ cdef class iDeviceError(BaseError): | |||
| 70 | cpdef set_debug_level(int level): | 70 | cpdef set_debug_level(int level): |
| 71 | idevice_set_debug_level(level) | 71 | idevice_set_debug_level(level) |
| 72 | 72 | ||
| 73 | cdef class iDeviceEvent: pass | 73 | cdef class iDeviceEvent: |
| 74 | def __init__(self, *args, **kwargs): | ||
| 75 | raise TypeError("iDeviceEvent cannot be instantiated") | ||
| 74 | 76 | ||
| 75 | cdef void idevice_event_cb(const_idevice_event_t c_event, void *user_data): | 77 | cdef void idevice_event_cb(const_idevice_event_t c_event, void *user_data): |
| 76 | cdef iDeviceEvent event = iDeviceEvent() | 78 | cdef iDeviceEvent event = iDeviceEvent.__new__(iDeviceEvent) |
| 77 | event._c_event = c_event | 79 | event._c_event = c_event |
| 78 | (<object>user_data)(event) | 80 | (<object>user_data)(event) |
| 79 | 81 | ||
diff --git a/cython/installation_proxy.pxi b/cython/installation_proxy.pxi index 0424a81..22e7e38 100644 --- a/cython/installation_proxy.pxi +++ b/cython/installation_proxy.pxi | |||
| @@ -42,7 +42,7 @@ cdef class InstallationProxyError(BaseError): | |||
| 42 | } | 42 | } |
| 43 | BaseError.__init__(self, *args, **kwargs) | 43 | BaseError.__init__(self, *args, **kwargs) |
| 44 | 44 | ||
| 45 | cdef class InstallationProxyClient(Base): | 45 | cdef class InstallationProxy(Base): |
| 46 | cdef instproxy_client_t _c_client | 46 | cdef instproxy_client_t _c_client |
| 47 | 47 | ||
| 48 | def __cinit__(self, iDevice device not None, LockdownClient lockdown=None, *args, **kwargs): | 48 | def __cinit__(self, iDevice device not None, LockdownClient lockdown=None, *args, **kwargs): |
diff --git a/cython/mobile_image_mounter.pxi b/cython/mobile_image_mounter.pxi index 8ec30d1..9086f2c 100644 --- a/cython/mobile_image_mounter.pxi +++ b/cython/mobile_image_mounter.pxi | |||
| @@ -27,7 +27,7 @@ cdef class MobileImageMounterError(BaseError): | |||
| 27 | } | 27 | } |
| 28 | BaseError.__init__(self, *args, **kwargs) | 28 | BaseError.__init__(self, *args, **kwargs) |
| 29 | 29 | ||
| 30 | cdef class MobileImageMounterClient(PropertyListClient): | 30 | cdef class MobileImageMounterClient(Base): |
| 31 | cdef mobile_image_mounter_client_t _c_client | 31 | cdef mobile_image_mounter_client_t _c_client |
| 32 | 32 | ||
| 33 | def __cinit__(self, iDevice device not None, LockdownClient lockdown=None, *args, **kwargs): | 33 | def __cinit__(self, iDevice device not None, LockdownClient lockdown=None, *args, **kwargs): |
diff --git a/cython/sbservices.pxi b/cython/sbservices.pxi index 0ad67c7..f458bec 100644 --- a/cython/sbservices.pxi +++ b/cython/sbservices.pxi | |||
| @@ -25,7 +25,7 @@ cdef class SpringboardServicesError(BaseError): | |||
| 25 | } | 25 | } |
| 26 | BaseError.__init__(self, *args, **kwargs) | 26 | BaseError.__init__(self, *args, **kwargs) |
| 27 | 27 | ||
| 28 | cdef class SpringboardServices: | 28 | cdef class SpringboardServicesClient(Base): |
| 29 | cdef sbservices_client_t _c_client | 29 | cdef sbservices_client_t _c_client |
| 30 | 30 | ||
| 31 | def __cinit__(self, iDevice device not None, LockdownClient lockdown=None, *args, **kwargs): | 31 | def __cinit__(self, iDevice device not None, LockdownClient lockdown=None, *args, **kwargs): |
