2 Copyright 2010, The AROS Development Team. All rights reserved.
6 #include <aros/symbolsets.h>
7 #include <proto/exec.h>
10 #include LC_LIBDEFS_FILE
11 #include "gallium_intern.h"
14 static int Init(LIBBASETYPEPTR LIBBASE
)
16 InitSemaphore(&LIBBASE
->driversemaphore
);
17 LIBBASE
->driver
= NULL
;
18 LIBBASE
->drivermodule
= NULL
;
19 LIBBASE
->galliumAttrBase
= OOP_ObtainAttrBase((STRPTR
)IID_Hidd_Gallium
);
21 if (!LIBBASE
->galliumAttrBase
)
27 static int Expunge(LIBBASETYPEPTR LIBBASE
)
30 OOP_DisposeObject(LIBBASE
->driver
);
32 if (LIBBASE
->galliumAttrBase
)
33 OOP_ReleaseAttrBase((STRPTR
)IID_Hidd_Gallium
);
35 if (LIBBASE
->drivermodule
)
36 CloseLibrary(LIBBASE
->drivermodule
);
42 ADD2EXPUNGELIB(Expunge
, 0);
44 ADD2LIBS((STRPTR
)"gallium.hidd", 0, static struct Library
*, GalliumHiddBase
);