summaryrefslogtreecommitdiffstats
path: root/src/ioq.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-10-16 16:44:46 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-10-17 12:33:39 -0400
commit214a1f9215d33d4b9f34a3d258da1e1f4e3eb01f (patch)
treef287c493fb8233df695a2e7f7bb1ee06347f2506 /src/ioq.h
parentddb476bcd224f8c262d24981af48da2fc649f43d (diff)
downloadbfs-214a1f9215d33d4b9f34a3d258da1e1f4e3eb01f.tar.xz
dir: Add a flags parameter to bfs_opendir()
Diffstat (limited to 'src/ioq.h')
-rw-r--r--src/ioq.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ioq.h b/src/ioq.h
index 99c18c2..eab89ec 100644
--- a/src/ioq.h
+++ b/src/ioq.h
@@ -8,6 +8,7 @@
#ifndef BFS_IOQ_H
#define BFS_IOQ_H
+#include "dir.h"
#include <stddef.h>
/**
@@ -53,6 +54,7 @@ struct ioq_ent {
struct bfs_dir *dir;
int dfd;
const char *path;
+ enum bfs_dir_flags flags;
} opendir;
/** ioq_closedir() args. */
struct ioq_closedir {
@@ -103,12 +105,14 @@ int ioq_close(struct ioq *ioq, int fd, void *ptr);
* The base file descriptor.
* @param path
* The path to open, relative to dfd.
+ * @param flags
+ * Flags that control which directory entries are listed.
* @param ptr
* An arbitrary pointer to associate with the request.
* @return
* 0 on success, or -1 on failure.
*/
-int ioq_opendir(struct ioq *ioq, struct bfs_dir *dir, int dfd, const char *path, void *ptr);
+int ioq_opendir(struct ioq *ioq, struct bfs_dir *dir, int dfd, const char *path, enum bfs_dir_flags flags, void *ptr);
/**
* Asynchronous bfs_closedir().