set the lock the task is waiting on, and re-add spinning tasks when a lock is released
[AROS.git] / workbench / hidds / gallium / init.c
blob7b9c09f9cef5246dce37f9ba53a658fb31df9108
1 /*
2 Copyright 2010, 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 "gallium_intern.h"
13 static int GalliumHidd_ExpungeLib(LIBBASETYPEPTR LIBBASE)
15 if (LIBBASE->sd.galliumAttrBase)
16 OOP_ReleaseAttrBase((STRPTR)IID_Hidd_Gallium);
18 return TRUE;
21 static int GalliumHidd_InitLib(LIBBASETYPEPTR LIBBASE)
23 LIBBASE->sd.galliumAttrBase = OOP_ObtainAttrBase((STRPTR)IID_Hidd_Gallium);
25 if (LIBBASE->sd.galliumAttrBase)
26 return TRUE;
28 return FALSE;
31 ADD2INITLIB(GalliumHidd_InitLib, 0)
32 ADD2EXPUNGELIB(GalliumHidd_ExpungeLib, 0)