summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-04-12 12:21:04 +0200
committerGravatar Martin Szulecki2012-10-21 14:19:50 +0200
commit046093a4ba12d374006c1ea3a7a5a4bfe8bc4c3d (patch)
tree13ec9c07736a9f850114d36edefafef82b36883a /include
parent446f1b8dbd65c95c7cb37ceca5e907181b9b6169 (diff)
downloadlibimobiledevice-046093a4ba12d374006c1ea3a7a5a4bfe8bc4c3d.tar.gz
libimobiledevice-046093a4ba12d374006c1ea3a7a5a4bfe8bc4c3d.tar.bz2
diagnostics_relay: Implement sleep, restart, shutdown and request_diagnostics
Diffstat (limited to 'include')
-rw-r--r--include/libimobiledevice/diagnostics_relay.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/libimobiledevice/diagnostics_relay.h b/include/libimobiledevice/diagnostics_relay.h
index 58c26df..5a82931 100644
--- a/include/libimobiledevice/diagnostics_relay.h
+++ b/include/libimobiledevice/diagnostics_relay.h
@@ -39,6 +39,15 @@ extern "C" {
#define DIAGNOSTICS_RELAY_E_UNKNOWN_ERROR -256
/*@}*/
+#define DIAGNOSTICS_RELAY_ACTION_FLAG_WAIT_FOR_DISCONNECT (1 << 1)
+#define DIAGNOSTICS_RELAY_ACTION_FLAG_DISPLAY_PASS (1 << 2)
+#define DIAGNOSTICS_RELAY_ACTION_FLAG_DISPLAY_FAIL (1 << 3)
+
+#define DIAGNOSTICS_RELAY_REQUEST_TYPE_ALL "All"
+#define DIAGNOSTICS_RELAY_REQUEST_TYPE_WIFI "WiFi"
+#define DIAGNOSTICS_RELAY_REQUEST_TYPE_GAS_GAUGE "GasGauge"
+#define DIAGNOSTICS_RELAY_REQUEST_TYPE_NAND "NAND"
+
/** Represents an error code. */
typedef int16_t diagnostics_relay_error_t;
@@ -49,7 +58,10 @@ diagnostics_relay_error_t diagnostics_relay_client_new(idevice_t device, uint16_
diagnostics_relay_error_t diagnostics_relay_client_free(diagnostics_relay_client_t client);
diagnostics_relay_error_t diagnostics_relay_goodbye(diagnostics_relay_client_t client);
-diagnostics_relay_error_t diagnostics_relay_request_diagnostics(diagnostics_relay_client_t client, plist_t* diagnostics);
+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_request_diagnostics(diagnostics_relay_client_t client, const char* type, plist_t* diagnostics);
#ifdef __cplusplus
}