summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Stuge <peter@stuge.se>2012-02-19 06:58:16 +0100
committerPeter Stuge <peter@stuge.se>2012-02-19 06:58:16 +0100
commit7e0c747cc5ed0a31f38dff5eb5f03d4043b05ada (patch)
tree2028a01e8ecc662eb204ae2b9e05d209a6f867a6
parentc20ec7a927c05e0b960269751c26ab2b6e0b39ab (diff)
downloadlibusb-7e0c747cc5ed0a31f38dff5eb5f03d4043b05ada.tar.gz
libusb.h: Add comma after last value in enums to ease future expansion
-rw-r--r--libusb/libusb.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/libusb/libusb.h b/libusb/libusb.h
index ba1104d..15e8698 100644
--- a/libusb/libusb.h
+++ b/libusb/libusb.h
@@ -228,7 +228,7 @@ enum libusb_descriptor_type {
LIBUSB_DT_PHYSICAL = 0x23,
/** Hub descriptor */
- LIBUSB_DT_HUB = 0x29
+ LIBUSB_DT_HUB = 0x29,
};
/* Descriptor sizes per descriptor type */
@@ -312,7 +312,7 @@ enum libusb_standard_request {
LIBUSB_REQUEST_SET_INTERFACE = 0x0B,
/** Set then report an endpoint's synchronization frame */
- LIBUSB_REQUEST_SYNCH_FRAME = 0x0C
+ LIBUSB_REQUEST_SYNCH_FRAME = 0x0C,
};
/** \ingroup misc
@@ -348,7 +348,7 @@ enum libusb_request_recipient {
LIBUSB_RECIPIENT_ENDPOINT = 0x02,
/** Other */
- LIBUSB_RECIPIENT_OTHER = 0x03
+ LIBUSB_RECIPIENT_OTHER = 0x03,
};
#define LIBUSB_ISO_SYNC_TYPE_MASK 0x0C
@@ -387,7 +387,7 @@ enum libusb_iso_usage_type {
LIBUSB_ISO_USAGE_TYPE_FEEDBACK = 1,
/** Implicit feedback Data endpoint */
- LIBUSB_ISO_USAGE_TYPE_IMPLICIT = 2
+ LIBUSB_ISO_USAGE_TYPE_IMPLICIT = 2,
};
/** \ingroup desc
@@ -755,7 +755,7 @@ enum libusb_error {
when adding new error codes here. */
/** Other error */
- LIBUSB_ERROR_OTHER = -99
+ LIBUSB_ERROR_OTHER = -99,
};
/** \ingroup asyncio
@@ -782,7 +782,7 @@ enum libusb_transfer_status {
LIBUSB_TRANSFER_NO_DEVICE,
/** Device sent more data than requested */
- LIBUSB_TRANSFER_OVERFLOW
+ LIBUSB_TRANSFER_OVERFLOW,
};
/** \ingroup asyncio
@@ -798,7 +798,7 @@ enum libusb_transfer_flags {
* If this flag is set, it is illegal to call libusb_free_transfer()
* from your transfer callback, as this will result in a double-free
* when this flag is acted upon. */
- LIBUSB_TRANSFER_FREE_TRANSFER = 1<<2
+ LIBUSB_TRANSFER_FREE_TRANSFER = 1<<2,
};
/** \ingroup asyncio