diff options
| author | 2012-04-01 01:42:28 +0200 | |
|---|---|---|
| committer | 2012-10-21 14:19:50 +0200 | |
| commit | 8b61d177dbfa5c12d582bd58df8243b6d21571b8 (patch) | |
| tree | e1df30e08431d0f8f3c480bdd394d9a740711015 /include/libimobiledevice | |
| parent | d09e25b69d2744ba7a6a88cc58d9cc8fc4810d2a (diff) | |
| download | libimobiledevice-8b61d177dbfa5c12d582bd58df8243b6d21571b8.tar.gz libimobiledevice-8b61d177dbfa5c12d582bd58df8243b6d21571b8.tar.bz2 | |
diagnostics_relay: Add basic new service implementation
Diffstat (limited to 'include/libimobiledevice')
| -rw-r--r-- | include/libimobiledevice/diagnostics_relay.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/include/libimobiledevice/diagnostics_relay.h b/include/libimobiledevice/diagnostics_relay.h new file mode 100644 index 0000000..58c26df --- /dev/null +++ b/include/libimobiledevice/diagnostics_relay.h | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | /** | ||
| 2 | * @file libimobiledevice/diagnostics_relay.h | ||
| 3 | * @brief Request iOS diagnostic information from device. | ||
| 4 | * \internal | ||
| 5 | * | ||
| 6 | * Copyright (c) 2012 Martin Szulecki, All Rights Reserved. | ||
| 7 | * | ||
| 8 | * This library is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU Lesser General Public | ||
| 10 | * License as published by the Free Software Foundation; either | ||
| 11 | * version 2.1 of the License, or (at your option) any later version. | ||
| 12 | * | ||
| 13 | * This library is distributed in the hope that it will be useful, | ||
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 16 | * Lesser General Public License for more details. | ||
| 17 | * | ||
| 18 | * You should have received a copy of the GNU Lesser General Public | ||
| 19 | * License along with this library; if not, write to the Free Software | ||
| 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 21 | */ | ||
| 22 | |||
| 23 | #ifndef IDIAGNOSTICS_RELAY_H | ||
| 24 | #define IDIAGNOSTICS_RELAY_H | ||
| 25 | |||
| 26 | #ifdef __cplusplus | ||
| 27 | extern "C" { | ||
| 28 | #endif | ||
| 29 | |||
| 30 | #include <libimobiledevice/libimobiledevice.h> | ||
| 31 | |||
| 32 | /** @name Error Codes */ | ||
| 33 | /*@{*/ | ||
| 34 | #define DIAGNOSTICS_RELAY_E_SUCCESS 0 | ||
| 35 | #define DIAGNOSTICS_RELAY_E_INVALID_ARG -1 | ||
| 36 | #define DIAGNOSTICS_RELAY_E_PLIST_ERROR -2 | ||
| 37 | #define DIAGNOSTICS_RELAY_E_MUX_ERROR -3 | ||
| 38 | |||
| 39 | #define DIAGNOSTICS_RELAY_E_UNKNOWN_ERROR -256 | ||
| 40 | /*@}*/ | ||
| 41 | |||
| 42 | /** Represents an error code. */ | ||
| 43 | typedef int16_t diagnostics_relay_error_t; | ||
| 44 | |||
| 45 | typedef struct diagnostics_relay_client_private diagnostics_relay_client_private; | ||
| 46 | typedef diagnostics_relay_client_private *diagnostics_relay_client_t; /**< The client handle. */ | ||
| 47 | |||
| 48 | diagnostics_relay_error_t diagnostics_relay_client_new(idevice_t device, uint16_t port, diagnostics_relay_client_t *client); | ||
| 49 | diagnostics_relay_error_t diagnostics_relay_client_free(diagnostics_relay_client_t client); | ||
| 50 | |||
| 51 | 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); | ||
| 53 | |||
| 54 | #ifdef __cplusplus | ||
| 55 | } | ||
| 56 | #endif | ||
| 57 | |||
| 58 | #endif | ||
