1 #ifndef LIBRARIES_NONVOLATILE_H
2 #define LIBRARIES_NONVOLATILE_H
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
9 #include <exec/types.h>
10 #include <exec/nodes.h>
16 ULONG nvi_FreeStorage
;
22 struct MinNode nve_Node
;
29 // Bit definitions for the mask in SetNVProtection() and NVEntry.nve_Protection
32 #define NVEB_APPNAME 31
34 #define NVEF_DELETE (1 << NVEB_DELETE)
35 #define NVEF_APPNAME (1 << NVEB_APPNAME)
38 // Errors reported by StoreNV()
40 #define NVERR_BADNAME 1
41 #define NVERR_WRITEPROT 2
46 // The size of the data returned by this library
48 #define SizeNVData(d) ((((ULONG *)d)[-1]) - sizeof(ULONG))
51 #endif // LIBRARIES_NONVOLATILE_H