34 const char* idProduct;
66 int (*is_device_ok)(uint16_t vendor, uint16_t product));
void drv_enum_add_udev_info(glob_t *glob)
Try to add udev info to existing entries in glob.
void glob_t_add_path(glob_t *glob, const char *path)
Add a path to glob, allocating memory as necessary.
void drv_enum_free(glob_t *glob)
Free memory obtained using any of the drv_enum_* functions.
int drv_enum_glob(glob_t *glob, const char *pattern)
List all devices matching glob(3) pattern.
void glob_t_init(glob_t *glob)
Setup a glob_t variable to empty state.
Interface to the userspace drivers.
int drv_enum_usb(glob_t *glob, int(*is_device_ok)(uint16_t vendor, uint16_t product))
List all available devices matched by is_device_ok() using libusb.
int drv_enum_globs(glob_t *globbuf, const char *const *patterns)
List devices matching any of patterns in null-terminated list.
const char * parent_subsys
Require a given subsystem parent.
const char * subsystem
Require given subsystem.
Condition to match in drv_enum_udev().
int drv_enum_udev(glob_t *globbuf, const struct drv_enum_udev_what *what)
List all devices matching any of conditions in {0}-terminated list.