view tools/lib64util.h @ 2379:7011e11dad9a

Comments.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 08 Jan 2020 13:08:06 +0200
parents d42dccc34964
children 89cb93184175
line wrap: on
line source

/*
 * Common utility functions for gfxconv and 64vw
 * Programmed and designed by Matti 'ccr' Hamalainen
 * (C) Copyright 2019-2020 Tecnic Software productions (TNSP)
 *
 * Please read file 'COPYING' for information on license and distribution.
 */
#ifndef LIB64UTIL_H
#define LIB64UTIL_H 1

#include "lib64gfx.h"

#ifdef __cplusplus
extern "C" {
#endif


// Default character file ROM path, if not defined yet
#ifndef DM_DEF_CHARGEN
#define DM_DEF_CHARGEN   "/usr/local/lib64/vice/C64/chargen"
#endif


//
// Functions
//
char *    dmC64GetImageTypeString(char *buf, const size_t len, const int type, const BOOL lng);
void      dmC64ImageDump(FILE *fh, const DMC64Image *img, const DMC64ImageFormat *fmt, const char *indent);

void      argShowC64PaletteHelp(FILE *fh);
void      argShowC64Formats(FILE *fh, const BOOL rw);
BOOL      argHandleC64PaletteOption(char *optArg, DMC64Palette **ppal, char **palFile);

int       dmHandleExternalPalette(const char *filename, DMPalette **ppal);


#ifdef __cplusplus
}
#endif

#endif // LIB64UTIL_H