From: Bert Vermeulen Date: Wed, 27 Aug 2014 22:18:29 +0000 (+0200) Subject: Add SR_ERR_DATA. X-Git-Tag: libsigrok-0.4.0~1090 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b7f446051c67f16c360350c6191d7d181ffd2356;p=libsigrok.git Add SR_ERR_DATA. --- diff --git a/include/libsigrok/libsigrok.h b/include/libsigrok/libsigrok.h index 8865e9dc..cadb88e8 100644 --- a/include/libsigrok/libsigrok.h +++ b/include/libsigrok/libsigrok.h @@ -75,6 +75,7 @@ enum sr_error_code { SR_ERR_DEV_CLOSED = -7, /**< Device is closed, but must be open. */ SR_ERR_TIMEOUT = -8, /**< A timeout occurred. */ SR_ERR_CHANNEL_GROUP = -9, /**< A channel group must be specified. */ + SR_ERR_DATA =-10, /**< Data is invalid. */ /* * Note: When adding entries here, don't forget to also update the diff --git a/src/error.c b/src/error.c index f8779752..a8a46503 100644 --- a/src/error.c +++ b/src/error.c @@ -78,6 +78,8 @@ SR_API const char *sr_strerror(int error_code) return "timeout occurred"; case SR_ERR_CHANNEL_GROUP: return "no channel group specified"; + case SR_ERR_DATA: + return "data is invalid"; default: return "unknown error"; }