2 Copyright © 1995-2017, The AROS Development Team. All rights reserved.
5 Desc: LinuxFB Hidd initialization code.
11 #define __OOP_NOATTRBASES__
13 #include <aros/symbolsets.h>
14 #include <aros/debug.h>
15 #include <utility/utility.h>
18 #include <proto/exec.h>
19 #include <proto/oop.h>
20 #include <hidd/unixio.h>
22 #include LC_LIBDEFS_FILE
24 #include "linuxfbgfx_intern.h"
26 static CONST_STRPTR
const abd
[] =
35 IID_Hidd_BitMap_LinuxFB
,
39 static int Init_Hidd(LIBBASETYPEPTR LIBBASE
)
41 LIBBASE
->lsd
.unixio
= OOP_NewObject(NULL
, CLID_Hidd_UnixIO
, NULL
);
42 if (!LIBBASE
->lsd
.unixio
)
45 InitSemaphore(&LIBBASE
->lsd
.sema
);
47 return !OOP_ObtainAttrBasesArray(&LIBBASE
->lsd
.gfxAttrBase
, abd
);
50 static int Expunge_Hidd(LIBBASETYPEPTR LIBBASE
)
52 OOP_ReleaseAttrBasesArray(&LIBBASE
->lsd
.gfxAttrBase
, abd
);
54 if (LIBBASE
->lsd
.unixio
)
55 OOP_DisposeObject(LIBBASE
->lsd
.unixio
);
60 ADD2INITLIB(Init_Hidd
, 1)
61 ADD2EXPUNGELIB(Expunge_Hidd
, 1)