diff options
author | Linus Walleij <triad@df.lth.se> | 2012-08-20 02:00:34 +0200 |
---|---|---|
committer | Linus Walleij <triad@df.lth.se> | 2012-08-20 02:00:34 +0200 |
commit | 15d18e31458be5006eb229df68869df2fff93495 (patch) | |
tree | 641c15d91b56091cdcea8c3b1f1e4c487d491486 /src/libusb-glue.h | |
parent | e68bf945aa545c47744ca891a43f3847bc1a5372 (diff) | |
download | libmtp-15d18e31458be5006eb229df68869df2fff93495.tar.gz |
Do not always set altinterface 0! This is just wildly wrong:
if we need ever do that it must be where we can detect that it
needs changing, so #if 0 it for now.
Also added code to change config if the desired one is not
already active.
Signed-off-by: Linus Walleij <triad@df.lth.se>
Diffstat (limited to 'src/libusb-glue.h')
-rw-r--r-- | src/libusb-glue.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libusb-glue.h b/src/libusb-glue.h index 863bed7..330dc04 100644 --- a/src/libusb-glue.h +++ b/src/libusb-glue.h @@ -3,7 +3,7 @@ * Low-level USB interface glue towards libusb. * * Copyright (C) 2005-2007 Richard A. Low <richard@wentnet.com> - * Copyright (C) 2005-2011 Linus Walleij <triad@df.lth.se> + * Copyright (C) 2005-2012 Linus Walleij <triad@df.lth.se> * Copyright (C) 2006-2011 Marcus Meissner * Copyright (C) 2007 Ted Bullock * Copyright (C) 2008 Chris Bagwell <chris@cnpbagwell.com> @@ -91,7 +91,9 @@ struct _PTP_USB { #ifdef HAVE_LIBOPENUSB openusb_dev_handle_t* handle; #endif + uint8_t config; uint8_t interface; + uint8_t altsetting; int inep; int inep_maxpacket; int outep; |