diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2011-06-08 23:30:00 +0200 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@free.fr> | 2011-06-08 23:30:00 +0200 |
commit | 357dd8afb93fc6e08073ce7608107dc5f44fc853 (patch) | |
tree | a3307679f4e674149929d20f26d120a25a0d6e8b /tree.h | |
parent | 7801c2de6ab4407368dbc76adb685e206caac961 (diff) |
add 'find' function for the tree
That will be useful to search for a specific node name.
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
@@ -42,4 +42,6 @@ typedef int (*tree_filter_t)(const char *name); extern struct tree *tree_load(const char *path, tree_filter_t filter); +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); |