Revision 6ea421fe

b/blockdev.h
34 34
#define MAX_IDE_DEVS	2
35 35
#define MAX_SCSI_DEVS	7
36 36

  
37
extern DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit);
38
extern int drive_get_max_bus(BlockInterfaceType type);
39
extern void drive_uninit(DriveInfo *dinfo);
40
extern DriveInfo *drive_get_by_blockdev(BlockDriverState *bs);
41

  
42
extern QemuOpts *drive_add(const char *file, const char *fmt, ...);
43
extern DriveInfo *drive_init(QemuOpts *arg, int default_to_scsi,
44
                             int *fatal_error);
37
DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit);
38
int drive_get_max_bus(BlockInterfaceType type);
39
void drive_uninit(DriveInfo *dinfo);
40
DriveInfo *drive_get_by_blockdev(BlockDriverState *bs);
41

  
42
QemuOpts *drive_add(const char *file, const char *fmt, ...) GCC_FMT_ATTR(2, 3);
43
DriveInfo *drive_init(QemuOpts *arg, int default_to_scsi, int *fatal_error);
45 44

  
46 45
/* device-hotplug */
47 46

  

Also available in: Unified diff