projects
/
project
/
usbmode.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
support Quanta and Blackberry modes
[project/usbmode.git]
/
switch.h
diff --git
a/switch.h
b/switch.h
index
1c964db
..
e499326
100644
(file)
--- a/
switch.h
+++ b/
switch.h
@@
-7,20
+7,24
@@
struct usbdev_data {
struct libusb_device_descriptor desc;
struct libusb_config_descriptor *config;
struct usbdev_data {
struct libusb_device_descriptor desc;
struct libusb_config_descriptor *config;
+ libusb_device *dev;
libusb_device_handle *devh;
struct blob_attr *info;
int interface;
int msg_endpoint;
int response_endpoint;
libusb_device_handle *devh;
struct blob_attr *info;
int interface;
int msg_endpoint;
int response_endpoint;
+ int release_delay;
+ int dev_class;
bool need_response;
char idstr[10];
char mfg[128], prod[128], serial[128];
};
bool need_response;
char idstr[10];
char mfg[128], prod[128], serial[128];
};
-extern
struct blob_att
r **messages;
+extern
cha
r **messages;
extern int *message_len;
extern int n_messages;
extern int *message_len;
extern int n_messages;
+extern struct libusb_context *usb;
void handle_switch(struct usbdev_data *data);
void handle_switch(struct usbdev_data *data);