From: Uwe Hermann Date: Wed, 6 Apr 2011 17:53:31 +0000 (+0200) Subject: Add SR_ERR_ARG #define. X-Git-Tag: libsigrok-0.1.0~295 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=f7d2982d42e876d8814cba203570a45284c79658 Add SR_ERR_ARG #define. Changing the number of SR_ERR_SAMPLERATE is not a problem ATM, as we never had a public release of libsigrok, i.e. nobody relies on the API yet. --- diff --git a/sigrok.h b/sigrok.h index 7b3d4a49..1ad12e96 100644 --- a/sigrok.h +++ b/sigrok.h @@ -53,7 +53,8 @@ extern "C" { #define SR_OK 0 /* No error */ #define SR_ERR -1 /* Generic/unspecified error */ #define SR_ERR_MALLOC -2 /* Malloc/calloc/realloc error */ -#define SR_ERR_SAMPLERATE -3 /* Incorrect samplerate */ +#define SR_ERR_ARG -3 /* Function argument error */ +#define SR_ERR_SAMPLERATE -4 /* Incorrect samplerate */ #define SR_MAX_NUM_PROBES 64 /* Limited by uint64_t. */ #define SR_MAX_PROBENAME_LEN 32