diff options
| author | 2010-01-06 22:10:29 +0100 | |
|---|---|---|
| committer | 2010-01-09 14:50:15 -0800 | |
| commit | 892c2b9552c4682b2c8666c3a0ffe1aefb12defe (patch) | |
| tree | bde01021de0587dcc11fdc7b53597bafe7173d9c /src/iphone.h | |
| parent | daee8be013dae3821463fd85f4076ca2ab3adce6 (diff) | |
| download | libimobiledevice-892c2b9552c4682b2c8666c3a0ffe1aefb12defe.tar.gz libimobiledevice-892c2b9552c4682b2c8666c3a0ffe1aefb12defe.tar.bz2 | |
Added plist communication helper functions
Diffstat (limited to 'src/iphone.h')
| -rw-r--r-- | src/iphone.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/iphone.h b/src/iphone.h index 98b0ed8..7ffc811 100644 --- a/src/iphone.h +++ b/src/iphone.h | |||
| @@ -21,6 +21,9 @@ | |||
| 21 | #ifndef IPHONE_H | 21 | #ifndef IPHONE_H |
| 22 | #define IPHONE_H | 22 | #define IPHONE_H |
| 23 | 23 | ||
| 24 | #include <plist/plist.h> | ||
| 25 | #include <gnutls/gnutls.h> | ||
| 26 | |||
| 24 | #include "libiphone/libiphone.h" | 27 | #include "libiphone/libiphone.h" |
| 25 | 28 | ||
| 26 | enum connection_type { | 29 | enum connection_type { |
| @@ -38,4 +41,14 @@ struct iphone_device_int { | |||
| 38 | void *conn_data; | 41 | void *conn_data; |
| 39 | }; | 42 | }; |
| 40 | 43 | ||
| 44 | iphone_error_t iphone_device_send_xml_plist(iphone_connection_t connection, plist_t plist); | ||
| 45 | iphone_error_t iphone_device_send_binary_plist(iphone_connection_t connection, plist_t plist); | ||
| 46 | iphone_error_t iphone_device_send_encrypted_xml_plist(gnutls_session_t ssl_session, plist_t plist); | ||
| 47 | iphone_error_t iphone_device_send_encrypted_binary_plist(gnutls_session_t ssl_session, plist_t plist); | ||
| 48 | |||
| 49 | iphone_error_t iphone_device_receive_plist_with_timeout(iphone_connection_t connection, plist_t *plist, unsigned int timeout); | ||
| 50 | iphone_error_t iphone_device_receive_plist(iphone_connection_t connection, plist_t *plist); | ||
| 51 | iphone_error_t iphone_device_receive_encrypted_plist_with_timeout(gnutls_session_t ssl_session, plist_t *plist, unsigned int timeout); | ||
| 52 | iphone_error_t iphone_device_receive_encrypted_plist(gnutls_session_t ssl_session, plist_t *plist); | ||
| 53 | |||
| 41 | #endif | 54 | #endif |
