diff options
| author | 2009-05-18 22:29:39 +0200 | |
|---|---|---|
| committer | 2009-05-18 18:47:20 -0700 | |
| commit | 8eaac0513bfb238edec22d46320669f5c9c76542 (patch) | |
| tree | 2db842339bf525d67017525bcbd3f4d35181e5ca /src/usbmux.h | |
| parent | dca1758c4f9602fc240c6a7c9ae45839e154d15f (diff) | |
| download | libimobiledevice-8eaac0513bfb238edec22d46320669f5c9c76542.tar.gz libimobiledevice-8eaac0513bfb238edec22d46320669f5c9c76542.tar.bz2 | |
Make use of usbmuxd and remove libusb dependencies
Signed-off-by: Matt Colyer <matt@colyer.name>
Diffstat (limited to 'src/usbmux.h')
| -rw-r--r-- | src/usbmux.h | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/src/usbmux.h b/src/usbmux.h deleted file mode 100644 index bea83f7..0000000 --- a/src/usbmux.h +++ /dev/null | |||
| @@ -1,58 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * usbmux.h | ||
| 3 | * Defines structures and variables pertaining to the usb multiplexing. | ||
| 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 | |||
| 22 | #include <sys/types.h> | ||
| 23 | #include <stdlib.h> | ||
| 24 | #include <stdint.h> | ||
| 25 | #include "libiphone/libiphone.h" | ||
| 26 | |||
| 27 | #ifndef USBMUX_H | ||
| 28 | #define USBMUX_H | ||
| 29 | |||
| 30 | #ifndef IPHONE_H | ||
| 31 | #include "iphone.h" | ||
| 32 | #endif | ||
| 33 | |||
| 34 | typedef struct { | ||
| 35 | uint32_t type, length; | ||
| 36 | uint16_t sport, dport; | ||
| 37 | uint32_t scnt, ocnt; | ||
| 38 | uint8_t offset, tcp_flags; | ||
| 39 | uint16_t window, nullnull, length16; | ||
| 40 | } usbmux_tcp_header; | ||
| 41 | |||
| 42 | struct iphone_umux_client_int { | ||
| 43 | usbmux_tcp_header *header; | ||
| 44 | iphone_device_t phone; | ||
| 45 | char *recv_buffer; | ||
| 46 | int r_len; | ||
| 47 | }; | ||
| 48 | |||
| 49 | usbmux_tcp_header *new_mux_packet(uint16_t s_port, uint16_t d_port); | ||
| 50 | |||
| 51 | typedef struct { | ||
| 52 | uint32_t type, length, major, minor, allnull; | ||
| 53 | } usbmux_version_header; | ||
| 54 | |||
| 55 | usbmux_version_header *version_header(void); | ||
| 56 | |||
| 57 | |||
| 58 | #endif | ||
