VirtualBox

Changeset 54445 in vbox


Ignore:
Timestamp:
Feb 24, 2015 12:56:25 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
98548
Message:

doc/SDK: update for IVirtualBox::createMedium API change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/en_US/SDKRef.xml

    r54266 r54445  
    24782478
    24792479        # 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)
    24812482        # Access constants using ctx['global'].constants
    24822483        progress = hdd.createBaseStorage(size, (ctx['global'].constants.MediumVariant_Standard, ))
     
    38553856
    38563857      <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
    38573870        <listitem><para>Drag'n drop APIs were changed as follows:<itemizedlist>
    38583871
     
    45914604          <itemizedlist>
    45924605              <listitem>
    4593                 <para>Neither <xref linkend="IVirtualBox__createHardDisk"
    4594                 xreflabel="IVirtualBox::createHardDisk()" /> nor <xref
    4595                 linkend="IVirtualBox__openMedium"
     4606                <para>Neither
     4607                <computeroutput>IVirtualBox::createHardDisk()</computeroutput>
     4608                nor <xref linkend="IVirtualBox__openMedium"
    45964609                xreflabel="IVirtualBox::openMedium()" /> register media
    45974610                automatically any more.</para>
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette