I guess I'll include this form:
Code:
vdf_is_first_node(node);
vdf_is_last_node(node);
actually, they could be easily replaced with these existent functions
Code:
!vdf_get_previous_node(node) // if true that's first node
!vdf_get_next_node(node) // if true that's the last node
but I guess the former sounds clearer.
And I'll include another one to way to count nodes in a branch. Maybe you can help me to find a better name to that.
Code:
vdf_count_branch_nodes(node)