add place-holder directory for the a3000 wd533c93 scsi controller implementation.
[AROS.git] / workbench / hidds / softpipe / softpipe_init.c
blobbe347b6196a4ecbe1dbb4b36bf8d8eb8efca30a0
1 /*
2 Copyright 2010-2019, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <aros/symbolsets.h>
7 #include <hidd/gallium.h>
8 #include <proto/oop.h>
9 #include <proto/exec.h>
11 #include "softpipe_intern.h"
13 static int HiddSoftpipe_ExpungeLib(LIBBASETYPEPTR LIBBASE)
15 if (LIBBASE->sd.UtilityBase)
16 CloseLibrary(LIBBASE->sd.UtilityBase);
18 if (LIBBASE->sd.CyberGfxBase)
19 CloseLibrary(LIBBASE->sd.CyberGfxBase);
21 if (LIBBASE->sd.hiddGalliumAB)
22 OOP_ReleaseAttrBase((STRPTR)IID_Hidd_Gallium);
24 return TRUE;
27 static int HiddSoftpipe_InitLib(LIBBASETYPEPTR LIBBASE)
29 if ((LIBBASE->sd.UtilityBase = OpenLibrary((STRPTR)"utility.library",0)))
31 if ((LIBBASE->sd.CyberGfxBase = OpenLibrary((STRPTR)"cybergraphics.library",0)))
33 if ((LIBBASE->sd.hiddGalliumAB = OOP_ObtainAttrBase((STRPTR)IID_Hidd_Gallium)))
34 return TRUE;
35 CloseLibrary(LIBBASE->sd.CyberGfxBase);
37 CloseLibrary(LIBBASE->sd.UtilityBase);
39 return FALSE;
42 ADD2INITLIB(HiddSoftpipe_InitLib, 0)
43 ADD2EXPUNGELIB(HiddSoftpipe_ExpungeLib, 0)
45 ADD2LIBS((STRPTR)"gallium.hidd", 7, static struct Library *, GalliumHiddBase);