libusb
|
The hotplug callback structure. More...
#include <libusb.h>
Data Fields | |
struct libusb_context * | ctx |
Context this callback is associated with. | |
int | vendor_id |
Vendor ID to match or LIBUSB_HOTPLUG_VENDORID_ANY. | |
int | product_id |
Product ID to match or LIBUSB_HOTPLUG_PRODUCTID_ANY. | |
int | dev_class |
Device class to match or LIBUSB_HOTPLUG_CLASS_ANY. | |
libusb_hotplug_flag | flags |
Hotplug callback flags. | |
libusb_hotplug_event | event |
Event(s) that will trigger this callback. | |
libusb_hotplug_callback_fn | cb |
Callback function to invoke for matching event/device. | |
void * | user_data |
User data that will be passed to the callback function. | |
char | reserved [32] |
Reserved bits for internal use only. |
The hotplug callback structure.
The user populates this structure with libusb_hotplug_prepare_callback() and then calls libusb_hotplug_register_callback() to receive notification of hotplug events.