X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2Ferror.c;h=15a25a0033a185e5e72c852ae1cdd64c72d0c3bb;hb=4fff7b3c8a84a5593ddf780992355d9ebf434a90;hp=9956089fe7baeb6668266a62c10cc9ad19751cf0;hpb=aad21bd8666e7937b3d8b83b1fc0c57865dfc1ec;p=libsigrok.git
diff --git a/src/error.c b/src/error.c
index 9956089f..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
@@ -58,8 +58,6 @@ SR_API const char *sr_strerror(int error_code)
*/
switch (error_code) {
- case SR_OK_CONTINUE:
- return "not enough data to decide error status yet";
case SR_OK:
return "no error";
case SR_ERR:
@@ -82,6 +80,8 @@ SR_API const char *sr_strerror(int error_code)
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";
}
@@ -133,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";
}