Revision 2292ddae blockdev.h
b/blockdev.h | ||
---|---|---|
19 | 19 |
#define BLOCK_SERIAL_STRLEN 20 |
20 | 20 |
|
21 | 21 |
typedef enum { |
22 |
IF_DEFAULT = -1, /* for use with drive_add() only */ |
|
22 | 23 |
IF_NONE, |
23 | 24 |
IF_IDE, IF_SCSI, IF_FLOPPY, IF_PFLASH, IF_MTD, IF_SD, IF_VIRTIO, IF_XEN, |
24 | 25 |
IF_COUNT |
... | ... | |
43 | 44 |
void drive_uninit(DriveInfo *dinfo); |
44 | 45 |
DriveInfo *drive_get_by_blockdev(BlockDriverState *bs); |
45 | 46 |
|
46 |
QemuOpts *drive_add(const char *file, const char *fmt, ...) GCC_FMT_ATTR(2, 3); |
|
47 |
QemuOpts *drive_def(const char *optstr); |
|
48 |
QemuOpts *drive_add(BlockInterfaceType type, int index, const char *file, |
|
49 |
const char *fmt, ...) /*GCC_FMT_ATTR(4, 5)*/; |
|
50 |
/* GCC_FMT_ATTR() commented out to avoid the (pretty useless) |
|
51 |
* "zero-length gnu_printf format string" warning we insist to |
|
52 |
* enable */ |
|
47 | 53 |
DriveInfo *drive_init(QemuOpts *arg, int default_to_scsi, int *fatal_error); |
48 | 54 |
|
49 | 55 |
/* device-hotplug */ |
Also available in: Unified diff