BSDL Device Tree Compiler
|
Public Member Functions | |
checker (const char *name) | |
virtual bool | check_node (device_tree *tree, node *n) |
virtual bool | check_property (device_tree *tree, node *n, property *p) |
bool | check_tree (fdt::device_tree *tree) |
Protected Member Functions | |
void | report_error (const char *errmsg) |
Base class for all checkers. This will visit the entire tree and perform semantic checks defined in subclasses. Note that device trees are generally small (a few dozen nodes at most) and so we optimise for flexibility and extensibility here, not for performance. Each checker will visit the entire tree.
|
inline |
Constructor. Takes the name of this checker, which is which is used when reporting errors.
|
inlinevirtual |
Method for checking that a node is valid. The root class version does nothing, subclasses should override this.
|
inlinevirtual |
Method for checking that a property is valid. The root class version does nothing, subclasses should override this.
Reimplemented in dtc::fdt::checking::property_checker.
|
inline |
Runs the checker on the specified device tree.
|
inlineprotected |
Prints the error message, along with the path to the node that caused the error and the name of the checker.