libusb
Data Fields
libusb_hotplug_callback Struct Reference

The hotplug callback structure. More...

#include <libusb.h>

Data Fields

struct libusb_contextctx
 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.

Detailed Description

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.


The documentation for this struct was generated from the following file: