Updated PCI IDs to latest snapshot.
[tangerine.git] / workbench / libs / popupmenu / pmdlist.h
blob21ee4b3c9716e483948b29656f1c254f66920fdd
1 //
2 // pmdlist.h
3 //
4 // PopupMenu Library - Linked Lists
5 //
6 // Copyright (C)2000 Henrik Isaksson <henrik@boing.nu>
7 // All Rights Reserved.
8 //
11 #ifndef PM_DLIST_H
12 #define PM_DLIST_H
14 #ifndef EXEC_NODES_H
15 #include <exec/nodes.h>
16 #endif
18 struct PM_GenericListNode {
19 struct MinNode n;
20 UWORD Length;
23 typedef struct MinList PMDList;
24 typedef APTR PMNode;
25 typedef struct PM_GenericListNode PMGLN;
27 #define PM_NextNode(x) (((struct MinNode *)x)->mln_Succ)
29 PMDList *PM_InitList(void); // Create a new list header. *
30 void PM_FreeList(PMDList *list); // Free a list. *
31 PMDList *PM_CopyList(PMDList *list); // Copy a list. *
33 void PM_AddToList(PMDList *l, PMNode *A); // Add A to l. *
34 void PM_Unlink(PMDList *l, PMNode *A); // Remove A from l. *
35 void PM_FreeNode(PMNode *A); // Free a node. *
36 PMNode *PM_CopyNode(PMNode *A); // Copy a node. *
38 #endif