Home
last modified time | relevance | path

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

/external/libusb/libusb/
Dhotplug.c159 struct libusb_hotplug_callback *hotplug_cb) in usbi_hotplug_match_cb() argument
162 if (hotplug_cb->needs_free) { in usbi_hotplug_match_cb()
167 if (!(hotplug_cb->events & event)) { in usbi_hotplug_match_cb()
171 if (LIBUSB_HOTPLUG_MATCH_ANY != hotplug_cb->vendor_id && in usbi_hotplug_match_cb()
172 hotplug_cb->vendor_id != dev->device_descriptor.idVendor) { in usbi_hotplug_match_cb()
176 if (LIBUSB_HOTPLUG_MATCH_ANY != hotplug_cb->product_id && in usbi_hotplug_match_cb()
177 hotplug_cb->product_id != dev->device_descriptor.idProduct) { in usbi_hotplug_match_cb()
181 if (LIBUSB_HOTPLUG_MATCH_ANY != hotplug_cb->dev_class && in usbi_hotplug_match_cb()
182 hotplug_cb->dev_class != dev->device_descriptor.bDeviceClass) { in usbi_hotplug_match_cb()
186 return hotplug_cb->cb (ctx, dev, event, hotplug_cb->user_data); in usbi_hotplug_match_cb()
[all …]