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:
Bert Vermeulen 2014-08-19 00:12:32 +02:00
parent 57486a7528
commit 3e2cd21115
1 changed files with 1 additions and 0 deletions

View File

@ -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. */