Check if volumes are bootable by checking whether C/Shell is compatible with
[cake.git] / rom / exec / exec_util.h
blobc903fc5064c8ffb3d6728772069c1e2a2ffda54c
1 #ifndef _EXEC_UTIL_H
2 #define _EXEC_UTIL_H
4 /*
5 Copyright © 1995-2008, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: Utility functions for exec.
9 Lang: english
12 #include <aros/asmcall.h>
13 #include <exec/types.h>
14 #include <stdarg.h>
16 #ifndef EXEC_TASKS_H
17 struct Task;
18 #endif
19 #ifndef EXEC_LISTS_H
20 struct List;
21 #endif
22 #ifndef ETASK_H
23 struct IntETask;
24 #endif
27 Prototypes
29 APTR Exec_AllocTaskMem (struct Task * task, ULONG size, ULONG flags, struct ExecBase *SysBase);
30 void Exec_FreeTaskMem (struct Task * task, APTR mem, struct ExecBase *SysBase);
32 void Exec_InitETask(struct Task *task, struct ETask *etask, struct ExecBase *SysBase);
33 void Exec_CleanupETask(struct Task *task, struct ETask *et, struct ExecBase *SysBase);
34 struct Task *Exec_FindTaskByID(ULONG id, struct ExecBase *SysBase);
35 struct ETask *Exec_FindChild(ULONG id, struct ExecBase *SysBase);
36 struct IntETask *FindETask(struct List *, ULONG id, struct ExecBase *SysBase);
38 APTR InternalRawDoFmt(CONST_STRPTR FormatString, APTR DataStream, VOID_FUNC PutChProc,
39 APTR PutChData, va_list VaListStream);
42 * Pseudo-functions, including SysBase for nicer calling...
44 #define AllocTaskMem(t,s,f) Exec_AllocTaskMem(t,s,f,SysBase)
45 #define FreeTaskMem(t,m) Exec_FreeTaskMem(t,m,SysBase)
46 #define FindTaskByID(i) Exec_FindTaskByID(i,SysBase)
47 #define FindChild(i) Exec_FindChild(i,SysBase)
48 #define FindETask(l,i) Exec_FindETask(l,i,SysBase)
49 #define InitETask(t,e) Exec_InitETask(t,e,SysBase)
50 #define CleanupETask(t,e) Exec_CleanupETask(t,e,SysBase)
52 #endif /* _EXEC_UTIL_H */