Add SR_ERR_DATA.
This commit is contained in:
parent
cbd9e6e987
commit
b7f446051c
|
@ -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
|
||||||
|
|
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue