summaryrefslogtreecommitdiffstats
path: root/src/iphone.h
diff options
context:
space:
mode:
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