[vbox-dev] VBox 4.0 and IMachine::AttachDevice API
Klaus Espenlaub
klaus.espenlaub at oracle.com
Thu Dec 9 01:19:56 PST 2010
On 08.12.2010 03:03, Joseph Smith wrote:
> Hi,
>
> Two items:
>
> 1) IMachine::AttachDevice API
> Per the documentation, the IMachine::AttachDevice API now accepts as one
> of the parameters the IMedium object. In the 3.2.x release, the UUID was
> used instead of the IMedium object.
>
> As the IMedium object already has the DeviceType element, is there a
> need continue to have that as part of the AttachDevice signature?
>
> Just wondering ...
Nope, it's not redundant (and if it were redundant the same would've
applied to 3.2 actually, because how the medium object is identified is
irrelevant and 3.2 also had the DeviceType in both places as well).
In the generic case, the medium parameter can be NULL (for devices
supporting removable media), and as AttachDevice actually deals with
adding a new storage device it must know the type in any case.
Klaus
[...]
> Thanks for any feedback you can offer.
>
>
> Joe
>
More information about the vbox-dev
mailing list