revert between 56095 -> 55830 in arch
[AROS.git] / workbench / libs / nonvolatile / nonvolatile_init.c
bloba4ae62407e2951cdc4c3b79a8255a35dd9facda2
1 /*
2 * Copyright (C) 2013, The AROS Development Team
3 * All right reserved.
4 * Author: Jason S. McMullan <jason.mcmullan@gmail.com>
6 * Licensed under the AROS PUBLIC LICENSE (APL) Version 1.1
7 */
9 #include <proto/exec.h>
11 #include <aros/symbolsets.h>
13 #include LC_LIBDEFS_FILE
16 static int Nonvolatile_InitLib(LIBBASETYPE *nvBase)
18 nvBase->nv_nvdBase = OpenLibrary("nvdisk.library", 0);
19 return (nvBase->nv_nvdBase != NULL);
22 static int Nonvolatile_ExpungeLib(LIBBASETYPE *nvBase)
24 CloseLibrary(nvBase->nv_nvdBase);
25 return 1;
28 ADD2INITLIB(Nonvolatile_InitLib, 0)
29 ADD2EXPUNGELIB(Nonvolatile_ExpungeLib, 0)