Mercurial > hg > dmlib
view dmresw.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 | 3d9c044ec08d |
children | b60220fd1669 |
line wrap: on
line source
/* * DMLib * -- Resource management write helpers * Programmed and designed by Matti 'ccr' Hamalainen * (C) Copyright 2011-2012 Tecnic Software productions (TNSP) */ #ifndef DMRESW_H #define DMRESW_H #include "dmres.h" #ifdef __cplusplus extern "C" { #endif int dmf_write_str(DMResource *, Uint8 *, size_t); BOOL dmf_write_byte(DMResource *, const Uint8); BOOL dmf_write_be16(DMResource *, Uint16); BOOL dmf_write_be32(DMResource *, Uint32); BOOL dmf_write_le16(DMResource *, Uint16); BOOL dmf_write_le32(DMResource *, Uint32); #ifdef DM_HAVE_64BIT BOOL dmf_write_be64(DMResource *, Uint64); BOOL dmf_write_le64(DMResource *, Uint64); #endif #ifdef __cplusplus } #endif #endif // DMRESW_H