only replace newaddtask since addtask calls it on aros anyhows
[AROS.git] / rom / task / taskres_intern.h
blob4becbff6819e3466ccaa5e8b87cf157cd113953e
1 /*
2 Copyright © 2015, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #ifndef TASKRES_INTERN_H
7 #define TASKRES_INTERN_H
9 #ifndef EXEC_TYPES_H
10 #include <exec/types.h>
11 #endif
12 #ifndef EXEC_NODES_H
13 #include <exec/nodes.h>
14 #endif
15 #ifndef EXEC_LISTS_H
16 #include <exec/lists.h>
17 #endif
18 #ifndef UTILITY_UTILITY_H
19 #include <utility/utility.h>
20 #endif
22 struct TaskResBase
24 struct Library trb_LibNode;
25 APTR trb_KernelBase;
26 APTR trb_NewAddTask;
27 APTR trb_RemTask;
28 struct List trb_TaskList;
29 struct List trb_LockedLists;
32 struct TaskListEntry
34 struct Node tle_Node;
35 struct Task *tle_Task;
38 // The "Real" implementation of struct TaskList
39 struct TaskListPrivate
41 struct Node tlp_Node;
42 struct List *tlp_Tasks;
43 struct TaskListEntry *tlp_Next;
46 #ifdef KernelBase
47 #undef KernelBase
48 #endif
50 #define KernelBase TaskResBase->trb_KernelBase
52 #endif /* TASKRES_INTERN_H */