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

Function register_device_error_format

lib/hidapi/linux/hid.c:175–181  ·  view source on GitHub ↗

Similar to register_device_error, but you can pass a format string into this function. */

Source from the content-addressed store, hash-verified

173
174/* Similar to register_device_error, but you can pass a format string into this function. */
175static void register_device_error_format(hid_device *dev, const char *format, ...)
176{
177 va_list args;
178 va_start(args, format);
179 register_error_str_vformat(&dev->last_error_str, format, args);
180 va_end(args);
181}
182
183/* Get an attribute value from a udev_device and return it as a whar_t
184 string. The returned string must be freed with free() when done.*/

Callers 4

hid_send_feature_reportFunction · 0.70
hid_get_feature_reportFunction · 0.70
hid_get_input_reportFunction · 0.70

Calls 1

Tested by

no test coverage detected