Add SR_ERR_DATA.

This commit is contained in:
Bert Vermeulen 2014-08-28 00:18:29 +02:00
parent cbd9e6e987
commit b7f446051c
2 changed files with 3 additions and 0 deletions

View File

@ -75,6 +75,7 @@ enum sr_error_code {
SR_ERR_DEV_CLOSED = -7, /**< Device is closed, but must be open. */ SR_ERR_DEV_CLOSED = -7, /**< Device is closed, but must be open. */
SR_ERR_TIMEOUT = -8, /**< A timeout occurred. */ SR_ERR_TIMEOUT = -8, /**< A timeout occurred. */
SR_ERR_CHANNEL_GROUP = -9, /**< A channel group must be specified. */ 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 * Note: When adding entries here, don't forget to also update the

View File

@ -78,6 +78,8 @@ SR_API const char *sr_strerror(int error_code)
return "timeout occurred"; return "timeout occurred";
case SR_ERR_CHANNEL_GROUP: case SR_ERR_CHANNEL_GROUP:
return "no channel group specified"; return "no channel group specified";
case SR_ERR_DATA:
return "data is invalid";
default: default:
return "unknown error"; return "unknown error";
} }