summaryrefslogtreecommitdiff
path: root/include/walk_tree.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/walk_tree.h')
-rw-r--r--include/walk_tree.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/walk_tree.h b/include/walk_tree.h
new file mode 100644
index 0000000..96bb7a3
--- /dev/null
+++ b/include/walk_tree.h
@@ -0,0 +1,18 @@
+#ifndef __WALK_TREE_H
+#define __WALK_TREE_H
+
+#define WALK_TREE_RECURSIVE 0x1
+#define WALK_TREE_PHYSICAL 0x2
+#define WALK_TREE_LOGICAL 0x4
+#define WALK_TREE_DEREFERENCE 0x8
+
+#define WALK_TREE_SYMLINK 0x10
+#define WALK_TREE_FAILED 0x20
+
+struct stat;
+
+extern int walk_tree(const char *path, int walk_flags,
+ int (*func)(const char *, const struct stat *, int, void *),
+ void *arg);
+
+#endif