diff options
author | Nikias Bassen | 2019-12-16 15:23:17 +0100 |
---|---|---|
committer | Nikias Bassen | 2019-12-16 15:23:17 +0100 |
commit | d04f8ff2e20c42f74161c9cd66502da17b8b0e70 (patch) | |
tree | 152458643c6f8afb97941bc2ee4ea59826be1e68 /cython | |
parent | 315cea700da438395c4d2b66e0af2b0b38a2b3d0 (diff) | |
download | libimobiledevice-d04f8ff2e20c42f74161c9cd66502da17b8b0e70.tar.gz libimobiledevice-d04f8ff2e20c42f74161c9cd66502da17b8b0e70.tar.bz2 |
cython: Update diagnostics_relay with diagnostics_relay_action_t enum too
Diffstat (limited to 'cython')
-rw-r--r-- | cython/diagnostics_relay.pxi | 10 |
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": DIAGNOSTICS_RELAY_E_MUX_ERROR = -3 DIAGNOSTICS_RELAY_E_UNKNOWN_REQUEST = -4 DIAGNOSTICS_RELAY_E_UNKNOWN_ERROR = -256 - cdef enum: + ctypedef enum diagnostics_relay_action_t: DIAGNOSTICS_RELAY_ACTION_FLAG_WAIT_FOR_DISCONNECT = (1 << 1) DIAGNOSTICS_RELAY_ACTION_FLAG_DISPLAY_PASS = (1 << 2) DIAGNOSTICS_RELAY_ACTION_FLAG_DISPLAY_FAIL = (1 << 3) @@ -25,8 +25,8 @@ cdef extern from "libimobiledevice/diagnostics_relay.h": diagnostics_relay_error_t diagnostics_relay_goodbye(diagnostics_relay_client_t client) diagnostics_relay_error_t diagnostics_relay_sleep(diagnostics_relay_client_t client) - diagnostics_relay_error_t diagnostics_relay_restart(diagnostics_relay_client_t client, int flags) - diagnostics_relay_error_t diagnostics_relay_shutdown(diagnostics_relay_client_t client, int flags) + diagnostics_relay_error_t diagnostics_relay_restart(diagnostics_relay_client_t client, diagnostics_relay_action_t flags) + diagnostics_relay_error_t diagnostics_relay_shutdown(diagnostics_relay_client_t client, diagnostics_relay_action_t flags) diagnostics_relay_error_t diagnostics_relay_request_diagnostics(diagnostics_relay_client_t client, char* type, plist.plist_t* diagnostics) diagnostics_relay_error_t diagnostics_relay_query_mobilegestalt(diagnostics_relay_client_t client, plist.plist_t keys, plist.plist_t* result) 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): cpdef sleep(self): self.handle_error(diagnostics_relay_sleep(self._c_client)) - cpdef restart(self, int flags): + cpdef restart(self, diagnostics_relay_action_t flags): self.handle_error(diagnostics_relay_restart(self._c_client, flags)) - cpdef shutdown(self, int flags): + cpdef shutdown(self, diagnostics_relay_action_t flags): self.handle_error(diagnostics_relay_shutdown(self._c_client, flags)) cpdef plist.Node request_diagnostics(self, bytes type): |