summaryrefslogtreecommitdiffstats
path: root/include/libimobiledevice/diagnostics_relay.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libimobiledevice/diagnostics_relay.h')
-rw-r--r--include/libimobiledevice/diagnostics_relay.h58
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
27extern "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. */
43typedef int16_t diagnostics_relay_error_t;
44
45typedef struct diagnostics_relay_client_private diagnostics_relay_client_private;
46typedef diagnostics_relay_client_private *diagnostics_relay_client_t; /**< The client handle. */
47
48diagnostics_relay_error_t diagnostics_relay_client_new(idevice_t device, uint16_t port, diagnostics_relay_client_t *client);
49diagnostics_relay_error_t diagnostics_relay_client_free(diagnostics_relay_client_t client);
50
51diagnostics_relay_error_t diagnostics_relay_goodbye(diagnostics_relay_client_t client);
52diagnostics_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