diff options
| author | 2008-07-29 01:11:02 -0700 | |
|---|---|---|
| committer | 2008-07-29 01:11:02 -0700 | |
| commit | e2ff1128351d75eafd5426af7f96f9719c1af3e6 (patch) | |
| tree | c1c460b4de78cd5645d6d12e83d2646f56f30363 /iphone.h | |
| download | libimobiledevice-e2ff1128351d75eafd5426af7f96f9719c1af3e6.tar.gz libimobiledevice-e2ff1128351d75eafd5426af7f96f9719c1af3e6.tar.bz2 | |
First released version, 0.089.
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 | ||
