1 #ifndef CLIB_AROSSUPPORT_PROTOS_H
2 #define CLIB_AROSSUPPORT_PROTOS_H
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
8 Desc: Prototypes for aros.lib
13 # include <exec/types.h>
15 #ifndef AROS_AROSSUPPORTBASE_H
16 # include <aros/arossupportbase.h>
18 #ifndef EXEC_EXECBASE_H
19 # include <exec/execbase.h>
24 #ifndef UTILITY_HOOKS_H
25 # include <utility/hooks.h>
29 # include <proto/exec.h>
35 # define FreeMem NastyFreeMem
39 /* for va_list in kprintf() proto */
45 ULONG
CalcChecksum (APTR mem
, ULONG size
);
46 int kprintf (const UBYTE
* fmt
, ...);
47 int vkprintf (const UBYTE
* fmt
, va_list ap
);
48 int rkprintf (const STRPTR
, const STRPTR
, int, const UBYTE
* fmt
, ...);
49 void NastyFreeMem (APTR mem
, ULONG size
);
50 APTR
RemoveSList (APTR
* list
, APTR node
);
51 void hexdump (const void * data
, IPTR offset
, ULONG count
);
52 int strrncasecmp (const char *, const char *, int);
53 void RawPutChars (const UBYTE
* string
, int len
);
54 BOOL
IsDosEntryA (char *Name
, ULONG Flags
);
56 /* AROS enhancements */
57 BOOL
ReadByte (struct Hook
*, UBYTE
* dataptr
, void * stream
);
58 BOOL
ReadWord (struct Hook
*, UWORD
* dataptr
, void * stream
);
59 BOOL
ReadLong (struct Hook
*, ULONG
* dataptr
, void * stream
);
60 BOOL
ReadFloat (struct Hook
*, FLOAT
* dataptr
, void * stream
);
61 BOOL
ReadDouble (struct Hook
*, DOUBLE
* dataptr
, void * stream
);
62 BOOL
ReadString (struct Hook
*, STRPTR
* dataptr
, void * stream
);
63 BOOL
ReadStruct (struct Hook
*, APTR
* dataptr
, void * stream
, const IPTR
* desc
);
64 BOOL
WriteByte (struct Hook
*, UBYTE data
, void * stream
);
65 BOOL
WriteWord (struct Hook
*, UWORD data
, void * stream
);
66 BOOL
WriteLong (struct Hook
*, ULONG data
, void * stream
);
67 BOOL
WriteFloat (struct Hook
*, FLOAT data
, void * stream
);
68 BOOL
WriteDouble (struct Hook
*, DOUBLE data
, void * stream
);
69 BOOL
WriteString (struct Hook
*, STRPTR data
, void * stream
);
70 BOOL
WriteStruct (struct Hook
*, APTR data
, void * stream
, const IPTR
* desc
);
71 void FreeStruct (APTR s
, const IPTR
* desc
);
74 /* don't use SysBase->kprintf on AmigaOS */
76 # define kprintf (((struct AROSSupportBase *)(SysBase->DebugAROSBase))->kprintf)
77 # define rkprintf (((struct AROSSupportBase *)(SysBase->DebugAROSBase))->rkprintf)
78 # define vkprintf (((struct AROSSupportBase *)(SysBase->DebugAROSBase))->vkprintf)
81 #endif /* CLIB_AROSSUPPORT_PROTOS_H */