projects
/
platform
/
upstream
/
libusb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d7938d
)
libusb.h: Add LIBUSB_CLASS_IMAGE in addition to LIBUSB_CLASS_PTP
author
Peter Stuge
<peter@stuge.se>
Mon, 13 Jun 2011 20:53:40 +0000
(22:53 +0200)
committer
Peter Stuge
<peter@stuge.se>
Sun, 24 Jul 2011 20:29:10 +0000
(22:29 +0200)
The old LIBUSB_CLASS_PTP name is kept for compatibility. Fixes #106.
libusb/libusb.h
patch
|
blob
|
history
diff --git
a/libusb/libusb.h
b/libusb/libusb.h
index
5f36f38
..
7bb1b6a
100644
(file)
--- a/
libusb/libusb.h
+++ b/
libusb/libusb.h
@@
-158,8
+158,9
@@
enum libusb_class_code {
/** Printer class */
LIBUSB_CLASS_PRINTER = 7,
- /** Picture transfer protocol class */
- LIBUSB_CLASS_PTP = 6,
+ /** Image class */
+ LIBUSB_CLASS_PTP = 6, /* legacy name from libusb-0.1 usb.h */
+ LIBUSB_CLASS_IMAGE = 6,
/** Mass storage class */
LIBUSB_CLASS_MASS_STORAGE = 8,