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". */
| 276 | * The last stored device error message is freed. |
| 277 | * Use register_device_error(dev, NULL) to indicate "no error". */ |
| 278 | static 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. */ |
| 284 | static void register_device_error_format(hid_device *dev, const char *format, ...) |
no test coverage detected