Add new error code which can be used to notify the user about
general input/output errors.
Signed-off-by: Bartosz Golaszewski <redacted>
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. */
+ SR_ERR_IO =-11, /**< Input/output error. */
/*
* Note: When adding entries here, don't forget to also update the
return "no channel group specified";
case SR_ERR_DATA:
return "data is invalid";
+ case SR_ERR_IO:
+ return "input/output error";
default:
return "unknown error";
}