X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Ferror.c;h=15a25a0033a185e5e72c852ae1cdd64c72d0c3bb;hb=33306b13acdc34fb50b35a56d362f1ab56fc0afd;hp=f87797528088d4e946a5ae884352064843ce7a84;hpb=155b680da482cea2381becb73c51cfb838bff31e;p=libsigrok.git diff --git a/src/error.c b/src/error.c index f8779752..15a25a00 100644 --- a/src/error.c +++ b/src/error.c @@ -14,11 +14,11 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * along with this program; if not, see . */ -#include "libsigrok.h" +#include +#include /** * @file @@ -78,6 +78,10 @@ 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"; + case SR_ERR_IO: + return "input/output error"; default: return "unknown error"; } @@ -129,6 +133,10 @@ SR_API const char *sr_strerror_name(int error_code) return "SR_ERR_TIMEOUT"; case SR_ERR_CHANNEL_GROUP: return "SR_ERR_CHANNEL_GROUP"; + case SR_ERR_DATA: + return "SR_ERR_DATA"; + case SR_ERR_IO: + return "SR_ERR_IO"; default: return "unknown error code"; }