summaryrefslogtreecommitdiffstats
path: root/cython/notification_proxy.pxi
diff options
context:
space:
mode:
authorGravatar Bryan Forbes2010-03-31 14:19:38 -0500
committerGravatar Martin Szulecki2012-03-20 23:25:55 +0100
commit23954a2b28e6f763a83524a85ead4716620ee7cc (patch)
tree33a4a940c26d7b7a228400ffcf6abbc0435958ae /cython/notification_proxy.pxi
parent7b4cb7fb2f1b1ed29f3bc97a9bcae5fc2a89fe95 (diff)
downloadlibimobiledevice-23954a2b28e6f763a83524a85ead4716620ee7cc.tar.gz
libimobiledevice-23954a2b28e6f763a83524a85ead4716620ee7cc.tar.bz2
Added all remaining classes from libimobiledevice.
Diffstat (limited to 'cython/notification_proxy.pxi')
-rw-r--r--cython/notification_proxy.pxi13
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 @@
-cdef extern from *:
- ctypedef char* const_char_ptr "const char*"
-
cdef extern from "libimobiledevice/notification_proxy.h":
- cdef struct np_client_int:
+ cdef struct np_client_private:
pass
- ctypedef np_client_int *np_client_t
+ ctypedef np_client_private *np_client_t
ctypedef enum np_error_t:
NP_E_SUCCESS = 0
NP_E_INVALID_ARG = -1
@@ -27,9 +24,9 @@ cdef class NotificationProxyError(BaseError):
self._lookup_table = {
NP_E_SUCCESS: "Success",
NP_E_INVALID_ARG: "Invalid argument",
- NP_E_PLIST_ERROR: "PList Error",
- NP_E_CONN_FAILED: "Connection Failed",
- NP_E_UNKNOWN_ERROR: "Unknown Error"
+ NP_E_PLIST_ERROR: "Property list error",
+ NP_E_CONN_FAILED: "Connection failed",
+ NP_E_UNKNOWN_ERROR: "Unknown error"
}
BaseError.__init__(self, *args, **kwargs)