1 #ifndef LIBRARIES_NONVOLATILE_H 2 #define LIBRARIES_NONVOLATILE_H 3 4 /* 5 nonvolatile.library include 6 7 Copyright © 2002 The MorphOS Development Team, All Rights Reserved. 8 */ 9 10 #ifndef EXEC_TYPES_H 11 #include <exec/types.h> 12 #endif 13 14 #ifndef EXEC_NODES_H 15 #include <exec/nodes.h> 16 #endif 17 18 #pragma pack(2) 19 20 21 struct NVInfo 22 { 23 ULONG nvi_MaxStorage; 24 ULONG nvi_FreeStorage; 25 }; 26 27 struct NVEntry 28 { 29 struct MinNode nve_Node; 30 STRPTR nve_Name; 31 ULONG nve_Size; 32 ULONG nve_Protection; 33 }; 34 35 36 #define NVEB_DELETE 0 37 #define NVEB_APPNAME 31 38 39 #define NVEF_DELETE (1<<NVEB_DELETE) 40 #define NVEF_APPNAME (1<<NVEB_APPNAME) 41 42 43 #define NVERR_BADNAME 1 44 #define NVERR_WRITEPROT 2 45 #define NVERR_FAIL 3 46 #define NVERR_FATAL 4 47 48 49 #define SizeNVData(DataPtr) ((((ULONG *)DataPtr)[-1]) - 4) 50 51 52 #pragma pack() 53 54 #endif /* LIBRARIES_NONVOLATILE_H */