home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 26 / AACD 26.iso / AACD / Programming / ace_gpl_release / include / libraries / nonvolatile.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-28  |  1.7 KB  |  95 lines

  1. #ifndef LIBRARIES_NONVOLATILE_H
  2. #define LIBRARIES_NONVOLATILE_H 1
  3. /*
  4. ** nonvolatile.h for ACE Basic
  5. **
  6. ** Note: Translated to ACE by ConvertC2ACE
  7. **       @ MapMeadow Software, Nils Sjoholm
  8. **
  9. **
  10. ** Date: 09/01/95
  11. **
  12. **
  13. */
  14.  
  15. /*
  16. ** This are the StructPointer defines for nonvolatile.h
  17. */
  18. #ifndef NVEntryPtr
  19. #define NVEntryPtr ADDRESS
  20. #endif
  21. #ifndef NVInfoPtr
  22. #define NVInfoPtr ADDRESS
  23. #endif
  24. /*
  25. ** End of StructPointer defines for nonvolatile.h
  26. */
  27.  
  28.  
  29.  
  30. /*****************************************************************************/
  31.  
  32.  
  33. #ifndef EXEC_TYPES_H
  34. #include <exec/types.h>
  35. #endif
  36.  
  37. #ifndef EXEC_NODES_H
  38. #include <exec/nodes.h>
  39. #endif
  40.  
  41.  
  42. /*****************************************************************************/
  43.  
  44.  
  45. STRUCT NVInfo
  46.  
  47.     LONGINT nvi_MaxStorage 
  48.     LONGINT nvi_FreeStorage 
  49. END STRUCT 
  50.  
  51.  
  52. /*****************************************************************************/
  53.  
  54.  
  55. STRUCT NVEntry
  56.  
  57.     MinNode nve_Node 
  58.     ADDRESS     nve_Name 
  59.     LONGINT      nve_Size 
  60.     LONGINT      nve_Protection 
  61. END STRUCT 
  62.  
  63. /* bit definitions for mask in SetNVProtection().  Also used for
  64.  * NVEntry.nve_Protection.
  65.  */
  66. #define NVEB_DELETE  0
  67. #define NVEB_APPNAME 31
  68.  
  69. #define NVEF_DELETE  (1)
  70. #define NVEF_APPNAME (2147483648)
  71.  
  72.  
  73. /*****************************************************************************/
  74.  
  75.  
  76. /* errors from StoreNV() */
  77. #define NVERR_BADNAME   1
  78. #define NVERR_WRITEPROT 2
  79. #define NVERR_FAIL  3
  80. #define NVERR_FATAL 4
  81.  
  82.  
  83. /*****************************************************************************/
  84.  
  85.  
  86. /* determine the size of data returned by this library */
  87. /*
  88. #define SizeNVData(DataPtr) ((((LONGINT *) DataPtr)[-1]) - 4)
  89. */
  90.  
  91. /*****************************************************************************/
  92.  
  93.  
  94. #endif /* LIBRARIES_NONVOLATILE_H */
  95.