2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Nonvolatile library initialization code.
10 #include <aros/debug.h>
12 #include <exec/types.h>
13 #include <exec/resident.h>
14 #include <proto/exec.h>
15 #include <devices/timer.h>
16 #include <aros/symbolsets.h>
18 #include <exec/libraries.h>
19 #include <exec/alerts.h>
20 #include LC_LIBDEFS_FILE
22 #include "nonvolatile_intern.h"
24 AROS_SET_LIBFUNC(Init
, LIBBASETYPE
, LIBBASE
)
28 /* This function is single-threaded by exec by calling Forbid. */
30 D(bug("Opening implementation library (NVDisk)\n"));
32 // Should be able to select this one...
33 nvBase
->nv_ImplementationLib
= OpenLibrary("nvdisk.library", 41);
35 if(nvBase
->nv_ImplementationLib
== NULL
)
40 D(bug("Nonvolatile library successfully inialized\n"));
48 AROS_SET_LIBFUNC(Expunge
, LIBBASETYPE
, LIBBASE
)
53 This function is single-threaded by exec by calling Forbid.
54 If you break the Forbid() another task may enter this function
55 at the same time. Take care.
58 CloseLibrary(nvBase
->nv_ImplementationLib
);
66 ADD2EXPUNGELIB(Expunge
, 0);