root / fsdev / qemu-fsdev.h @ 60e1b2a6
History | View | Annotate | Download (1003 Bytes)
1 | 74db920c | Gautham R Shenoy | /*
|
---|---|---|---|
2 | 74db920c | Gautham R Shenoy | * Virtio 9p
|
3 | 74db920c | Gautham R Shenoy | *
|
4 | 74db920c | Gautham R Shenoy | * Copyright IBM, Corp. 2010
|
5 | 74db920c | Gautham R Shenoy | *
|
6 | 74db920c | Gautham R Shenoy | * Authors:
|
7 | 74db920c | Gautham R Shenoy | * Gautham R Shenoy <ego@in.ibm.com>
|
8 | 74db920c | Gautham R Shenoy | *
|
9 | 74db920c | Gautham R Shenoy | * This work is licensed under the terms of the GNU GPL, version 2. See
|
10 | 74db920c | Gautham R Shenoy | * the COPYING file in the top-level directory.
|
11 | 74db920c | Gautham R Shenoy | *
|
12 | 74db920c | Gautham R Shenoy | */
|
13 | 74db920c | Gautham R Shenoy | #ifndef QEMU_FSDEV_H
|
14 | 74db920c | Gautham R Shenoy | #define QEMU_FSDEV_H
|
15 | 74db920c | Gautham R Shenoy | #include "qemu-option.h" |
16 | 353ac78d | Aneesh Kumar K.V | #include "file-op-9p.h" |
17 | 74db920c | Gautham R Shenoy | |
18 | 74db920c | Gautham R Shenoy | |
19 | 74db920c | Gautham R Shenoy | /*
|
20 | 74db920c | Gautham R Shenoy | * A table to store the various file systems and their callback operations.
|
21 | 74db920c | Gautham R Shenoy | * -----------------
|
22 | 74db920c | Gautham R Shenoy | * fstype | ops
|
23 | 74db920c | Gautham R Shenoy | * -----------------
|
24 | 74db920c | Gautham R Shenoy | * local | local_ops
|
25 | 74db920c | Gautham R Shenoy | * . |
|
26 | 74db920c | Gautham R Shenoy | * . |
|
27 | 74db920c | Gautham R Shenoy | * . |
|
28 | 74db920c | Gautham R Shenoy | * . |
|
29 | 74db920c | Gautham R Shenoy | * -----------------
|
30 | 74db920c | Gautham R Shenoy | * etc
|
31 | 74db920c | Gautham R Shenoy | */
|
32 | fbcbf101 | Aneesh Kumar K.V | typedef struct FsDriverTable { |
33 | 74db920c | Gautham R Shenoy | const char *name; |
34 | 74db920c | Gautham R Shenoy | FileOperations *ops; |
35 | fbcbf101 | Aneesh Kumar K.V | } FsDriverTable; |
36 | 74db920c | Gautham R Shenoy | |
37 | fbcbf101 | Aneesh Kumar K.V | typedef struct FsDriverListEntry { |
38 | fbcbf101 | Aneesh Kumar K.V | FsDriverEntry fse; |
39 | fbcbf101 | Aneesh Kumar K.V | QTAILQ_ENTRY(FsDriverListEntry) next; |
40 | fbcbf101 | Aneesh Kumar K.V | } FsDriverListEntry; |
41 | 74db920c | Gautham R Shenoy | |
42 | 64b85a8f | Blue Swirl | int qemu_fsdev_add(QemuOpts *opts);
|
43 | fbcbf101 | Aneesh Kumar K.V | FsDriverEntry *get_fsdev_fsentry(char *id);
|
44 | 9f107513 | Anthony Liguori | extern FileOperations local_ops;
|
45 | 5f542225 | Aneesh Kumar K.V | extern FileOperations handle_ops;
|
46 | 9db221ae | Aneesh Kumar K.V | extern FileOperations synth_ops;
|
47 | 4c793dda | M. Mohan Kumar | extern FileOperations proxy_ops;
|
48 | 74db920c | Gautham R Shenoy | #endif |