]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/sysemu/blockdev.h
blockdev: Rename drive_init(), drive_uninit() to drive_new(), drive_del()
[mirror_qemu.git] / include / sysemu / blockdev.h
index 134712b5008388224027524fcf1916ba1d7d85fb..0fdbd689c1d562ef14bd53aafb39a8948d524ed8 100644 (file)
@@ -37,7 +37,7 @@ struct DriveInfo {
     int bus;
     int unit;
     int auto_del;               /* see blockdev_mark_auto_del() */
-    bool enable_auto_del; /* Only for legacy drive_init() */
+    bool enable_auto_del;       /* Only for legacy drive_new() */
     int media_cd;
     int cyls, heads, secs, trans;
     QemuOpts *opts;
@@ -57,7 +57,7 @@ DriveInfo *drive_get_by_blockdev(BlockDriverState *bs);
 QemuOpts *drive_def(const char *optstr);
 QemuOpts *drive_add(BlockInterfaceType type, int index, const char *file,
                     const char *optstr);
-DriveInfo *drive_init(QemuOpts *arg, BlockInterfaceType block_default_type);
+DriveInfo *drive_new(QemuOpts *arg, BlockInterfaceType block_default_type);
 
 /* device-hotplug */