aboutsummaryrefslogtreecommitdiff
path: root/tree.h
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2011-06-08 23:30:01 +0200
committerDaniel Lezcano <daniel.lezcano@free.fr>2011-06-08 23:30:01 +0200
commit6d42e81bf9dc4b2152f678cc205a5e7175be15bc (patch)
treeefd8d5443c4360db8c3e3b000a76f1006c578fc1 /tree.h
parent7b16b8192500916604f5e20185f69c6da82f9040 (diff)
downloadpowerdebug-6d42e81bf9dc4b2152f678cc205a5e7175be15bc.tar.gz
add a function to browse at reverse order the tree
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'tree.h')
-rw-r--r--tree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tree.h b/tree.h
index 176dd23..2af4a5a 100644
--- a/tree.h
+++ b/tree.h
@@ -46,4 +46,6 @@ extern struct tree *tree_find(struct tree *tree, const char *name);
extern int tree_for_each(struct tree *tree, tree_cb_t cb, void *data);
+extern int tree_for_each_reverse(struct tree *tree, tree_cb_t cb, void *data);
+
extern int tree_for_each_parent(struct tree *tree, tree_cb_t cb, void *data);