mirror of
https://github.com/RPCS3/hidapi.git
synced 2024-11-27 12:00:43 +00:00
Implemented the following for Mac OS X:
hid_get_manufacturer_string() hid_get_product_string() hid_get_serial_number_string()
This commit is contained in:
parent
d2c01f9000
commit
3c19a45952
18
mac/hid.c
18
mac/hid.c
@ -641,29 +641,17 @@ void HID_API_EXPORT hid_close(hid_device *dev)
|
||||
|
||||
int HID_API_EXPORT_CALL hid_get_manufacturer_string(hid_device *dev, wchar_t *string, size_t maxlen)
|
||||
{
|
||||
int res;
|
||||
|
||||
// TODO:
|
||||
|
||||
return 0;
|
||||
return get_manufacturer_string(dev->device_handle, string, maxlen);
|
||||
}
|
||||
|
||||
int HID_API_EXPORT_CALL hid_get_product_string(hid_device *dev, wchar_t *string, size_t maxlen)
|
||||
{
|
||||
int res;
|
||||
|
||||
// TODO:
|
||||
|
||||
return 0;
|
||||
return get_product_string(dev->device_handle, string, maxlen);
|
||||
}
|
||||
|
||||
int HID_API_EXPORT_CALL hid_get_serial_number_string(hid_device *dev, wchar_t *string, size_t maxlen)
|
||||
{
|
||||
int res;
|
||||
|
||||
// TODO:
|
||||
|
||||
return 0;
|
||||
return get_serial_number(dev->device_handle, string, maxlen);
|
||||
}
|
||||
|
||||
int HID_API_EXPORT_CALL hid_get_indexed_string(hid_device *dev, int string_index, wchar_t *string, size_t maxlen)
|
||||
|
Loading…
Reference in New Issue
Block a user