Revision 2e810b36
b/sysemu.h | ||
---|---|---|
176 | 176 |
extern TAILQ_HEAD(driveoptlist, DriveOpt) driveopts; |
177 | 177 |
|
178 | 178 |
extern DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit); |
179 |
extern DriveInfo *drive_get_by_id(char *id); |
|
179 |
extern DriveInfo *drive_get_by_id(const char *id);
|
|
180 | 180 |
extern int drive_get_max_bus(BlockInterfaceType type); |
181 | 181 |
extern void drive_uninit(BlockDriverState *bdrv); |
182 | 182 |
extern const char *drive_get_serial(BlockDriverState *bdrv); |
b/vl.c | ||
---|---|---|
1835 | 1835 |
return NULL; |
1836 | 1836 |
} |
1837 | 1837 |
|
1838 |
DriveInfo *drive_get_by_id(char *id) |
|
1838 |
DriveInfo *drive_get_by_id(const char *id)
|
|
1839 | 1839 |
{ |
1840 | 1840 |
DriveInfo *dinfo; |
1841 | 1841 |
|
Also available in: Unified diff