X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=blockdev.h;h=3587786a648fd8f926bb7fcdbf3b1c9788601d1e;hb=8e31bf388e56e5babd9600b110a94381d1be07b1;hp=84e462ab3fb915daff13da625b9fa96cefeca937;hpb=e54b7f5256659dddaf6b5c021847859829d7ebd7;p=qemu.git diff --git a/blockdev.h b/blockdev.h index 84e462ab3..3587786a6 100644 --- a/blockdev.h +++ b/blockdev.h @@ -33,16 +33,19 @@ struct DriveInfo { int bus; int unit; int auto_del; /* see blockdev_mark_auto_del() */ + int media_cd; QemuOpts *opts; char serial[BLOCK_SERIAL_STRLEN + 1]; QTAILQ_ENTRY(DriveInfo) next; + int refcount; }; DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit); DriveInfo *drive_get_by_index(BlockInterfaceType type, int index); int drive_get_max_bus(BlockInterfaceType type); DriveInfo *drive_get_next(BlockInterfaceType type); -void drive_uninit(DriveInfo *dinfo); +void drive_get_ref(DriveInfo *dinfo); +void drive_put_ref(DriveInfo *dinfo); DriveInfo *drive_get_by_blockdev(BlockDriverState *bs); QemuOpts *drive_def(const char *optstr);