MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / register_device_error

Function register_device_error

lib/hidapi/mac/hid.c:278–281  ·  view source on GitHub ↗

Set the last error for a device to be reported by hid_error(dev). * The given error message will be copied (and decoded according to the * currently locale, so do not pass in string constants). * The last stored device error message is freed. * Use register_device_error(dev, NULL) to indicate "no error". */

Source from the content-addressed store, hash-verified

276 * The last stored device error message is freed.
277 * Use register_device_error(dev, NULL) to indicate "no error". */
278static void register_device_error(hid_device *dev, const char *msg)
279{
280 register_error_str(&dev->last_error_str, msg);
281}
282
283/* Similar to register_device_error, but you can pass a format string into this function. */
284static void register_device_error_format(hid_device *dev, const char *format, ...)

Callers 10

set_reportFunction · 0.70
get_reportFunction · 0.70
hid_read_timeoutFunction · 0.70
hid_get_product_stringFunction · 0.70
hid.cFile · 0.70
hid_get_indexed_stringFunction · 0.70

Calls 1

register_error_strFunction · 0.70

Tested by

no test coverage detected