Add second positive status code: SR_OK_CONTINUE.
Errors are thus always < 0, SR_OK == 0, and "OK but..." status codes are > 0.
This commit is contained in:
parent
57486a7528
commit
3e2cd21115
|
@ -64,6 +64,7 @@ extern "C" {
|
|||
|
||||
/** Status/error codes returned by libsigrok functions. */
|
||||
enum sr_error_code {
|
||||
SR_OK_CONTINUE = 1, /**< Keep going. */
|
||||
SR_OK = 0, /**< No error. */
|
||||
SR_ERR = -1, /**< Generic/unspecified error. */
|
||||
SR_ERR_MALLOC = -2, /**< Malloc/calloc/realloc error. */
|
||||
|
|
Loading…
Reference in New Issue