]>
Commit | Line | Data |
---|---|---|
74db920c | 1 | /* |
af8b38b0 | 2 | * 9p |
74db920c GS |
3 | * |
4 | * Copyright IBM, Corp. 2010 | |
5 | * | |
6 | * Authors: | |
7 | * Gautham R Shenoy <[email protected]> | |
8 | * | |
9 | * This work is licensed under the terms of the GNU GPL, version 2. See | |
10 | * the COPYING file in the top-level directory. | |
11 | * | |
12 | */ | |
13 | #ifndef QEMU_FSDEV_H | |
14 | #define QEMU_FSDEV_H | |
353ac78d | 15 | #include "file-op-9p.h" |
74db920c GS |
16 | |
17 | ||
18 | /* | |
19 | * A table to store the various file systems and their callback operations. | |
20 | * ----------------- | |
21 | * fstype | ops | |
22 | * ----------------- | |
23 | * local | local_ops | |
24 | * . | | |
25 | * . | | |
26 | * . | | |
27 | * . | | |
28 | * ----------------- | |
29 | * etc | |
30 | */ | |
fbcbf101 | 31 | typedef struct FsDriverTable { |
74db920c GS |
32 | const char *name; |
33 | FileOperations *ops; | |
fbcbf101 | 34 | } FsDriverTable; |
74db920c | 35 | |
fbcbf101 AK |
36 | typedef struct FsDriverListEntry { |
37 | FsDriverEntry fse; | |
38 | QTAILQ_ENTRY(FsDriverListEntry) next; | |
39 | } FsDriverListEntry; | |
74db920c | 40 | |
64b85a8f | 41 | int qemu_fsdev_add(QemuOpts *opts); |
fbcbf101 | 42 | FsDriverEntry *get_fsdev_fsentry(char *id); |
9f107513 | 43 | extern FileOperations local_ops; |
5f542225 | 44 | extern FileOperations handle_ops; |
9db221ae | 45 | extern FileOperations synth_ops; |
4c793dda | 46 | extern FileOperations proxy_ops; |
74db920c | 47 | #endif |