diff options
| author | 2009-04-13 08:48:00 -0700 | |
|---|---|---|
| committer | 2009-04-13 08:48:00 -0700 | |
| commit | 6671ca3d6de6a1fd27853e3b1ce7a81d568703f0 (patch) | |
| tree | 735c5ace7ed57cd4e19f2fde423b22e6104eaa98 /src/usbmux.h | |
| parent | bd31783d7fde0b5bd101f4a3f97ca1aca2aa6fab (diff) | |
| parent | 288929f45cb2641690879b52ec514097995cd41a (diff) | |
| download | libimobiledevice-6671ca3d6de6a1fd27853e3b1ce7a81d568703f0.tar.gz libimobiledevice-6671ca3d6de6a1fd27853e3b1ce7a81d568703f0.tar.bz2 | |
Merged in Jonathan's libplist libiphone. [#2 state:resolved]
Diffstat (limited to 'src/usbmux.h')
| -rw-r--r-- | src/usbmux.h | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/usbmux.h b/src/usbmux.h index fd5fc78..bea83f7 100644 --- a/src/usbmux.h +++ b/src/usbmux.h | |||
| @@ -22,6 +22,7 @@ | |||
| 22 | #include <sys/types.h> | 22 | #include <sys/types.h> |
| 23 | #include <stdlib.h> | 23 | #include <stdlib.h> |
| 24 | #include <stdint.h> | 24 | #include <stdint.h> |
| 25 | #include "libiphone/libiphone.h" | ||
| 25 | 26 | ||
| 26 | #ifndef USBMUX_H | 27 | #ifndef USBMUX_H |
| 27 | #define USBMUX_H | 28 | #define USBMUX_H |
| @@ -30,17 +31,12 @@ | |||
| 30 | #include "iphone.h" | 31 | #include "iphone.h" |
| 31 | #endif | 32 | #endif |
| 32 | 33 | ||
| 33 | typedef uint16_t uint16; | ||
| 34 | typedef uint32_t uint32; | ||
| 35 | typedef uint8_t uint8; | ||
| 36 | |||
| 37 | |||
| 38 | typedef struct { | 34 | typedef struct { |
| 39 | uint32 type, length; | 35 | uint32_t type, length; |
| 40 | uint16 sport, dport; | 36 | uint16_t sport, dport; |
| 41 | uint32 scnt, ocnt; | 37 | uint32_t scnt, ocnt; |
| 42 | uint8 offset, tcp_flags; | 38 | uint8_t offset, tcp_flags; |
| 43 | uint16 window, nullnull, length16; | 39 | uint16_t window, nullnull, length16; |
| 44 | } usbmux_tcp_header; | 40 | } usbmux_tcp_header; |
| 45 | 41 | ||
| 46 | struct iphone_umux_client_int { | 42 | struct iphone_umux_client_int { |
| @@ -50,10 +46,10 @@ struct iphone_umux_client_int { | |||
| 50 | int r_len; | 46 | int r_len; |
| 51 | }; | 47 | }; |
| 52 | 48 | ||
| 53 | usbmux_tcp_header *new_mux_packet(uint16 s_port, uint16 d_port); | 49 | usbmux_tcp_header *new_mux_packet(uint16_t s_port, uint16_t d_port); |
| 54 | 50 | ||
| 55 | typedef struct { | 51 | typedef struct { |
| 56 | uint32 type, length, major, minor, allnull; | 52 | uint32_t type, length, major, minor, allnull; |
| 57 | } usbmux_version_header; | 53 | } usbmux_version_header; |
| 58 | 54 | ||
| 59 | usbmux_version_header *version_header(void); | 55 | usbmux_version_header *version_header(void); |
