From a92315553df516a5e3431142aadab93482c6b29f Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Thu, 29 Apr 2010 17:44:56 +0530 Subject: virtio-9p: Add P9_TREAD support Implement P9_TREAD support. Signed-off-by: Anthony Liguori Signed-off-by: Aneesh Kumar K.V Signed-off-by: Anthony Liguori --- hw/file-op-9p.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'hw/file-op-9p.h') diff --git a/hw/file-op-9p.h b/hw/file-op-9p.h index 715f2d0f89..c1f5e45e2b 100644 --- a/hw/file-op-9p.h +++ b/hw/file-op-9p.h @@ -34,6 +34,12 @@ typedef struct FileOperations int (*closedir)(FsContext *, DIR *); DIR *(*opendir)(FsContext *, const char *); int (*open)(FsContext *, const char *, int); + void (*rewinddir)(FsContext *, DIR *); + off_t (*telldir)(FsContext *, DIR *); + struct dirent *(*readdir)(FsContext *, DIR *); + void (*seekdir)(FsContext *, DIR *, off_t); + ssize_t (*readv)(FsContext *, int, const struct iovec *, int); + off_t (*lseek)(FsContext *, int, off_t, int); void *opaque; } FileOperations; #endif -- cgit v1.2.3