diff options
| author | 2008-08-19 23:58:20 +0200 | |
|---|---|---|
| committer | 2008-08-31 19:27:20 +0200 | |
| commit | ad65cefa1c041bbd4792e3dc4f4afc7b07026930 (patch) | |
| tree | 76c73d5372cc7152ec20fb809b6da71f3dd896df /src/usbmux.h | |
| parent | 21d5d4ac4b4bd419e0d8752147464984497c98ec (diff) | |
| download | libimobiledevice-ad65cefa1c041bbd4792e3dc4f4afc7b07026930.tar.gz libimobiledevice-ad65cefa1c041bbd4792e3dc4f4afc7b07026930.tar.bz2 | |
migrate usbmux.c.
Diffstat (limited to 'src/usbmux.h')
| -rw-r--r-- | src/usbmux.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/usbmux.h b/src/usbmux.h index 831f0fd..da8a361 100644 --- a/src/usbmux.h +++ b/src/usbmux.h | |||
| @@ -43,12 +43,12 @@ typedef struct { | |||
| 43 | uint16 window, nullnull, length16; | 43 | uint16 window, nullnull, length16; |
| 44 | } usbmux_tcp_header; | 44 | } usbmux_tcp_header; |
| 45 | 45 | ||
| 46 | typedef struct { | 46 | struct iphone_umux_client_int { |
| 47 | usbmux_tcp_header *header; | 47 | usbmux_tcp_header *header; |
| 48 | iphone_device_t phone; | 48 | iphone_device_t phone; |
| 49 | char *recv_buffer; | 49 | char *recv_buffer; |
| 50 | int r_len; | 50 | int r_len; |
| 51 | } usbmux_connection; | 51 | }; |
| 52 | 52 | ||
| 53 | usbmux_tcp_header *new_mux_packet(uint16 s_port, uint16 d_port); | 53 | usbmux_tcp_header *new_mux_packet(uint16 s_port, uint16 d_port); |
| 54 | 54 | ||
| @@ -58,10 +58,5 @@ typedef struct { | |||
| 58 | 58 | ||
| 59 | usbmux_version_header *version_header(); | 59 | usbmux_version_header *version_header(); |
| 60 | 60 | ||
| 61 | usbmux_connection *mux_connect(iphone_device_t phone, uint16 s_port, uint16 d_port); | ||
| 62 | void mux_close_connection(usbmux_connection *connection); | ||
| 63 | int mux_send(usbmux_connection *connection, const char *data, uint32 datalen); | ||
| 64 | int mux_recv(usbmux_connection *connection, char *data, uint32 datalen); | ||
| 65 | |||
| 66 | 61 | ||
| 67 | #endif | 62 | #endif |
