view dmpackutil.h @ 510:43ea59887c69

Start work on making C64 formats encoding possible by changing DMDecodeOps to DMEncDecOps and adding fields and op enums for custom encode functions, renaming, etc. Split generic op sanity checking into a separate function in preparation for its use in generic encoding function.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 19 Nov 2012 15:06:01 +0200
parents 32250b436bca
children bb14d7907eb2
line wrap: on
line source

/*
 * DMLib
 * -- PACK-file additional utility routines
 * Programmed and designed by Matti 'ccr' Hamalainen
 * (C) Copyright 2011 Tecnic Software productions (TNSP)
 */
#ifndef DMPACKUTIL_H
#define DMPACKUTIL_H
#include "dmpack.h"

DMPackEntry *  dm_pack_entry_copy(const DMPackEntry *);
int            dm_pack_write(DMPackFile *);
int            dm_pack_create(const char *, DMPackFile **);
int            dm_pack_add_file(DMPackFile *, const char *, BOOL, int resFlags, DMPackEntry **);
int            dm_pack_extract_file(DMPackFile *, DMPackEntry *);

#endif // DMPACKUTIL_H