diff lib64gfx.h @ 516:6f141f760c54

Constify.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 19 Nov 2012 17:24:08 +0200
parents a896c1153e4e
children 5b37a2e427b7
line wrap: on
line diff
--- a/lib64gfx.h	Mon Nov 19 16:58:22 2012 +0200
+++ b/lib64gfx.h	Mon Nov 19 17:24:08 2012 +0200
@@ -166,16 +166,16 @@
 
 extern const size_t      dmC64DefaultSizes[DT_LAST];
 extern DMColor           dmC64Palette[C64_NCOLORS];
-extern DMC64ImageFormat  dmC64ImageFormats[];
+extern const DMC64ImageFormat  dmC64ImageFormats[];
 extern const int         ndmC64ImageFormats;
 extern const char *      dmC64ImageTypeNames[];
 
 
 int       dmC64ConvertCSData(DMImage *img, int xoffs, int yoffs, const Uint8 *inBuf, int width, int height, BOOL multicolor, int *colors);
-int       dmC64ProbeGeneric(const Uint8 *buf, const size_t len, DMC64ImageFormat **fmt);
+int       dmC64ProbeGeneric(const Uint8 *buf, const size_t len, const DMC64ImageFormat **fmt);
 int       dmC64DecodeGenericBMP(DMC64Image *img, const Uint8 *buf, const size_t len, const DMC64ImageFormat *fmt);
 int       dmC64ConvertGenericBMP2Image(DMImage *screen, const DMC64Image *img);
-int       dmC64DecodeBMP(DMC64Image *img, const Uint8 *buf, const size_t len, const size_t probeOffs, const size_t loadOffs, DMC64ImageFormat **fmt, DMC64ImageFormat *forced);
+int       dmC64DecodeBMP(DMC64Image *img, const Uint8 *buf, const size_t len, const size_t probeOffs, const size_t loadOffs, const DMC64ImageFormat **fmt, const DMC64ImageFormat *forced);
 
 int       dmReadDataFile(FILE *inFile, const char *filename, Uint8 **buf, size_t *size);