libusb.h: Add LIBUSB_CLASS_IMAGE in addition to LIBUSB_CLASS_PTP
authorPeter Stuge <peter@stuge.se>
Mon, 13 Jun 2011 20:53:40 +0000 (22:53 +0200)
committerPeter 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

index 5f36f38..7bb1b6a 100644 (file)
@@ -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,