squashed commit of private hostlib-resource branch
[tangerine.git] / test / uae-tmpl / nodes.h
blobcd9ce643678fbc0458b271011e3437865fb21593
1 #ifndef EXEC_NODES_H
2 #define EXEC_NODES_H
3 /* Copyright © 1995, The AROS Development Team. All rights reserved. */
5 #include "aros_types.h"
7 typedef be_ptr<struct Node> NodePtr;
8 typedef be_ptr<struct MinNode> MinNodePtr;
10 #if (AROS_FLAVOUR & AROS_FLAVOUR_BINCOMPAT)
11 struct Node
13 NodePtr ln_Succ,
14 ln_Pred;
15 UBYTE ln_Type;
16 BYTE ln_Pri;
17 /* AROS: pointer should be 32bit aligned, but we can not do this on
18 the native machine because of binary compatibility.
20 STRPTR ln_Name;
23 #else
24 struct Node
26 NodePtr ln_Succ,
27 ln_Pred;
28 /* AROS: pointer should be 32bit aligned */
29 STRPTR ln_Name;
30 UBYTE ln_Type;
31 BYTE ln_Pri;
33 #endif /* AROS_FLAVOUR */
35 struct MinNode
37 MinNodePtr mln_Succ,
38 mln_Pred;
41 /* Values for ln_Type */
42 #define NT_UNKNOWN 0 /* Unknown node */
43 #define NT_TASK 1 /* Exec task */
44 #define NT_INTERRUPT 2 /* Interrupt */
45 #define NT_DEVICE 3 /* Device */
46 #define NT_MSGPORT 4 /* Message-Port */
47 #define NT_MESSAGE 5 /* Indicates message currently pending */
48 #define NT_FREEMSG 6
49 #define NT_REPLYMSG 7 /* Message has been replied */
50 #define NT_RESOURCE 8
51 #define NT_LIBRARY 9
52 #define NT_MEMORY 10
53 #define NT_SOFTINT 11 /* Internal flag used by SoftInits */
54 #define NT_FONT 12
55 #define NT_PROCESS 13 /* AmigaDOS Process */
56 #define NT_SEMAPHORE 14
57 #define NT_SIGNALSEM 15 /* signal semaphores */
58 #define NT_BOOTNODE 16
59 #define NT_KICKMEM 17
60 #define NT_GRAPHICS 18
61 #define NT_DEATHMESSAGE 19
63 #define NT_USER 254 /* User node types work down from here */
64 #define NT_EXTENDED 255
66 #endif /* EXEC_NODES_H */