4 * Chunk file format definitions
6 * © 1993-1998 Straylight
9 /*----- Licensing note ----------------------------------------------------*
11 * This file is part of Straylight's AOF library (aoflib).
13 * Aoflib is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2, or (at your option)
18 * Aoflib is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with Aoflib. If not, write to the Free Software Foundation,
25 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32 #define chunk_MAGIC (0xC3CBC6C5ul)
36 char chunkName[8]; /* The name of this chunk */
37 int offset; /* Offset of chunk data in file */
38 int size; /* Size of the chunk data */
44 unsigned long id; /* Chunk file magic number */
45 int maxChunks; /* Number of chunks allocated */
46 int numChunks; /* Number of chunks used */
52 chunk_fixedHeader hdr; /* The file's header info */
53 chunk_tableEntry table[1]; /* Chunk entries (unsized array)*/