2010-04-29 12:14:43 +00:00
|
|
|
/*
|
|
|
|
* Virtio 9p
|
|
|
|
*
|
|
|
|
* Copyright IBM, Corp. 2010
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Gautham R Shenoy <ego@in.ibm.com>
|
|
|
|
*
|
|
|
|
* This work is licensed under the terms of the GNU GPL, version 2. See
|
|
|
|
* the COPYING file in the top-level directory.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef QEMU_FSDEV_H
|
|
|
|
#define QEMU_FSDEV_H
|
2012-12-17 17:20:00 +00:00
|
|
|
#include "qemu/option.h"
|
2011-01-28 12:39:08 +00:00
|
|
|
#include "file-op-9p.h"
|
2010-04-29 12:14:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* A table to store the various file systems and their callback operations.
|
|
|
|
* -----------------
|
|
|
|
* fstype | ops
|
|
|
|
* -----------------
|
|
|
|
* local | local_ops
|
|
|
|
* . |
|
|
|
|
* . |
|
|
|
|
* . |
|
|
|
|
* . |
|
|
|
|
* -----------------
|
|
|
|
* etc
|
|
|
|
*/
|
2011-10-13 06:58:04 +00:00
|
|
|
typedef struct FsDriverTable {
|
2010-04-29 12:14:43 +00:00
|
|
|
const char *name;
|
|
|
|
FileOperations *ops;
|
2011-10-13 06:58:04 +00:00
|
|
|
} FsDriverTable;
|
2010-04-29 12:14:43 +00:00
|
|
|
|
2011-10-13 06:58:04 +00:00
|
|
|
typedef struct FsDriverListEntry {
|
|
|
|
FsDriverEntry fse;
|
|
|
|
QTAILQ_ENTRY(FsDriverListEntry) next;
|
|
|
|
} FsDriverListEntry;
|
2010-04-29 12:14:43 +00:00
|
|
|
|
2011-01-23 16:21:20 +00:00
|
|
|
int qemu_fsdev_add(QemuOpts *opts);
|
2011-10-13 06:58:04 +00:00
|
|
|
FsDriverEntry *get_fsdev_fsentry(char *id);
|
2010-04-29 12:14:44 +00:00
|
|
|
extern FileOperations local_ops;
|
2011-08-02 06:05:54 +00:00
|
|
|
extern FileOperations handle_ops;
|
2011-10-25 06:40:40 +00:00
|
|
|
extern FileOperations synth_ops;
|
2011-12-14 08:19:28 +00:00
|
|
|
extern FileOperations proxy_ops;
|
2010-04-29 12:14:43 +00:00
|
|
|
#endif
|