libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ diagnostics_relay_shutdown()

diagnostics_relay_error_t diagnostics_relay_shutdown ( diagnostics_relay_client_t  client,
diagnostics_relay_action_t  flags 
)

Shutdown of the device and optionally show a user notification.

Parameters
clientThe diagnostics_relay client
flagsA binary flag combination of DIAGNOSTICS_RELAY_ACTION_FLAG_WAIT_FOR_DISCONNECT to wait until diagnostics_relay_client_free() disconnects before execution and DIAGNOSTICS_RELAY_ACTION_FLAG_DISPLAY_FAIL to show a "FAIL" dialog or DIAGNOSTICS_RELAY_ACTION_FLAG_DISPLAY_PASS to show an "OK" dialog
Returns
DIAGNOSTICS_RELAY_E_SUCCESS on success, DIAGNOSTICS_RELAY_E_INVALID_ARG when client is NULL, DIAGNOSTICS_RELAY_E_PLIST_ERROR if the device did not acknowledge the request