thfr a51cea02db import ports/comms/libhidapi, ok sthen@
HIDAPI is a multi-platform library which allows an application to interface
with USB and Bluetooth HID-Class devices on Windows, Linux, FreeBSD, and Mac OS
X. On OpenBSD (like on FreeBSD), the backend uses libusb-1.0 to communicate
directly to a USB device. This back-end will of course not work with Bluetooth
devices.
2018-06-18 23:37:01 +00:00

17 lines
419 B
Plaintext

$OpenBSD: patch-README_txt,v 1.1.1.1 2018/06/18 23:37:01 thfr Exp $
rename hid_init() to hidapi_hid_init() to avoid collision with usbhid
Index: README.txt
--- README.txt.orig
+++ README.txt
@@ -64,7 +64,7 @@ int main(int argc, char* argv[])
int i;
// Initialize the hidapi library
- res = hid_init();
+ res = hidapi_hid_init();
// Open the device using the VID, PID,
// and optionally the Serial number.