core: Store different event types as a bitmask within the context
authorChris Dickens <christopher.a.dickens@gmail.com>
Thu, 10 Dec 2015 07:45:21 +0000 (23:45 -0800)
committerChris Dickens <christopher.a.dickens@gmail.com>
Thu, 17 Dec 2015 08:28:20 +0000 (00:28 -0800)
commit87a97e4f2065cc7190b0098b4d0df5a68e10a547
tree41208e5bd779ac1b871a5fd680ae5b9ee878376c
parentb7526c19a57e9c584bdc689fa2447804580dbf94
core: Store different event types as a bitmask within the context

This change introduces a new event_flags member to the libusb_context
that holds a bitmask of different events that have occurred. This will
allow multiple "one-shot" events (those that don't require counting) to
be stored in a single variable. The only existing event of this type,
pollfds_modified, has been converted to use this bitmask instead.

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/io.c
libusb/libusbi.h
libusb/version_nano.h