2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
8 #include <datatypes/datatypesclass.h>
10 #include <proto/exec.h>
11 #include <proto/intuition.h>
12 #include "datatypes_intern.h"
14 /*****************************************************************************
17 #include <proto/datatypes.h>
19 AROS_LH1(void, DisposeDTObject
,
22 AROS_LHA(Object
*, o
, A0
),
25 struct Library
*, DataTypesBase
, 9, DataTypes
)
29 Dispose a data type object obtained by NewDTObjectA().
33 o -- The data type object to dispose of; may be NULL.
51 *****************************************************************************/
57 struct DTSpecialInfo
*dtsi
= ((struct Gadget
*)o
)->SpecialInfo
;
58 struct IClass
*cl
= OCLASS(o
);
59 struct Library
*DTClassBase
= (struct Library
*)cl
->cl_UserData
;
61 while(dtsi
->si_Flags
& (DTSIF_PRINTING
| DTSIF_LAYOUTPROC
))
68 CloseLibrary(DTClassBase
);
72 } /* DisposeDTObject */