69 str =
"generic/unspecified error";
72 str =
"memory allocation error";
75 str =
"invalid argument";
78 str =
"internal error";
81 str =
"Python API error";
84 str =
"decoders directory access error";
87 str =
"unknown error";
122 switch (error_code) {
130 str =
"SRD_ERR_MALLOC";
139 str =
"SRD_ERR_PYTHON";
142 str =
"SRD_ERR_DECODERS_DIR";
145 str =
"unknown error code";
The public libsigrokdecode header file to be used by frontends.
@ SRD_ERR_BUG
Errors hinting at internal bugs.
@ SRD_ERR_DECODERS_DIR
Protocol decoder path invalid.
@ SRD_ERR_MALLOC
Malloc/calloc/realloc error.
@ SRD_ERR_ARG
Function argument error.
@ SRD_ERR_PYTHON
Python C API error.
@ SRD_ERR
Generic/unspecified error.
const char * srd_strerror(int error_code)
Return a human-readable error string for the given libsigrokdecode error code.
const char * srd_strerror_name(int error_code)
Return the "name" string of the given libsigrokdecode error code.