Skip to content

Commit

Permalink
Connection callback: add stubs for netbsd (#668)
Browse files Browse the repository at this point in the history
* netbsd hotplug stubs

* Make cygwin happy (fix copied from libusb)
  • Loading branch information
k1-801 authored Apr 6, 2024
1 parent ce92386 commit c3a2775
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions netbsd/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,28 @@ void HID_API_EXPORT HID_API_CALL hid_free_enumeration(struct hid_device_info *de
}
}

int HID_API_EXPORT HID_API_CALL hid_hotplug_register_callback(unsigned short vendor_id, unsigned short product_id, int events, int flags, hid_hotplug_callback_fn callback, void *user_data, hid_hotplug_callback_handle *callback_handle)
{
/* Stub */
(void)vendor_id;
(void)product_id;
(void)events;
(void)flags;
(void)callback;
(void)user_data;
(void)callback_handle;

return -1;
}

int HID_API_EXPORT HID_API_CALL hid_hotplug_deregister_callback(hid_hotplug_callback_handle callback_handle)
{
/* Stub */
(void)callback_handle;

return -1;
}

HID_API_EXPORT hid_device * HID_API_CALL hid_open(unsigned short vendor_id, unsigned short product_id, const wchar_t *serial_number)
{
struct hid_device_info *devs;
Expand Down

0 comments on commit c3a2775

Please sign in to comment.