changeset 908:03bda6477ad4

Add new error code DMERR_DATA_ERROR.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 23 Feb 2015 22:51:28 +0200
parents bc6c338295e5
children be5d276f8a6c
files src/dmlib.c src/dmlib.h
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/dmlib.c	Mon Feb 23 22:42:13 2015 +0200
+++ b/src/dmlib.c	Mon Feb 23 22:51:28 2015 +0200
@@ -180,6 +180,8 @@
         case DMERR_EXTRA_DATA:     return "Extra data";
         case DMERR_BOUNDS:         return "Bounds check failed";
 
+        case DMERR_DATA_ERROR:     return "Data decoding/encoding/parsing error";
+
         case DMERR_NOTPACK:        return "File is not a PACK";
         case DMERR_VERSION:        return "Unsupported PACK version";
         case DMERR_INVALID:        return "Invalid data, corrupted file";
--- a/src/dmlib.h	Mon Feb 23 22:42:13 2015 +0200
+++ b/src/dmlib.h	Mon Feb 23 22:51:28 2015 +0200
@@ -55,6 +55,8 @@
     DMERR_OUT_OF_DATA,
     DMERR_EXTRA_DATA,
     DMERR_BOUNDS,
+    
+    DMERR_DATA_ERROR,   // Data decoding/encoding/parsing error
 
     // PACK-file subsystem
     DMERR_NOTPACK,