VSF Documented
xfs.h
Go to the documentation of this file.
1#ifndef __XBOOT_XFS_H__
2#define __XBOOT_XFS_H__
3
6#include <xboot.h>
7
9 int dummy;
10};
11
12struct xfs_file_t {
13 implement(vk_file_t)
14};
15
16struct xfs_file_t * xfs_open_read(struct xfs_context_t * ctx, const char * name);
17s64_t xfs_length(struct xfs_file_t * file);
18s64_t xfs_read(struct xfs_file_t * file, void * buf, s64_t size);
19void xfs_close(struct xfs_file_t * file);
20s64_t xfs_seek(struct xfs_file_t * file, s64_t offset);
21
22#endif
Definition vsf_fs.h:114
Definition xfs.h:8
int dummy
Definition xfs.h:9
Definition xfs.h:12
uint64_t offset
Definition vsf_memfs.h:49
uint32_t size
Definition vsf_memfs.h:50
signed long long s64_t
Definition types.h:15
s64_t xfs_seek(struct xfs_file_t *file, s64_t offset)
Definition vsf_xboot.c:115
s64_t xfs_length(struct xfs_file_t *file)
Definition vsf_xboot.c:101
s64_t xfs_read(struct xfs_file_t *file, void *buf, s64_t size)
Definition vsf_xboot.c:106
void xfs_close(struct xfs_file_t *file)
Definition vsf_xboot.c:111
struct xfs_file_t * xfs_open_read(struct xfs_context_t *ctx, const char *name)
Definition vsf_xboot.c:96