diff options
author | Rob Landley <rob@landley.net> | 2012-06-01 20:04:39 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2012-06-01 20:04:39 -0500 |
commit | 4fa1b32871f661a7e11898b274ec162d52c23ee9 (patch) | |
tree | 9e31649d13c0959df24bb8a960a7086c4a891e7a /lib/lib.h | |
parent | 124786aeeb3edec3f9b39f2251c8b732198fea93 (diff) | |
download | toybox-4fa1b32871f661a7e11898b274ec162d52c23ee9.tar.gz |
Factor out dirtree_comeagain() callback, setting up depth-first search with open filehandle in node->extra.
Diffstat (limited to 'lib/lib.h')
-rw-r--r-- | lib/lib.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -74,6 +74,7 @@ struct dirtree { struct dirtree *dirtree_add_node(int dirfd, char *name); char *dirtree_path(struct dirtree *node, int *plen); int dirtree_notdotdot(struct dirtree *catch); +int dirtree_comeagain(struct dirtree *try, int recurse); struct dirtree *handle_callback(struct dirtree *new, int (*callback)(struct dirtree *node)); void dirtree_recurse(struct dirtree *node, |