summaryrefslogtreecommitdiffstats
path: root/src/iphone.h
diff options
context:
space:
mode:
authorGravatar Matt Colyer2008-07-29 10:13:37 -0700
committerGravatar Matt Colyer2008-07-29 10:13:37 -0700
commit3dc130f3049e250b2d5c0b48af1995fda2fad3d4 (patch)
tree9d801459ef68e83a0d4ca038c0589d8e4c8aa2b2 /src/iphone.h
parent6039e5bbfc36aa5210295c38f251ed178ce5adbb (diff)
downloadlibimobiledevice-3dc130f3049e250b2d5c0b48af1995fda2fad3d4.tar.gz
libimobiledevice-3dc130f3049e250b2d5c0b48af1995fda2fad3d4.tar.bz2
Autotooled the project with very basic versioning support.
Diffstat (limited to 'src/iphone.h')
-rw-r--r--src/iphone.h29
1 files changed, 29 insertions, 0 deletions
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 @@
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
18typedef struct {
19 char *buffer;
20 struct usb_dev_handle *device;
21 struct usb_device *__device;
22} iPhone;
23
24// Function definitions
25void free_iPhone(iPhone *victim);
26iPhone *get_iPhone();
27int send_to_phone(iPhone *phone, char *data, int datalen);
28int recv_from_phone(iPhone *phone, char *data, int datalen);
29#endif