Preparations for release.
[AROS.git] / compiler / include / libraries / nonvolatile.h
blob447e30cd218df02c170b6663115893c85d326233
1 #ifndef LIBRARIES_NONVOLATILE_H
2 #define LIBRARIES_NONVOLATILE_H
4 /*
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 $Id$
7 */
9 #include <exec/types.h>
10 #include <exec/nodes.h>
13 struct NVInfo
15 ULONG nvi_MaxStorage;
16 ULONG nvi_FreeStorage;
20 struct NVEntry
22 struct MinNode nve_Node;
23 STRPTR nve_Name;
24 ULONG nve_Size;
25 ULONG nve_Protection;
29 // Bit definitions for the mask in SetNVProtection() and NVEntry.nve_Protection
31 #define NVEB_DELETE 0
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
42 #define NVERR_FAIL 3
43 #define NVERR_FATAL 4
46 // The size of the data returned by this library
48 #define SizeNVData(d) ((((ULONG *)d)[-1]) - sizeof(ULONG))
51 #endif // LIBRARIES_NONVOLATILE_H