summaryrefslogtreecommitdiffstats
path: root/cython/diagnostics_relay.pxi
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-12-16 15:23:17 +0100
committerGravatar Nikias Bassen2019-12-16 15:23:17 +0100
commitd04f8ff2e20c42f74161c9cd66502da17b8b0e70 (patch)
tree152458643c6f8afb97941bc2ee4ea59826be1e68 /cython/diagnostics_relay.pxi
parent315cea700da438395c4d2b66e0af2b0b38a2b3d0 (diff)
downloadlibimobiledevice-d04f8ff2e20c42f74161c9cd66502da17b8b0e70.tar.gz
libimobiledevice-d04f8ff2e20c42f74161c9cd66502da17b8b0e70.tar.bz2
cython: Update diagnostics_relay with diagnostics_relay_action_t enum too
Diffstat (limited to 'cython/diagnostics_relay.pxi')
-rw-r--r--cython/diagnostics_relay.pxi10
1 files changed, 5 insertions, 5 deletions
diff --git a/cython/diagnostics_relay.pxi b/cython/diagnostics_relay.pxi
index 155e5b7..0e6bd20 100644
--- a/cython/diagnostics_relay.pxi
+++ b/cython/diagnostics_relay.pxi
@@ -15,7 +15,7 @@ cdef extern from "libimobiledevice/diagnostics_relay.h":
15 DIAGNOSTICS_RELAY_E_MUX_ERROR = -3 15 DIAGNOSTICS_RELAY_E_MUX_ERROR = -3
16 DIAGNOSTICS_RELAY_E_UNKNOWN_REQUEST = -4 16 DIAGNOSTICS_RELAY_E_UNKNOWN_REQUEST = -4
17 DIAGNOSTICS_RELAY_E_UNKNOWN_ERROR = -256 17 DIAGNOSTICS_RELAY_E_UNKNOWN_ERROR = -256
18 cdef enum: 18 ctypedef enum diagnostics_relay_action_t:
19 DIAGNOSTICS_RELAY_ACTION_FLAG_WAIT_FOR_DISCONNECT = (1 << 1) 19 DIAGNOSTICS_RELAY_ACTION_FLAG_WAIT_FOR_DISCONNECT = (1 << 1)
20 DIAGNOSTICS_RELAY_ACTION_FLAG_DISPLAY_PASS = (1 << 2) 20 DIAGNOSTICS_RELAY_ACTION_FLAG_DISPLAY_PASS = (1 << 2)
21 DIAGNOSTICS_RELAY_ACTION_FLAG_DISPLAY_FAIL = (1 << 3) 21 DIAGNOSTICS_RELAY_ACTION_FLAG_DISPLAY_FAIL = (1 << 3)
@@ -25,8 +25,8 @@ cdef extern from "libimobiledevice/diagnostics_relay.h":
25 25
26 diagnostics_relay_error_t diagnostics_relay_goodbye(diagnostics_relay_client_t client) 26 diagnostics_relay_error_t diagnostics_relay_goodbye(diagnostics_relay_client_t client)
27 diagnostics_relay_error_t diagnostics_relay_sleep(diagnostics_relay_client_t client) 27 diagnostics_relay_error_t diagnostics_relay_sleep(diagnostics_relay_client_t client)
28 diagnostics_relay_error_t diagnostics_relay_restart(diagnostics_relay_client_t client, int flags) 28 diagnostics_relay_error_t diagnostics_relay_restart(diagnostics_relay_client_t client, diagnostics_relay_action_t flags)
29 diagnostics_relay_error_t diagnostics_relay_shutdown(diagnostics_relay_client_t client, int flags) 29 diagnostics_relay_error_t diagnostics_relay_shutdown(diagnostics_relay_client_t client, diagnostics_relay_action_t flags)
30 diagnostics_relay_error_t diagnostics_relay_request_diagnostics(diagnostics_relay_client_t client, char* type, plist.plist_t* diagnostics) 30 diagnostics_relay_error_t diagnostics_relay_request_diagnostics(diagnostics_relay_client_t client, char* type, plist.plist_t* diagnostics)
31 diagnostics_relay_error_t diagnostics_relay_query_mobilegestalt(diagnostics_relay_client_t client, plist.plist_t keys, plist.plist_t* result) 31 diagnostics_relay_error_t diagnostics_relay_query_mobilegestalt(diagnostics_relay_client_t client, plist.plist_t keys, plist.plist_t* result)
32 diagnostics_relay_error_t diagnostics_relay_query_ioregistry_entry(diagnostics_relay_client_t client, char* name, char* class_name, plist.plist_t* result) 32 diagnostics_relay_error_t diagnostics_relay_query_ioregistry_entry(diagnostics_relay_client_t client, char* name, char* class_name, plist.plist_t* result)
@@ -66,10 +66,10 @@ cdef class DiagnosticsRelayClient(PropertyListService):
66 cpdef sleep(self): 66 cpdef sleep(self):
67 self.handle_error(diagnostics_relay_sleep(self._c_client)) 67 self.handle_error(diagnostics_relay_sleep(self._c_client))
68 68
69 cpdef restart(self, int flags): 69 cpdef restart(self, diagnostics_relay_action_t flags):
70 self.handle_error(diagnostics_relay_restart(self._c_client, flags)) 70 self.handle_error(diagnostics_relay_restart(self._c_client, flags))
71 71
72 cpdef shutdown(self, int flags): 72 cpdef shutdown(self, diagnostics_relay_action_t flags):
73 self.handle_error(diagnostics_relay_shutdown(self._c_client, flags)) 73 self.handle_error(diagnostics_relay_shutdown(self._c_client, flags))
74 74
75 cpdef plist.Node request_diagnostics(self, bytes type): 75 cpdef plist.Node request_diagnostics(self, bytes type):