2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
9 /*****************************************************************************
14 #include <exec/lists.h>
15 #include <proto/exec.h>
16 #include <proto/commodities.h>
18 VOID
RecRem(CxObj
*, struct Library
*CxBase
);
20 AROS_LH1(VOID
, DeleteCxObjAll
,
24 AROS_LHA(CxObj
*, co
, A0
),
28 struct Library
*, CxBase
, 9, Commodities
)
32 Delete object and and all objects connected to commodity object 'co'.
33 Handy for instances like when you are shutting down your commodity.
34 To remove your commodity tree, just DeleteCxObjAll(YourBroker).
38 co -- the object in question (may be NULL)
44 The handle 'co' is invalid after the operation.
58 ******************************************************************************/
69 RecRem((CxObj
*)GetHead(&co
->co_ObjList
), CxBase
);
70 FreeCxStructure(co
, CX_OBJECT
, CxBase
);
73 } /* DeleteCxObjAll */
76 VOID
RecRem(CxObj
*obj
, struct Library
*CxBase
)
82 RecRem((CxObj
*)GetHead(&obj
->co_ObjList
), CxBase
);
84 next
= (CxObj
*)GetSucc(obj
);
85 FreeCxStructure(obj
, CX_OBJECT
, CxBase
);