2 Copyright © 2002-2006, The AROS Development Team.
8 #include <exec/types.h>
9 #include <exec/libraries.h>
10 #include <aros/libcall.h>
11 #include <aros/symbolsets.h>
13 #include <proto/intuition.h>
14 #include <proto/cybergraphics.h>
16 #include "coolimages_intern.h"
17 #include LC_LIBDEFS_FILE
19 #include <aros/debug.h>
21 /****************************************************************************************/
23 static int Init(LIBBASETYPEPTR LIBBASE
)
25 D(bug("Inside Init func of coolimages.library\n"));
27 if (!cool_buttonclass
)
29 if (!InitCoolButtonClass(CyberGfxBase
)) return FALSE
;
31 cool_buttonclass
->cl_ID
= COOLBUTTONGCLASS
;
32 AddClass(cool_buttonclass
);
37 if (!InitCoolImageClass(CyberGfxBase
)) return FALSE
;
39 cool_imageclass
->cl_ID
= COOLIMAGECLASS
;
40 AddClass(cool_imageclass
);
46 /****************************************************************************************/
48 static int Expunge(LIBBASETYPEPTR LIBBASE
)
50 D(bug("Inside Expunge func of coolimages.library\n"));
52 CleanupCoolImageClass();
53 CleanupCoolButtonClass();
59 ADD2EXPUNGELIB(Expunge
, 0);