Changeset 54445 in vbox
- Timestamp:
- Feb 24, 2015 12:56:25 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 98548
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/en_US/SDKRef.xml
r54266 r54445 2478 2478 2479 2479 # Call VirtualBox API, using context's fields 2480 hdd = ctx['vb'].createHardDisk(format, loc) 2480 hdd = ctx['vb'].createMedium(format, loc, ctx['global'].constants.AccessMode_ReadWrite, \ 2481 ctx['global'].constants.DeviceType_HardDisk) 2481 2482 # Access constants using ctx['global'].constants 2482 2483 progress = hdd.createBaseStorage(size, (ctx['global'].constants.MediumVariant_Standard, )) … … 3855 3856 3856 3857 <itemizedlist> 3858 <listitem> 3859 <para>The method <xref linkend="IVirtualBox__createMedium" 3860 xreflabel="IVirtualBox::createMedium()" /> replaces 3861 <computeroutput>VirtualBox::createHardDisk()</computeroutput>. 3862 Adjusting existing code needs adding two parameters with 3863 value <computeroutput>AccessMode_ReadWrite</computeroutput> 3864 and <computeroutput>DeviceType_HardDisk</computeroutput> 3865 respectively. The new method supports creating floppy and 3866 DVD images, and (less obviously) further API functionality 3867 such as cloning floppy images.</para> 3868 </listitem> 3869 3857 3870 <listitem><para>Drag'n drop APIs were changed as follows:<itemizedlist> 3858 3871 … … 4591 4604 <itemizedlist> 4592 4605 <listitem> 4593 <para>Neither <xref linkend="IVirtualBox__createHardDisk"4594 xreflabel="IVirtualBox::createHardDisk()" /> nor <xref4595 linkend="IVirtualBox__openMedium"4606 <para>Neither 4607 <computeroutput>IVirtualBox::createHardDisk()</computeroutput> 4608 nor <xref linkend="IVirtualBox__openMedium" 4596 4609 xreflabel="IVirtualBox::openMedium()" /> register media 4597 4610 automatically any more.</para>
Note:
See TracChangeset
for help on using the changeset viewer.