![]() |
![]()
| ![]() |
![]()
NAME
LIBRARYlibrary “libdivecomputer” SYNOPSIS
dc_status_t
DESCRIPTIONIterates through the available USB HID devices matching the given descriptor. Accepts a context opened with dc_context_new(3) and a descriptor usually found by searching through dc_descriptor_iterator(3). On returning The value type of the iterator is of type dc_usbhid_device_t. This value can be used in functions to extract information about this specific USB HID device, namely dc_usbhid_device_get_pid(3) and dc_usbhid_device_get_vid(3). When done the USB HID device needs to be freed with dc_usbhid_device_free(3). After iterating the iterator needs to be freed using dc_iterator_free(3). RETURN VALUESReturns On SEE ALSOdc_context_new(3), dc_bluetooth_iterator_new(3), dc_serial_iterator_new(3), dc_irda_iterator_new(3), dc_usbhid_device_get_pid(3), dc_usbhid_device_get_vid(3). AUTHORSThe library
“libdivecomputer” library was written by
Jef Driesen,
jef@libdivecomputer.org.
|