summaryrefslogtreecommitdiffstats
path: root/bfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'bfs.h')
-rw-r--r--bfs.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/bfs.h b/bfs.h
index fc2bcc8..81603e1 100644
--- a/bfs.h
+++ b/bfs.h
@@ -64,13 +64,21 @@ enum debug_flags {
};
/**
+ * A root path to explore.
+ */
+struct root {
+ /** The root path itself. */
+ const char *path;
+ /** The next path in the list. */
+ struct root *next;
+};
+
+/**
* The parsed command line.
*/
struct cmdline {
- /** The array of paths to start from. */
- const char **roots;
- /** The number of root paths. */
- size_t nroots;
+ /** The list of root paths. */
+ struct root *roots;
/** Color data. */
struct colors *colors;