2 Copyright © 1995-2006, The AROS Development Team. All rights reserved.
5 Desc: Graphics hidd initialization code.
9 #include <exec/types.h>
11 #include <proto/exec.h>
13 #include <aros/symbolsets.h>
15 #include "graphics_intern.h"
17 #include LC_LIBDEFS_FILE
22 #include <aros/debug.h>
26 static int GFX_Init(LIBBASETYPEPTR LIBBASE
)
28 struct class_static_data
*csd
= &LIBBASE
->hdg_csd
;
30 EnterFunc(bug("GfxHIDD_Init()\n"));
32 InitSemaphore(&csd
->rgbconvertfuncs_sem
);
33 csd
->utilitybase
= OpenLibrary("utility.library", 37);
37 D(bug(" Got UtilityBase\n"));
39 ReturnInt("GfxHIDD_Init", ULONG
, TRUE
);
42 ReturnInt("GfxHIDD_Init", ULONG
, FALSE
);
46 static int GFX_Expunge(LIBBASETYPEPTR LIBBASE
)
48 struct class_static_data
*csd
= &LIBBASE
->hdg_csd
;
50 EnterFunc(bug("GfxHIDD_Expunge()\n"));
52 CloseLibrary(csd
->utilitybase
);
57 ADD2INITLIB(GFX_Init
, -1)
58 ADD2EXPUNGELIB(GFX_Expunge
, -1)