Merged vps and vps2 configs. All ABIv1 will now be uploaded to the same
[AROS.git] / rom / oop / releaseattrbasesarray.c
blobc41021c2dc28b722a51e87eb8898dac1b9743a8e
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Release array of attribute ID bases
6 Lang: english
7 */
9 /*****************************************************************************
11 NAME */
13 #include <proto/oop.h>
14 #include <oop/oop.h>
16 AROS_LH2(void, OOP_ReleaseAttrBasesArray,
18 /* SYNOPSIS */
19 AROS_LHA(OOP_AttrBase *, bases, A0),
20 AROS_LHA(CONST_STRPTR const *, ids, A1),
22 /* LOCATION */
23 struct Library *, OOPBase, 24, OOP)
25 /* FUNCTION
26 Release several attribute ID bases, stored in linear array.
28 INPUTS
29 bases - a pointer to array of bases
30 ids - a NULL-terminated array of corresponding interface IDs
32 RESULT
33 None
35 NOTES
36 It is legal to have some entries in the array not filled in
37 (equal to 0). They will be skipped.
39 EXAMPLE
41 BUGS
43 SEE ALSO
44 OOP_ObtainAttrBasesArray()
46 INTERNALS
48 HISTORY
50 ******************************************************************************/
52 AROS_LIBFUNC_INIT
54 while (*ids)
56 if (*bases)
58 OOP_ReleaseAttrBase(*ids);
59 *bases = 0;
62 bases++;
63 ids++;
66 AROS_LIBFUNC_EXIT