mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-26 20:03:54 -06:00
fsdev: Move some types definition to qemu-fsdev.c
It would make sense for these types to be defined in a header file if we had an API for fsdrivers to register themselves. In practice, we only have three of them and it is very unlikely we add new ones since the future of file sharing between host and guest is the upcoming virtio-fs. Move the types to qemu-fsdev.c instead since they are only used there. Signed-off-by: Greg Kurz <groug@kaod.org> Reviewed-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
778f0fad5f
commit
2023243573
2 changed files with 23 additions and 24 deletions
|
@ -18,6 +18,29 @@
|
|||
#include "qemu/error-report.h"
|
||||
#include "qemu/option.h"
|
||||
|
||||
/*
|
||||
* A table to store the various file systems and their callback operations.
|
||||
* -----------------
|
||||
* fstype | ops
|
||||
* -----------------
|
||||
* local | local_ops
|
||||
* . |
|
||||
* . |
|
||||
* . |
|
||||
* . |
|
||||
* -----------------
|
||||
* etc
|
||||
*/
|
||||
typedef struct FsDriverTable {
|
||||
const char *name;
|
||||
FileOperations *ops;
|
||||
} FsDriverTable;
|
||||
|
||||
typedef struct FsDriverListEntry {
|
||||
FsDriverEntry fse;
|
||||
QTAILQ_ENTRY(FsDriverListEntry) next;
|
||||
} FsDriverListEntry;
|
||||
|
||||
static QTAILQ_HEAD(, FsDriverListEntry) fsdriver_entries =
|
||||
QTAILQ_HEAD_INITIALIZER(fsdriver_entries);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue