Home
last modified time | relevance | path

Searched refs:hotplug_cb (Results 1 – 1 of 1) sorted by relevance

/third_party/libusb/libusb/
Dhotplug.c155 struct libusb_hotplug_callback *hotplug_cb) in usbi_hotplug_match_cb() argument
157 if (!(hotplug_cb->flags & event)) { in usbi_hotplug_match_cb()
161 if ((hotplug_cb->flags & USBI_HOTPLUG_VENDOR_ID_VALID) && in usbi_hotplug_match_cb()
162 hotplug_cb->vendor_id != dev->device_descriptor.idVendor) { in usbi_hotplug_match_cb()
166 if ((hotplug_cb->flags & USBI_HOTPLUG_PRODUCT_ID_VALID) && in usbi_hotplug_match_cb()
167 hotplug_cb->product_id != dev->device_descriptor.idProduct) { in usbi_hotplug_match_cb()
171 if ((hotplug_cb->flags & USBI_HOTPLUG_DEV_CLASS_VALID) && in usbi_hotplug_match_cb()
172 hotplug_cb->dev_class != dev->device_descriptor.bDeviceClass) { in usbi_hotplug_match_cb()
176 return hotplug_cb->cb(ctx, dev, event, hotplug_cb->user_data); in usbi_hotplug_match_cb()
182 struct libusb_hotplug_callback *hotplug_cb, *next; in usbi_hotplug_match() local
[all …]