From: Uwe Hermann Date: Mon, 5 Apr 2010 23:29:32 +0000 (+0200) Subject: libsigrokdecode: Add initial return code list. X-Git-Tag: libsigrok-0.1.0~584 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=2b3414a497f639233c824bc930cecf5f17b5a79d;p=libsigrok.git libsigrokdecode: Add initial return code list. --- diff --git a/sigrok.h b/sigrok.h index a9d858a0..50fd0716 100644 --- a/sigrok.h +++ b/sigrok.h @@ -35,8 +35,8 @@ * use these #defines instead. All error codes are negative numbers. * * The error codes are globally unique in libsigrok, i.e. if one of the - * libsigrok function returns a "malloc error" it must be exactly the same - * return value as used for all other functions to indicate "malloc error". + * libsigrok functions returns a "malloc error" it must be exactly the same + * return value as used by all other functions to indicate "malloc error". * There must be no functions which indicate two different errors via the * same return code. * @@ -44,7 +44,7 @@ * or reused for different #defines later. You can only add new #defines and * return codes, but never remove or redefine existing ones. */ -#define SIGROK_OK 0 /* No error */ +#define SIGROK_OK 0 /* No error */ #define SIGROK_ERR -1 /* Generic/unspecified error */ #define SIGROK_ERR_MALLOC -2 /* Malloc/calloc/realloc error */ #define SIGROK_ERR_SAMPLERATE -3 /* Incorrect samplerate */