diff options
| author | 2012-04-12 12:21:04 +0200 | |
|---|---|---|
| committer | 2012-10-21 14:19:50 +0200 | |
| commit | 046093a4ba12d374006c1ea3a7a5a4bfe8bc4c3d (patch) | |
| tree | 13ec9c07736a9f850114d36edefafef82b36883a /include/libimobiledevice | |
| parent | 446f1b8dbd65c95c7cb37ceca5e907181b9b6169 (diff) | |
| download | libimobiledevice-046093a4ba12d374006c1ea3a7a5a4bfe8bc4c3d.tar.gz libimobiledevice-046093a4ba12d374006c1ea3a7a5a4bfe8bc4c3d.tar.bz2 | |
diagnostics_relay: Implement sleep, restart, shutdown and request_diagnostics
Diffstat (limited to 'include/libimobiledevice')
| -rw-r--r-- | include/libimobiledevice/diagnostics_relay.h | 14 |
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" { | |||
| 39 | #define DIAGNOSTICS_RELAY_E_UNKNOWN_ERROR -256 | 39 | #define DIAGNOSTICS_RELAY_E_UNKNOWN_ERROR -256 |
| 40 | /*@}*/ | 40 | /*@}*/ |
| 41 | 41 | ||
| 42 | #define DIAGNOSTICS_RELAY_ACTION_FLAG_WAIT_FOR_DISCONNECT (1 << 1) | ||
| 43 | #define DIAGNOSTICS_RELAY_ACTION_FLAG_DISPLAY_PASS (1 << 2) | ||
| 44 | #define DIAGNOSTICS_RELAY_ACTION_FLAG_DISPLAY_FAIL (1 << 3) | ||
| 45 | |||
| 46 | #define DIAGNOSTICS_RELAY_REQUEST_TYPE_ALL "All" | ||
| 47 | #define DIAGNOSTICS_RELAY_REQUEST_TYPE_WIFI "WiFi" | ||
| 48 | #define DIAGNOSTICS_RELAY_REQUEST_TYPE_GAS_GAUGE "GasGauge" | ||
| 49 | #define DIAGNOSTICS_RELAY_REQUEST_TYPE_NAND "NAND" | ||
| 50 | |||
| 42 | /** Represents an error code. */ | 51 | /** Represents an error code. */ |
| 43 | typedef int16_t diagnostics_relay_error_t; | 52 | typedef int16_t diagnostics_relay_error_t; |
| 44 | 53 | ||
| @@ -49,7 +58,10 @@ diagnostics_relay_error_t diagnostics_relay_client_new(idevice_t device, uint16_ | |||
| 49 | diagnostics_relay_error_t diagnostics_relay_client_free(diagnostics_relay_client_t client); | 58 | diagnostics_relay_error_t diagnostics_relay_client_free(diagnostics_relay_client_t client); |
| 50 | 59 | ||
| 51 | diagnostics_relay_error_t diagnostics_relay_goodbye(diagnostics_relay_client_t client); | 60 | diagnostics_relay_error_t diagnostics_relay_goodbye(diagnostics_relay_client_t client); |
| 52 | diagnostics_relay_error_t diagnostics_relay_request_diagnostics(diagnostics_relay_client_t client, plist_t* diagnostics); | 61 | diagnostics_relay_error_t diagnostics_relay_sleep(diagnostics_relay_client_t client); |
| 62 | diagnostics_relay_error_t diagnostics_relay_restart(diagnostics_relay_client_t client, int flags); | ||
| 63 | diagnostics_relay_error_t diagnostics_relay_shutdown(diagnostics_relay_client_t client, int flags); | ||
| 64 | diagnostics_relay_error_t diagnostics_relay_request_diagnostics(diagnostics_relay_client_t client, const char* type, plist_t* diagnostics); | ||
| 53 | 65 | ||
| 54 | #ifdef __cplusplus | 66 | #ifdef __cplusplus |
| 55 | } | 67 | } |
