Logo Search packages:      
Sourcecode: nut version File versions  Download package

USBDeviceMatcher_s Struct Reference

#include <usb-common.h>

List of all members.


Detailed Description

USBDeviceMatcher_t: A "USB matcher" is a callback function that inputs a USBDevice_t structure, and returns 1 for a match and 0 for a non-match. Thus, a matcher provides a criterion for selecting a USB device. The callback function further is expected to return -1 on error with errno set, and -2 on other errors. Matchers can be connected in a linked list via the "next" field.

Definition at line 55 of file usb-common.h.


Public Attributes

int(* match_function )(USBDevice_t *device, void *privdata)
struct USBDeviceMatcher_snext
void * privdata

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

Generated by  Doxygen 1.6.0   Back to index