diff options
Diffstat (limited to 'iphone.h')
| -rw-r--r-- | iphone.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/iphone.h b/iphone.h new file mode 100644 index 0000000..a49b7ef --- /dev/null +++ b/iphone.h | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | /* iphone.h | ||
| 2 | * iPhone struct | ||
| 3 | * Written by FxChiP */ | ||
| 4 | |||
| 5 | #ifndef IPHONE_H | ||
| 6 | #define IPHONE_H | ||
| 7 | |||
| 8 | #ifndef USBMUX_H | ||
| 9 | #include "usbmux.h" | ||
| 10 | #warning usbmux not included? | ||
| 11 | #endif | ||
| 12 | |||
| 13 | #include <usb.h> | ||
| 14 | |||
| 15 | #define BULKIN 0x85 | ||
| 16 | #define BULKOUT 0x04 | ||
| 17 | |||
| 18 | typedef struct { | ||
| 19 | char *buffer; | ||
| 20 | struct usb_dev_handle *device; | ||
| 21 | struct usb_device *__device; | ||
| 22 | } iPhone; | ||
| 23 | |||
| 24 | // Function definitions | ||
| 25 | void free_iPhone(iPhone *victim); | ||
| 26 | iPhone *get_iPhone(); | ||
| 27 | int send_to_phone(iPhone *phone, char *data, int datalen); | ||
| 28 | int recv_from_phone(iPhone *phone, char *data, int datalen); | ||
| 29 | #endif | ||
