2 #include <aros/symbolsets.h>
4 struct Library
* OpenURLBase
;
6 struct RxsLib
*RexxSysBase
= NULL
;
7 struct SignalSemaphore lib_sem
;
8 struct SignalSemaphore lib_prefsSem
;
9 struct SignalSemaphore lib_memSem
;
14 struct URL_Prefs
*lib_prefs
= NULL
;
16 /****************************************************************************/
18 int LibInit(struct Library
*base
)
22 // Init global library base
25 InitSemaphore(&lib_sem
);
26 InitSemaphore(&lib_prefsSem
);
27 InitSemaphore(&lib_memSem
);
29 // protect access to initBase()
30 ObtainSemaphore(&lib_sem
);
34 // unprotect initBase()
35 ReleaseSemaphore(&lib_sem
);
40 /****************************************************************************/
42 int LibExpunge(struct Library
*base
)
44 // free all our private data and stuff.
45 ObtainSemaphore(&lib_sem
);
50 ReleaseSemaphore(&lib_sem
);
57 /****************************************************************************/
59 ADD2INITLIB(LibInit
, 0);
60 ADD2EXPUNGELIB(LibExpunge
, 0);
62 /***********************************************************************/