2 Copyright 2010, The AROS Development Team. All rights reserved.
6 #include <aros/symbolsets.h>
7 #include <hidd/gallium.h>
9 #include <proto/exec.h>
11 #include "softpipe_intern.h"
13 static int SoftpipeHidd_ExpungeLib(LIBBASETYPEPTR LIBBASE
)
15 if (LIBBASE
->sd
.SoftpipeCyberGfxBase
)
16 CloseLibrary(LIBBASE
->sd
.SoftpipeCyberGfxBase
);
18 if (LIBBASE
->sd
.hiddGalliumAB
)
19 OOP_ReleaseAttrBase((STRPTR
)IID_Hidd_Gallium
);
24 static int SoftpipeHidd_InitLib(LIBBASETYPEPTR LIBBASE
)
26 LIBBASE
->sd
.SoftpipeCyberGfxBase
= OpenLibrary((STRPTR
)"cybergraphics.library",0);
28 LIBBASE
->sd
.hiddGalliumAB
= OOP_ObtainAttrBase((STRPTR
)IID_Hidd_Gallium
);
30 if (LIBBASE
->sd
.SoftpipeCyberGfxBase
&& LIBBASE
->sd
.hiddGalliumAB
)
36 ADD2INITLIB(SoftpipeHidd_InitLib
, 0)
37 ADD2EXPUNGELIB(SoftpipeHidd_ExpungeLib
, 0)
39 ADD2LIBS((STRPTR
)"gallium.hidd", 7, static struct Library
*, GalliumHiddBase
);