Go to the source code of this file.
◆ as_tree
Embed a tree node into a struct.
Definition at line 21 of file tree.h.
◆ tree_entry
#define tree_entry |
( |
| node, |
|
|
| type ) |
Value:
#define container_of(ptr, type, member)
#define tree_node(element)
Definition at line 28 of file tree.h.
◆ tree_node
#define tree_node |
( |
| element | ) |
|
◆ tree_parent
#define tree_parent |
( |
| node, |
|
|
| type ) |
◆ tree_children_list
#define tree_children_list |
( |
| node | ) |
|
Value:(&((node)->tree_node.children))
Definition at line 32 of file tree.h.
◆ tree_child_entry
#define tree_child_entry |
( |
| node, |
|
|
| type ) |
Value:
Definition at line 33 of file tree.h.
◆ tree_child_node
#define tree_child_node |
( |
| node | ) |
|
Value:(&((node)->tree_node.list_node))
Definition at line 34 of file tree.h.
◆ tree_foreach_child
#define tree_foreach_child |
( |
| t, |
|
|
| v, |
|
|
| h ) |
◆ tree_node_t
Definition at line 9 of file tree.h.
◆ tree_node_init()
◆ tree_add_child()