diff options
Diffstat (limited to 'cython/notification_proxy.pxi')
| -rw-r--r-- | cython/notification_proxy.pxi | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/cython/notification_proxy.pxi b/cython/notification_proxy.pxi index 2ca484a..d5f2d25 100644 --- a/cython/notification_proxy.pxi +++ b/cython/notification_proxy.pxi | |||
| @@ -1,10 +1,7 @@ | |||
| 1 | cdef extern from *: | ||
| 2 | ctypedef char* const_char_ptr "const char*" | ||
| 3 | |||
| 4 | cdef extern from "libimobiledevice/notification_proxy.h": | 1 | cdef extern from "libimobiledevice/notification_proxy.h": |
| 5 | cdef struct np_client_int: | 2 | cdef struct np_client_private: |
| 6 | pass | 3 | pass |
| 7 | ctypedef np_client_int *np_client_t | 4 | ctypedef np_client_private *np_client_t |
| 8 | ctypedef enum np_error_t: | 5 | ctypedef enum np_error_t: |
| 9 | NP_E_SUCCESS = 0 | 6 | NP_E_SUCCESS = 0 |
| 10 | NP_E_INVALID_ARG = -1 | 7 | NP_E_INVALID_ARG = -1 |
| @@ -27,9 +24,9 @@ cdef class NotificationProxyError(BaseError): | |||
| 27 | self._lookup_table = { | 24 | self._lookup_table = { |
| 28 | NP_E_SUCCESS: "Success", | 25 | NP_E_SUCCESS: "Success", |
| 29 | NP_E_INVALID_ARG: "Invalid argument", | 26 | NP_E_INVALID_ARG: "Invalid argument", |
| 30 | NP_E_PLIST_ERROR: "PList Error", | 27 | NP_E_PLIST_ERROR: "Property list error", |
| 31 | NP_E_CONN_FAILED: "Connection Failed", | 28 | NP_E_CONN_FAILED: "Connection failed", |
| 32 | NP_E_UNKNOWN_ERROR: "Unknown Error" | 29 | NP_E_UNKNOWN_ERROR: "Unknown error" |
| 33 | } | 30 | } |
| 34 | BaseError.__init__(self, *args, **kwargs) | 31 | BaseError.__init__(self, *args, **kwargs) |
| 35 | 32 | ||
