summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Dickens <christopher.a.dickens@gmail.com>2015-01-12 23:32:48 -0800
committerChris Dickens <christopher.a.dickens@gmail.com>2015-01-12 23:34:02 -0800
commit127e0c3e22e64d752b2ad9091400e921f0f623b7 (patch)
tree182465911e5d05cba3f2ce0e95525e1a9942a7b7
parent30376161e536aacb448f2d5d872fde84cb697dfa (diff)
downloadlibusb-127e0c3e22e64d752b2ad9091400e921f0f623b7.tar.gz
hotplug: Provide a default enum value for libusb_hotplug_flag
* Closes #35 Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
-rw-r--r--libusb/libusb.h5
-rw-r--r--libusb/version_nano.h2
2 files changed, 5 insertions, 2 deletions
diff --git a/libusb/libusb.h b/libusb/libusb.h
index 9285b1d..e8da829 100644
--- a/libusb/libusb.h
+++ b/libusb/libusb.h
@@ -1883,8 +1883,11 @@ typedef int libusb_hotplug_callback_handle;
*
* Flags for hotplug events */
typedef enum {
+ /** Default value when not using any flags. */
+ LIBUSB_HOTPLUG_NO_FLAGS = 0,
+
/** Arm the callback and fire it for all matching currently attached devices. */
- LIBUSB_HOTPLUG_ENUMERATE = 1,
+ LIBUSB_HOTPLUG_ENUMERATE = 1<<0,
} libusb_hotplug_flag;
/** \ingroup hotplug
diff --git a/libusb/version_nano.h b/libusb/version_nano.h
index 6286e58..395ea13 100644
--- a/libusb/version_nano.h
+++ b/libusb/version_nano.h
@@ -1 +1 @@
-#define LIBUSB_NANO 10948
+#define LIBUSB_NANO 10949