diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2011-06-08 23:30:01 +0200 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@free.fr> | 2011-06-08 23:30:01 +0200 |
commit | fabe20a77d38e1e91ad0b7bf396a9f63d62c397e (patch) | |
tree | 37849e22f630d8c0f857a74137d028c8481cca1f /tree.h | |
parent | e8cf9b82f0bf0267d24cd3d853bfc378e9c43009 (diff) |
add a tree function to return a list of elements
This patch provides a function returning all the node of the tree
matching the substring passed a parameter.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'tree.h')
-rw-r--r-- | tree.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -49,3 +49,5 @@ 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); + +extern int tree_finds(struct tree *tree, const char *name, struct tree ***ptr); |