]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vbox: Make CreateHardDisk support all vbox versions
authorTaowei Luo <uaedante@gmail.com>
Fri, 24 Oct 2014 01:46:45 +0000 (09:46 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 29 Oct 2014 00:21:40 +0000 (01:21 +0100)
commit382e655d16e65c0d8370d5cf7d8fdce010ccdce2
tree44f560678cb1e787c258e38db392ea5532fe3b4d
parentfc41e0039139acd6b8570b4322fe1cd552eca417
vbox: Make CreateHardDisk support all vbox versions

The CreateHardDiskMedium only support create HardDisk for medium
type, and it only works when vbox version >= 3.1. This patch make
the function workable with all vbox versions and rename it as
CreateHardDisk.

In vbox 2.2 and 3.0 this function will create a IHardDisk object.
In vbox later than 3.0, this function will create a IMedium object.
src/vbox/vbox_common.c
src/vbox/vbox_tmpl.c
src/vbox/vbox_uniformed_api.h