revert 213 commits (to 56092) from the last month. 10 still need work to resolve...
[AROS.git] / rom / filesys / SFS / FS / nodes.h
blob878f0298607794657b3bcdcd61d3d9c871fccf91
1 #ifndef _NODES_H
2 #define _NODES_H
4 #include <exec/types.h>
5 #include <libraries/iffparse.h>
6 #include "blockstructure.h"
8 #define ROOTNODE (1)
9 #define RECYCLEDNODE (2)
11 /* a NODE is the number of a fsNode structure in a fsNodeContainer */
13 typedef ULONG NODE;
15 /* Structures used by Node trees */
17 struct fsNode {
18 ULONG be_data;
21 #define NODECONTAINER_ID AROS_LONG2BE(MAKE_ID('N','D','C',' '))
23 struct fsNodeContainer {
24 struct fsBlockHeader bheader;
25 NODE be_nodenumber; /* The Node number of the first Node in this block */
26 ULONG be_nodes; /* The total number of Nodes per NodeIndexContainer
27 or NodeIndexContainer from this point in the
28 Node-tree. If this is 1 it is a leaf container. */
30 BLCKn be_node[0]; /* An array of NodeIndexContainers or NodeContainers
31 depending on where this NodeIndexContainer is
32 within the Node-tree. */
35 #endif // _NODES_H