comparison 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
comparison
equal deleted inserted replaced
2113:3fcf1c3a3287 2114:27cf33c3a646
182 size_t offs; // Offset in "memory" 182 size_t offs; // Offset in "memory"
183 int bank; // Bank number or extradata index 183 int bank; // Bank number or extradata index
184 size_t size; // Size of data (0 for "default") 184 size_t size; // Size of data (0 for "default")
185 size_t offs2; // Offset in data-block 185 size_t offs2; // Offset in data-block
186 186
187 BOOL (*decFunction)(const struct _DMC64EncDecOp *op, DMC64Image *img, const DMGrowBuf *buf, const DMC64ImageCommonFormat *fmt); 187 int (*decFunction)(const struct _DMC64EncDecOp *op, DMC64Image *img, const DMGrowBuf *buf, const DMC64ImageCommonFormat *fmt);
188 BOOL (*encFunction)(const struct _DMC64EncDecOp *op, DMGrowBuf *buf, const DMC64Image *img, const DMC64ImageCommonFormat *fmt); 188 int (*encFunction)(const struct _DMC64EncDecOp *op, DMGrowBuf *buf, const DMC64Image *img, const DMC64ImageCommonFormat *fmt);
189 } DMC64EncDecOp; 189 } DMC64EncDecOp;
190 190
191 191
192 #define D64_MAX_ENCDEC_OPS 64 192 #define D64_MAX_ENCDEC_OPS 64
193 typedef DMC64EncDecOp DMC64EncDecOpList[D64_MAX_ENCDEC_OPS]; 193 typedef DMC64EncDecOp DMC64EncDecOpList[D64_MAX_ENCDEC_OPS];