summaryrefslogtreecommitdiffstats
path: root/src/idevice.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-01-28 22:18:41 +0100
committerGravatar Martin Szulecki2010-01-29 02:16:00 +0100
commit96101a1231a4ddfeb40fd738a24e108a3a904048 (patch)
tree65a8f54354d9acbbba93dac2c8602d07e469482c /src/idevice.h
parent45b88ae3956de089fdc35605910f1359a1d3961c (diff)
downloadlibimobiledevice-96101a1231a4ddfeb40fd738a24e108a3a904048.tar.gz
libimobiledevice-96101a1231a4ddfeb40fd738a24e108a3a904048.tar.bz2
Global renames due to project rename to libimobiledevice
Diffstat (limited to 'src/idevice.h')
-rw-r--r--src/idevice.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/idevice.h b/src/idevice.h
new file mode 100644
index 0000000..4aab440
--- /dev/null
+++ b/src/idevice.h
@@ -0,0 +1,54 @@
1/*
2 * idevice.h
3 * Device discovery and communication interface -- header file.
4 *
5 * Copyright (c) 2008 Zach C. All Rights Reserved.
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21#ifndef IDEVICE_H
22#define IDEVICE_H
23
24#include <plist/plist.h>
25#include <gnutls/gnutls.h>
26
27#include "libimobiledevice/libimobiledevice.h"
28
29enum connection_type {
30 CONNECTION_USBMUXD = 1
31};
32
33struct ssl_data_int {
34 gnutls_certificate_credentials_t certificate;
35 gnutls_session_t session;
36};
37typedef struct ssl_data_int *ssl_data_t;
38
39struct idevice_connection_int {
40 enum connection_type type;
41 void *data;
42 ssl_data_t ssl_data;
43};
44
45struct idevice_int {
46 char *uuid;
47 enum connection_type conn_type;
48 void *conn_data;
49};
50
51idevice_error_t idevice_connection_enable_ssl(idevice_connection_t connection);
52idevice_error_t idevice_connection_disable_ssl(idevice_connection_t connection);
53
54#endif