summaryrefslogtreecommitdiff
path: root/Source/IFFLib.i
blob: 985b63d5c074360f3c722d3568ef93c9efec1b9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
**
**	$Id: IFFLib.i,v 21.1 92/05/15 03:22:40 chris Exp $
**	$Revision: 21.1 $
**
**	$Filename: IFFLib.i $
**	$Author: chris $
**	$Release: 19.1 $
**	$Date: 92/05/15 03:22:40 $
**
**	INTERNES Include-File für alle Module der IFF-Library
**
**	COPYRIGHT (C) 1987-1992 BY CHRISTIAN A. WEBER, BRUGGERWEG 2,
**	CH-8037 ZUERICH, SWITZERLAND.  ALL RIGHTS RESERVED.  NO PART
**	OF THIS SOFTWARE MAY BE COPIED, REPRODUCED,  OR  TRANSMITTED
**	IN ANY FORM OR BY ANY MEANS,  WITHOUT THE PRIOR WRITTEN PER-
**	MISSION OF THE AUTHOR. USE AT YOUR OWN RISK.
**

		OPT	O+
		OPT	OW-

		INCLUDE	"exec/types.i"
		INCLUDE	"exec/memory.i"
		INCLUDE	"exec/nodes.i"
		INCLUDE	"exec/libraries.i"
		INCLUDE	"exec/resident.i"
		INCLUDE	"exec/initializers.i"
		INCLUDE "exec/macros.i"
		INCLUDE	"exec/execbase.i"
		INCLUDE	"dos/dos.i"
		INCLUDE	"graphics/gfx.i"

		INCDIR	INCUSR:
		INCLUDE	"libraries/iff.i"	; Standard IFF include file

*****************************************************************************

   STRUCTURE IFFBaseStructure,LIB_SIZE

	APTR	iffb_SysBase
	APTR	iffb_DOSBase
	APTR	iffb_SegList
	STRUCT	iffb_ErrList,LH_SIZE

	LABEL	iffb_SIZEOF

*****************************************************************************

   STRUCTURE IFFFileHandle,0

	ULONG	ifffh_Magic	; MUSS am Anfang sein
	BPTR	ifffh_File	; DOS Filehandle
	LONG	ifffh_FormSize	; Grösse des gesamten FORMs
	LONG	ifffh_ChunkSize	; Grösse des aktuellen Chunks
	LONG	ifffh_ChunkFPos	; Position im File wo dieser Chunk beginnt

	LABEL	ifffh_SIZEOF

IFFFH_MAGIC	EQU	$00496648	; 1. Byte MUSS 0 sein

*****************************************************************************

   STRUCTURE ErrorNode,LN_SIZE

	APTR	ifferr_Task
	LONG	ifferr_Error

	LABEL	ifferr_SIZEOF