view tools/lib64util.h @ 2242:65a2c2e99c81

Move listing of C64 formats function to argShowC64Formats in lib64util.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 15 Jun 2019 07:55:26 +0300
parents 587eb90459f9
children 891acec47aa0
line wrap: on
line source

/*
 * Common utility functions for gfxconv and 64vw
 * Programmed and designed by Matti 'ccr' Hamalainen
 * (C) Copyright 2019 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


// Define default character ROM path
#ifndef DM_DEF_CHARGEN
#define DM_DEF_CHARGEN "/usr/local/lib64/vice/C64/chargen"
#endif


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 *fp);
void      argShowC64Formats(FILE *fp, const BOOL rw);
BOOL      argHandleC64PaletteOption(char *optArg, DMC64Palette **ppal, char **palFile);

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


#ifdef __cplusplus
}
#endif

#endif // LIB64UTIL_H