Annotation of qemu/fsdev/qemu-fsdev.h, revision 1.1.1.4

1.1       root        1: /*
                      2:  * Virtio 9p
                      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
                     15: #include "qemu-option.h"
1.1.1.3   root       16: #include "file-op-9p.h"
1.1       root       17: 
                     18: 
                     19: /*
                     20:  * A table to store the various file systems and their callback operations.
                     21:  * -----------------
                     22:  * fstype | ops
                     23:  * -----------------
                     24:  *  local | local_ops
                     25:  *  .     |
                     26:  *  .     |
                     27:  *  .     |
                     28:  *  .     |
                     29:  * -----------------
                     30:  *  etc
                     31:  */
1.1.1.4 ! root       32: typedef struct FsDriverTable {
1.1       root       33:     const char *name;
                     34:     FileOperations *ops;
1.1.1.4 ! root       35: } FsDriverTable;
1.1       root       36: 
                     37: /*
                     38:  * Structure to store the various fsdev's passed through command line.
                     39:  */
1.1.1.4 ! root       40: typedef struct FsDriverEntry {
1.1       root       41:     char *fsdev_id;
                     42:     char *path;
1.1.1.4 ! root       43:     int export_flags;
1.1       root       44:     FileOperations *ops;
1.1.1.4 ! root       45: } FsDriverEntry;
1.1       root       46: 
1.1.1.4 ! root       47: typedef struct FsDriverListEntry {
        !            48:     FsDriverEntry fse;
        !            49:     QTAILQ_ENTRY(FsDriverListEntry) next;
        !            50: } FsDriverListEntry;
1.1       root       51: 
1.1.1.2   root       52: int qemu_fsdev_add(QemuOpts *opts);
1.1.1.4 ! root       53: FsDriverEntry *get_fsdev_fsentry(char *id);
1.1       root       54: extern FileOperations local_ops;
1.1.1.4 ! root       55: extern FileOperations handle_ops;
        !            56: extern FileOperations synth_ops;
1.1       root       57: #endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.