diff tools/lib64gfx.h @ 2114:27cf33c3a646

Return actual error code from enc and dec functions instead of just BOOL.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 26 May 2019 02:43:08 +0300
parents 3fcf1c3a3287
children b49d7cb20a73
line wrap: on
line diff
--- a/tools/lib64gfx.h	Sun May 26 01:16:57 2019 +0300
+++ b/tools/lib64gfx.h	Sun May 26 02:43:08 2019 +0300
@@ -184,8 +184,8 @@
     size_t size;     // Size of data (0 for "default")
     size_t offs2;    // Offset in data-block
 
-    BOOL   (*decFunction)(const struct _DMC64EncDecOp *op, DMC64Image *img, const DMGrowBuf *buf, const DMC64ImageCommonFormat *fmt);
-    BOOL   (*encFunction)(const struct _DMC64EncDecOp *op, DMGrowBuf *buf, const DMC64Image *img, const DMC64ImageCommonFormat *fmt);
+    int (*decFunction)(const struct _DMC64EncDecOp *op, DMC64Image *img, const DMGrowBuf *buf, const DMC64ImageCommonFormat *fmt);
+    int (*encFunction)(const struct _DMC64EncDecOp *op, DMGrowBuf *buf, const DMC64Image *img, const DMC64ImageCommonFormat *fmt);
 } DMC64EncDecOp;