home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #1 / Amiga Plus CD - 2000 - No. 1.iso / Tools / HD / SmartFileSystem / V1.58 / Sources / fs / btreenodes.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-06-23  |  457 b   |  26 lines

  1. #include <exec/types.h>
  2. #include <libraries/iffparse.h>
  3. #include "blockstructure.h"
  4.  
  5. /* Structures used by BNode trees */
  6.  
  7. struct BNode {
  8.   ULONG key;
  9.   ULONG data;
  10. };
  11.  
  12. struct BTreeContainer {
  13.   UWORD nodecount;
  14.   UBYTE isleaf;
  15.   UBYTE nodesize;   /* Must be a multiple of 2 */
  16.  
  17.   struct BNode bnode[0];
  18. };
  19.  
  20. #define BNODECONTAINER_ID        MAKE_ID('B','N','D','C')
  21.  
  22. struct fsBNodeContainer {
  23.   struct fsBlockHeader bheader;
  24.   struct BTreeContainer btc;
  25. };
  26.