Updated PCI IDs to latest snapshot.
[tangerine.git] / workbench / libs / commodities / deletecxobj.c
blob4442a9889d5f9899d7f3c8b2c4458a73d23e524b
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
9 /*****************************************************************************
11 NAME */
13 #include "cxintern.h"
14 #include <proto/commodities.h>
16 AROS_LH1(VOID, DeleteCxObj,
18 /* SYNOPSIS */
20 AROS_LHA(CxObj *, co, A0),
22 /* LOCATION */
24 struct Library *, CxBase, 8, Commodities)
26 /* FUNCTION
28 Delete the commodity object 'co'. By deleting, it's meant that the
29 memory used for the object is freed and if the object was in the
30 commodity hierarchy, it's removed.
32 INPUTS
34 co -- the object to be deleted (may be NULL)
36 RESULT
38 NOTES
40 After deleting the commodity object, the handle 'co' is no longer valid.
41 Deleteing an object that has other objects attached to it is (that
42 should be deleted too) is easiest accomplished by using the
43 DeleteCxObjAll() function.
45 EXAMPLE
47 BUGS
49 SEE ALSO
51 DeleteCxObjAll(),
53 INTERNALS
55 HISTORY
57 ******************************************************************************/
60 AROS_LIBFUNC_INIT
62 if (co == NULL)
64 return;
67 RemoveCxObj(co);
68 FreeCxStructure(co, CX_OBJECT, CxBase);
70 AROS_LIBFUNC_EXIT
71 } /* DeleteCxObj */