add place-holder directory for the a3000 wd533c93 scsi controller implementation.
[AROS.git] / arch / m68k-amiga / hidd / p96gfx / p96gfx_startup.c
blob207531e90dd2352324c40fb1404fe5ef3413b76d
1 /*
2 Copyright © 1995-2019, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #define DEBUG 0
8 #include <aros/debug.h>
9 #include <aros/symbolsets.h>
10 #include <graphics/driver.h>
11 #include <graphics/gfxbase.h>
12 #include <proto/exec.h>
13 #include <proto/graphics.h>
14 #include <proto/oop.h>
16 #include "p96gfx_intern.h"
17 #include "p96gfx_bitmap.h"
19 #include LC_LIBDEFS_FILE
21 BOOL P96GFX__Initialise(LIBBASETYPEPTR LIBBASE);
23 #undef SysBase
24 #undef OOPBase
26 static int P96GFX_LibInit(LIBBASETYPEPTR LIBBASE)
28 struct ExecBase *SysBase = LIBBASE->csd.cs_SysBase;
29 struct Library *OOPBase = LIBBASE->csd.cs_OOPBase;
30 LIBBASE->csd.cs_GfxBase = TaggedOpenLibrary(TAGGEDOPEN_GRAPHICS);
31 struct Library *GfxBase = LIBBASE->csd.cs_GfxBase;
33 D(bug("[HiddP96Gfx] %s() ******************************\n", __func__));
35 if (!GfxBase)
36 return FALSE;
38 LIBBASE->csd.basebm = OOP_FindClass(CLID_Hidd_BitMap);
40 if (!P96GFX__Initialise(LIBBASE)) {
41 D(bug("[HiddP96Gfx] %s: P96GFX__Initialise failed\n", __func__));
42 CloseLibrary(GfxBase);
43 return FALSE;
46 return TRUE;
48 ADD2INITLIB(P96GFX_LibInit, 0)