Revision c9b62a7e
b/blockdev.c | ||
---|---|---|
15 | 15 |
#include "qemu-config.h" |
16 | 16 |
#include "sysemu.h" |
17 | 17 |
|
18 |
struct drivelist drives = QTAILQ_HEAD_INITIALIZER(drives);
|
|
18 |
static QTAILQ_HEAD(drivelist, DriveInfo) drives = QTAILQ_HEAD_INITIALIZER(drives);
|
|
19 | 19 |
|
20 | 20 |
QemuOpts *drive_add(const char *file, const char *fmt, ...) |
21 | 21 |
{ |
b/blockdev.h | ||
---|---|---|
36 | 36 |
#define MAX_IDE_DEVS 2 |
37 | 37 |
#define MAX_SCSI_DEVS 7 |
38 | 38 |
|
39 |
extern QTAILQ_HEAD(drivelist, DriveInfo) drives; |
|
40 |
|
|
41 | 39 |
extern DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit); |
42 | 40 |
extern DriveInfo *drive_get_by_id(const char *id); |
43 | 41 |
extern int drive_get_max_bus(BlockInterfaceType type); |
Also available in: Unified diff