summaryrefslogtreecommitdiffstats
path: root/include/libiphone/libiphone.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libiphone/libiphone.h')
-rw-r--r--include/libiphone/libiphone.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/include/libiphone/libiphone.h b/include/libiphone/libiphone.h
index eb58d5c..b67fcd4 100644
--- a/include/libiphone/libiphone.h
+++ b/include/libiphone/libiphone.h
@@ -39,7 +39,7 @@ extern "C" {
39#define IPHONE_E_NO_DEVICE -3 39#define IPHONE_E_NO_DEVICE -3
40#define IPHONE_E_NOT_ENOUGH_DATA -4 40#define IPHONE_E_NOT_ENOUGH_DATA -4
41#define IPHONE_E_BAD_HEADER -5 41#define IPHONE_E_BAD_HEADER -5
42#define IPHONE_E_PLIST_ERROR -6 42#define IPHONE_E_SSL_ERROR -6
43 43
44typedef int16_t iphone_error_t; 44typedef int16_t iphone_error_t;
45 45
@@ -49,15 +49,7 @@ typedef struct iphone_device_int *iphone_device_t;
49struct iphone_connection_int; 49struct iphone_connection_int;
50typedef struct iphone_connection_int *iphone_connection_t; 50typedef struct iphone_connection_int *iphone_connection_t;
51 51
52/* Debugging */
53#define DBGMASK_ALL 0xFFFF
54#define DBGMASK_NONE 0x0000
55#define DBGMASK_LOCKDOWND (1 << 1)
56#define DBGMASK_MOBILESYNC (1 << 2)
57#define DBGMASK_INSTPROXY (1 << 3)
58
59/* generic */ 52/* generic */
60void iphone_set_debug_mask(uint16_t mask);
61void iphone_set_debug_level(int level); 53void iphone_set_debug_level(int level);
62 54
63/* discovery (events/asynchronous) */ 55/* discovery (events/asynchronous) */
@@ -90,7 +82,7 @@ iphone_error_t iphone_device_new(iphone_device_t *device, const char *uuid);
90iphone_error_t iphone_device_free(iphone_device_t device); 82iphone_error_t iphone_device_free(iphone_device_t device);
91 83
92/* connection/disconnection and communication */ 84/* connection/disconnection and communication */
93iphone_error_t iphone_device_connect(iphone_device_t device, uint16_t dst_port, iphone_connection_t *connection); 85iphone_error_t iphone_device_connect(iphone_device_t device, uint16_t port, iphone_connection_t *connection);
94iphone_error_t iphone_device_disconnect(iphone_connection_t connection); 86iphone_error_t iphone_device_disconnect(iphone_connection_t connection);
95iphone_error_t iphone_device_send(iphone_connection_t connection, const char *data, uint32_t len, uint32_t *sent_bytes); 87iphone_error_t iphone_device_send(iphone_connection_t connection, const char *data, uint32_t len, uint32_t *sent_bytes);
96iphone_error_t iphone_device_recv_timeout(iphone_connection_t connection, char *data, uint32_t len, uint32_t *recv_bytes, unsigned int timeout); 88iphone_error_t iphone_device_recv_timeout(iphone_connection_t connection, char *data, uint32_t len, uint32_t *recv_bytes, unsigned int timeout);