lib: xpc: implement support for iterating through directories

This commit is contained in:
2026-03-24 12:41:12 +00:00
parent 1eb6853cb0
commit 30614e679b
6 changed files with 61 additions and 3 deletions

View File

@@ -19,6 +19,8 @@ struct fs_file_ops {
size_t,
off_t *);
enum fs_status (*f_seek)(struct fs_file *, off_t, int);
enum fs_status (
*f_readdir)(struct fs_file *, struct xpc_buffer *, off_t *);
};
extern struct fs_inode *fs_file_get_inode(const struct fs_file *f);
@@ -37,4 +39,8 @@ extern enum fs_status fs_file_write(
const struct xpc_buffer *buf,
size_t count);
extern enum fs_status fs_file_readdir(
struct fs_file *f,
struct xpc_buffer *buf);
#endif