]> sigrok.org Git - libsigrok.git/commitdiff
Add second positive status code: SR_OK_CONTINUE.
authorBert Vermeulen <redacted>
Mon, 18 Aug 2014 22:12:32 +0000 (00:12 +0200)
committerBert Vermeulen <redacted>
Mon, 25 Aug 2014 23:55:41 +0000 (01:55 +0200)
Errors are thus always < 0, SR_OK == 0, and "OK but..." status
codes are > 0.

include/libsigrok/libsigrok.h

index 1f20e1d66826b1b8d2bfafba6e98858cc3aff5d8..8865e9dc3f65748c2c9e75d1368163a551b14ddb 100644 (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. */