summaryrefslogtreecommitdiffstats
path: root/src/dir.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dir.h')
-rw-r--r--src/dir.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/dir.h b/src/dir.h
index 1137ff5..7e0cbba 100644
--- a/src/dir.h
+++ b/src/dir.h
@@ -87,6 +87,14 @@ struct bfs_dir *bfs_allocdir(void);
void bfs_dir_arena(struct arena *arena);
/**
+ * bfs_opendir() flags.
+ */
+enum bfs_dir_flags {
+ /** @internal Start of private flags. */
+ BFS_DIR_PRIVATE = 1 << 0,
+};
+
+/**
* Open a directory.
*
* @param dir
@@ -96,10 +104,12 @@ void bfs_dir_arena(struct arena *arena);
* @param at_path
* The path of the directory to open, relative to at_fd. Pass NULL to
* open at_fd itself.
+ * @param flags
+ * Flags that control which directory entries are listed.
* @return
* 0 on success, or -1 on failure.
*/
-int bfs_opendir(struct bfs_dir *dir, int at_fd, const char *at_path);
+int bfs_opendir(struct bfs_dir *dir, int at_fd, const char *at_path, enum bfs_dir_flags flags);
/**
* Get the file descriptor for a directory.