added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / compiler / include / exec / memheaderext.h
blob287454a4d947130d618297bf4e18be9ae0aa06b1
1 #ifndef EXEC_MEMHEADEREXT_H
2 #define EXEC_MEMHEADEREXT_H
3 /*
4 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 $Id$
7 Desc: Extended memory handling. New in AROS.
8 Lang: english
9 */
11 #ifndef EXEC_MEMORY_H
12 # include <exec/memory.h>
13 #endif
15 struct MemHeaderExt
17 struct MemHeader mhe_MemHeader;
19 /* Let an external 'driver' manage this memory
20 region opaquely. */
22 APTR * mhe_UserData;
24 APTR (* mhe_Alloc) (struct MemHeaderExt *, ULONG size, ULONG *flags);
25 VOID (* mhe_Free) (struct MemHeaderExt *, APTR mem, ULONG size);
26 APTR (* mhe_AllocAbs)(struct MemHeaderExt *, ULONG size, APTR addr);
27 APTR (* mhe_ReAlloc) (struct MemHeaderExt *, APTR old, ULONG size);
28 ULONG (* mhe_Avail) (struct MemHeaderExt *, ULONG flags);
31 /* Indicates that the memory region is to be
32 treated as an opaque object managed only through the
33 functions whose pointers are in the extended mem header. */
34 #define MEMF_MANAGED (1L << 15)
36 #endif