From 3e2cd21115a22689393f9d154b988792d18ae21a Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Tue, 19 Aug 2014 00:12:32 +0200 Subject: [PATCH] Add second positive status code: SR_OK_CONTINUE. Errors are thus always < 0, SR_OK == 0, and "OK but..." status codes are > 0. --- include/libsigrok/libsigrok.h | 1 + 1 file changed, 1 insertion(+) 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. */