From 3dc130f3049e250b2d5c0b48af1995fda2fad3d4 Mon Sep 17 00:00:00 2001 From: Matt Colyer Date: Tue, 29 Jul 2008 10:13:37 -0700 Subject: Autotooled the project with very basic versioning support. --- src/iphone.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/iphone.h (limited to 'src/iphone.h') diff --git a/src/iphone.h b/src/iphone.h new file mode 100644 index 0000000..a49b7ef --- /dev/null +++ b/src/iphone.h @@ -0,0 +1,29 @@ +/* iphone.h + * iPhone struct + * Written by FxChiP */ + +#ifndef IPHONE_H +#define IPHONE_H + +#ifndef USBMUX_H +#include "usbmux.h" +#warning usbmux not included? +#endif + +#include + +#define BULKIN 0x85 +#define BULKOUT 0x04 + +typedef struct { + char *buffer; + struct usb_dev_handle *device; + struct usb_device *__device; +} iPhone; + +// Function definitions +void free_iPhone(iPhone *victim); +iPhone *get_iPhone(); +int send_to_phone(iPhone *phone, char *data, int datalen); +int recv_from_phone(iPhone *phone, char *data, int datalen); +#endif -- cgit v1.1-32-gdbae