diff options
author | Markus Armbruster | 2014-06-06 14:50:58 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2014-06-16 11:23:19 +0200 |
commit | 60e19e06a4a28935c94e39d40c80193759af88ce (patch) | |
tree | de2ab18ff967f88c2e8ca758010ac73911dfc688 /include | |
parent | blockdev: Move 'serial' option to drive_init() (diff) | |
download | qemu-60e19e06a4a28935c94e39d40c80193759af88ce.tar.gz qemu-60e19e06a4a28935c94e39d40c80193759af88ce.tar.xz qemu-60e19e06a4a28935c94e39d40c80193759af88ce.zip |
blockdev: Rename drive_init(), drive_uninit() to drive_new(), drive_del()
"Init" and "uninit" suggest the functions don't allocate / free
storage. But they do.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sysemu/blockdev.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sysemu/blockdev.h b/include/sysemu/blockdev.h index 134712b500..0fdbd689c1 100644 --- a/include/sysemu/blockdev.h +++ b/include/sysemu/blockdev.h @@ -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 */ |