Skip to content

Commit e65e8e0

Browse files
committed
add dummy libusb implementation
1 parent 69ff3e5 commit e65e8e0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

libusb/hid.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,11 +1557,20 @@ int HID_API_EXPORT hid_read_timeout(hid_device *dev, unsigned char *data, size_t
15571557
return bytes_read;
15581558
}
15591559

1560+
15601561
int HID_API_EXPORT hid_read(hid_device *dev, unsigned char *data, size_t length)
15611562
{
15621563
return hid_read_timeout(dev, data, length, dev->blocking ? -1 : 0);
15631564
}
15641565

1566+
1567+
HID_API_EXPORT const wchar_t * HID_API_CALL hid_read_error(hid_device *dev)
1568+
{
1569+
(void)dev;
1570+
return L"hid_read_error is not implemented yet";
1571+
}
1572+
1573+
15651574
int HID_API_EXPORT hid_set_nonblocking(hid_device *dev, int nonblock)
15661575
{
15671576
dev->blocking = !nonblock;

0 commit comments

Comments
 (0)