2010-04-29 14:14:43 +02:00
|
|
|
/*
|
2016-06-06 11:52:34 +02:00
|
|
|
* 9p
|
2010-04-29 14:14:43 +02:00
|
|
|
*
|
|
|
|
* 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 18:20:00 +01:00
|
|
|
#include "qemu/option.h"
|
2011-01-28 13:39:08 +01:00
|
|
|
#include "file-op-9p.h"
|
2010-04-29 14:14:43 +02:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* A table to store the various file systems and their callback operations.
|
|
|
|
* -----------------
|
|
|
|
* fstype | ops
|
|
|
|
* -----------------
|
|
|
|
* local | local_ops
|
|
|
|
* . |
|
|
|
|
* . |
|
|
|
|
* . |
|
|
|
|
* . |
|
|
|
|
* -----------------
|
|
|
|
* etc
|
|
|
|
*/
|
2011-10-13 08:58:04 +02:00
|
|
|
typedef struct FsDriverTable {
|
2010-04-29 14:14:43 +02:00
|
|
|
const char *name;
|
|
|
|
FileOperations *ops;
|
2011-10-13 08:58:04 +02:00
|
|
|
} FsDriverTable;
|
2010-04-29 14:14:43 +02:00
|
|
|
|
2011-10-13 08:58:04 +02:00
|
|
|
typedef struct FsDriverListEntry {
|
|
|
|
FsDriverEntry fse;
|
|
|
|
QTAILQ_ENTRY(FsDriverListEntry) next;
|
|
|
|
} FsDriverListEntry;
|
2010-04-29 14:14:43 +02:00
|
|
|
|
2011-01-23 17:21:20 +01:00
|
|
|
int qemu_fsdev_add(QemuOpts *opts);
|
2011-10-13 08:58:04 +02:00
|
|
|
FsDriverEntry *get_fsdev_fsentry(char *id);
|
2010-04-29 14:14:44 +02:00
|
|
|
extern FileOperations local_ops;
|
2011-08-02 08:05:54 +02:00
|
|
|
extern FileOperations handle_ops;
|
2011-10-25 08:40:40 +02:00
|
|
|
extern FileOperations synth_ops;
|
2011-12-14 09:19:28 +01:00
|
|
|
extern FileOperations proxy_ops;
|
2010-04-29 14:14:43 +02:00
|
|
|
#endif
|