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:
Alan Ott 2010-07-28 21:30:09 -04:00
parent d2c01f9000
commit 3c19a45952

View File

@ -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)