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

Function register_global_error

lib/hidapi/linux/hid.c:150–153  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

148 * The last stored global error message is freed.
149 * Use register_global_error(NULL) to indicate "no error". */
150static void register_global_error(const char *msg)
151{
152 register_error_str(&last_global_error_str, msg);
153}
154
155/* Similar to register_global_error, but allows passing a format string into this function. */
156static void register_global_error_format(const char *format, ...)

Callers 4

hid.cFile · 0.70
hid_enumerateFunction · 0.70
hid_openFunction · 0.70

Calls 1

register_error_strFunction · 0.70

Tested by

no test coverage detected