MCPcopy Create free account
hub / github.com/Sapd/HeadsetControl / device_check_ids

Function device_check_ids

src/device.c:74–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 };
73
74bool device_check_ids(struct device* device, uint16_t vid, uint16_t pid)
75{
76 return device->idVendor == vid && device->idProduct == pid;
77}
78
79bool device_has_capability(struct device* device, enum capabilities cap)
80{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected