/*--------------------------------------------------------------------*/ /* checker.h */ /* Author: Christopher Moretti */ /*--------------------------------------------------------------------*/ #ifndef CHECKER_INCLUDED #define CHECKER_INCLUDED #include "node.h" /* Returns TRUE if the Node parameter n represents a directory entry in a valid state, or FALSE otherwise. */ boolean Checker_Node_isValid(Node n); /* Returns TRUE if the hierarchy is in a valid state or FALSE otherwise. The data structure's validity is based on a boolean isInit indicating whether it has been initialized, a Node root representing the root of the hierarchy, and a size_t count representing the total number of directories in the hierarchy. */ boolean Checker_DT_isValid(boolean isInit, Node root, size_t count); #endif