Skip to content

Commit c3a2775

Browse files
authored
Connection callback: add stubs for netbsd (#668)
* netbsd hotplug stubs * Make cygwin happy (fix copied from libusb)
1 parent ce92386 commit c3a2775

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

netbsd/hid.c

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,28 @@ void HID_API_EXPORT HID_API_CALL hid_free_enumeration(struct hid_device_info *de
742742
}
743743
}
744744

745+
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)
746+
{
747+
/* Stub */
748+
(void)vendor_id;
749+
(void)product_id;
750+
(void)events;
751+
(void)flags;
752+
(void)callback;
753+
(void)user_data;
754+
(void)callback_handle;
755+
756+
return -1;
757+
}
758+
759+
int HID_API_EXPORT HID_API_CALL hid_hotplug_deregister_callback(hid_hotplug_callback_handle callback_handle)
760+
{
761+
/* Stub */
762+
(void)callback_handle;
763+
764+
return -1;
765+
}
766+
745767
HID_API_EXPORT hid_device * HID_API_CALL hid_open(unsigned short vendor_id, unsigned short product_id, const wchar_t *serial_number)
746768
{
747769
struct hid_device_info *devs;

0 commit comments

Comments
 (0)