From: Bert Vermeulen Date: Mon, 18 Aug 2014 22:12:32 +0000 (+0200) Subject: Add second positive status code: SR_OK_CONTINUE. X-Git-Tag: libsigrok-0.4.0~1108 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=3e2cd21115a22689393f9d154b988792d18ae21a Add second positive status code: SR_OK_CONTINUE. Errors are thus always < 0, SR_OK == 0, and "OK but..." status codes are > 0. --- diff --git a/include/libsigrok/libsigrok.h b/include/libsigrok/libsigrok.h index 1f20e1d6..8865e9dc 100644 --- a/include/libsigrok/libsigrok.h +++ b/include/libsigrok/libsigrok.h @@ -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. */