libimobiledevice  1.3.0-dirty
API Documentation - Return to Homepage

◆ diagnostics_relay_request_diagnostics()

diagnostics_relay_error_t diagnostics_relay_request_diagnostics ( diagnostics_relay_client_t client,
const char * type,
plist_t * diagnostics )

Request diagnostics information for a given type.

Parameters
clientThe diagnostics_relay client
typeThe type or domain to query for diagnostics. Some known values are "All", "WiFi", "GasGauge", and "NAND".
diagnosticsA pointer to plist_t that will receive the diagnostics information. The consumer has to free the allocated memory with plist_free() when no longer needed.
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