commit | 357dd8afb93fc6e08073ce7608107dc5f44fc853 | [log] [tgz] |
---|---|---|
author | Daniel Lezcano <daniel.lezcano@linaro.org> | Wed Jun 08 23:30:00 2011 +0200 |
committer | Daniel Lezcano <daniel.lezcano@free.fr> | Wed Jun 08 23:30:00 2011 +0200 |
tree | a3307679f4e674149929d20f26d120a25a0d6e8b | |
parent | 7801c2de6ab4407368dbc76adb685e206caac961 [diff] [blame] |
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>
diff --git a/tree.h b/tree.h index 57c70f8..7be3fc4 100644 --- a/tree.h +++ b/tree.h
@@ -42,4 +42,6 @@ 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);