finish migrating from arosmesa to mesa3dgl
[AROS.git] / rom / utility / freetagitems.c
blob7f285dc894ca552a8defe4d63b5944729d860963
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: FreeTagItems()
6 Lang: english
7 */
8 #include <proto/exec.h>
9 #include "intern.h"
11 /*****************************************************************************
13 NAME */
14 #include <utility/tagitem.h>
15 #include <proto/utility.h>
17 AROS_LH1(void, FreeTagItems,
19 /* SYNOPSIS */
20 AROS_LHA(struct TagItem *, tagList, A0),
22 /* LOCATION */
23 struct UtilityBase *, UtilityBase, 13, Utility)
25 /* FUNCTION
26 Free a list of TagItems which was allocated by AllocateTagItems().
28 INPUTS
29 tagList - A list of TagItems - must have been allocated by
30 AllocateTagItems() or CloneTagItems().
32 RESULT
33 The memory containing the tagList is returned to the system.
35 NOTES
36 The memory will only be freed if the input is non-NULL.
38 EXAMPLE
39 struct TagItem *tagList;
41 tagList = AllocateTagItems( 4 );
43 tagList[0].ti_Tag = NA_Name;
44 tagList[0].ti_Data = (IPTR)"A list of tags";
45 tagList[3].ti_Tag = TAG_DONE;
47 \* Do what you want with your TagList here ... *\
49 FreeTagItems( tagList );
51 BUGS
53 SEE ALSO
54 utility/tagitem.h, AllocateTagItems()
56 INTERNALS
58 *****************************************************************************/
60 AROS_LIBFUNC_INIT
62 FreeVec(tagList);
64 AROS_LIBFUNC_EXIT
65 } /* FreeTagItems */