struct List
#include <exec/lists.h>
/* node types */
#define NT_UNKNOWN 0
#define NT_TASK 1 /* Exec task */
#define NT_TIMER 2
#define NT_DELAY 3 /* send only SIGF_DELAY */
#define NT_DEVICE 4
#define NT_PORT 5
#define NT_MESSAGE 6 /* Indicates message currently pending */
#define NT_FREEMSG 7
#define NT_REPLYMSG 8 /* Message has been replied */
#define NT_RESOURCE 9
#define NT_LIBRARY 10
#define NT_SEMAPHORE 11
#define NT_RESIDENT 12 /* struct Program */
#define NT_STARTUP 13 /* run at startup */
#define NT_USER 254 /* User node types work down from here */
#define NT_EXTENDED 255
struct List
{
struct Node *lh_Head;
struct Node *lh_Tail;
struct Node *lh_TailPred;
};
struct Node
{
struct Node *ln_Next;
struct Node *ln_Prev;
UBYTE ln_Type;
BYTE ln_Pri;
char *ln_Name;
};
struct MinNode
{
struct MinNode *lmn_Next;
struct MinNode *lmn_Prev;
};
Used in: almost everything