disable debug
[AROS.git] / workbench / libs / cgfx / freecmodelist.c
blobd1899e1c450b7b8a09069f8d42cdffab0f6853b8
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
9 #include <cybergraphx/cybergraphics.h>
10 #include <proto/exec.h>
11 #include <proto/graphics.h>
13 #include "cybergraphics_intern.h"
15 /*****************************************************************************
17 NAME */
18 #include <proto/cybergraphics.h>
20 AROS_LH1(void, FreeCModeList,
22 /* SYNOPSIS */
23 AROS_LHA(struct List *, modeList, A0),
25 /* LOCATION */
26 struct Library *, CyberGfxBase, 13, Cybergraphics)
28 /* FUNCTION
29 Frees a list of RTG modes returned by AllocCModeListTagList().
31 INPUTS
32 modeList - a list of RTG modes returned by AllocCModeListTagList().
34 RESULT
36 NOTES
38 EXAMPLE
40 BUGS
42 SEE ALSO
43 AllocCModeListTagList()
45 INTERNALS
47 *****************************************************************************/
49 AROS_LIBFUNC_INIT
51 struct CyberModeNode *node, *safe;
53 ForeachNodeSafe(modeList, node, safe) {
54 Remove((struct Node *)node);
55 FreeMem(node, sizeof (struct CyberModeNode));
58 FreeMem(modeList, sizeof (struct List));
60 AROS_LIBFUNC_EXIT
61 } /* FreeCModeList */