revert between 56095 -> 55830 in arch
[AROS.git] / workbench / libs / coolimages / coolimages_init.c
blob23441b11107938ea39bbc0531b952205fc5ab321
1 /*
2 Copyright © 2002-2006, The AROS Development Team.
3 All rights reserved.
5 $Id$
6 */
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);
35 if (!cool_imageclass)
37 if (!InitCoolImageClass(CyberGfxBase)) return FALSE;
39 cool_imageclass->cl_ID = COOLIMAGECLASS;
40 AddClass(cool_imageclass);
43 return TRUE;
46 /****************************************************************************************/
48 static int Expunge(LIBBASETYPEPTR LIBBASE)
50 D(bug("Inside Expunge func of coolimages.library\n"));
52 CleanupCoolImageClass();
53 CleanupCoolButtonClass();
55 return TRUE;
58 ADD2INITLIB(Init, 0);
59 ADD2EXPUNGELIB(Expunge, 0);