VirtualBox

Changeset 44649 in vbox


Ignore:
Timestamp:
Feb 12, 2013 12:18:13 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83740
Message:

Documentation: added new paragraphs into chapter "Incompatible API changes with version 4.3". Fixed python script vboxshell.py. Fixed python example inside SDK documentation. PR5434.

Location:
trunk
Files:
3 edited

Legend:

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

    r44553 r44649  
    22462246        hdd = ctx['vb'].createHardDisk(format, loc)
    22472247        # Access constants using ctx['global'].constants
    2248         progress = hdd.createBaseStorage(size, ctx['global'].constants.HardDiskVariant_Standard)
     2248        progress = hdd.createBaseStorage(size, (ctx['global'].constants.MediumVariant_Standard, ))
    22492249        # use standard progress bar mechanism
    22502250        ctx['progressBar'](progress)
     
    35303530      <itemizedlist>
    35313531        <listitem>
     3532          <para>Medium management APIs were changed as follows:<itemizedlist>
     3533
     3534            <listitem>
     3535              <para>The type of attribute
     3536              <computeroutput>IMedium::variant</computeroutput>
     3537              changed from <computeroutput>unsigned long</computeroutput>
     3538              to <computeroutput>safe-array MediumVariant</computeroutput>.
     3539              It is an array of flags instead of a set of flags which were stored inside one variable.
     3540              </para>
     3541            </listitem>
     3542
     3543            <listitem>
     3544              <para>The parameter list for <xref
     3545              linkend="IMedium__cloneTo"
     3546              xreflabel="IMedium::cloneTo()" /> was modified.</para>
     3547              The type of parameter variant was changed from unsigned long to safe-array MediumVariant.
     3548            </listitem>
     3549
     3550            <listitem>
     3551              <para>The parameter list for <xref
     3552              linkend="IMedium__createBaseStorage"
     3553              xreflabel="IMedium::createBaseStorage()" /> was modified.</para>
     3554              The type of parameter variant was changed from unsigned long to safe-array MediumVariant.
     3555            </listitem>
     3556
     3557            <listitem>
     3558              <para>The parameter list for <xref
     3559              linkend="IMedium__createDiffStorage"
     3560              xreflabel="IMedium::createDiffStorage()" /> was modified.</para>
     3561              The type of parameter variant was changed from unsigned long to safe-array MediumVariant.
     3562            </listitem>
     3563
     3564            <listitem>
     3565              <para>The parameter list for <xref
     3566              linkend="IMedium__cloneToBase"
     3567              xreflabel="IMedium::cloneToBase()" /> was modified.</para>
     3568              The type of parameter variant was changed from unsigned long to safe-array MediumVariant.
     3569            </listitem>
     3570          </itemizedlist></para>
     3571        </listitem>
     3572
     3573        <listitem>
     3574          <para>The type of attribute
     3575          <computeroutput>IMediumFormat::capabilities</computeroutput>
     3576          changed from <computeroutput>unsigned long</computeroutput>
     3577          to <computeroutput>safe-array MediumFormatCapabilities</computeroutput>.
     3578          It is an array of flags instead of a set of flags which were stored inside one variable.
     3579          </para>
     3580        </listitem>
     3581
     3582        <listitem>
    35323583          <para>The attribute <xref linkend="IMedium__logicalSize"
    35333584          xreflabel="IMedium::logicalSize()" /> now returns the logical
  • trunk/src/VBox/Frontends/VBoxShell/vboxshell.py

    r43425 r44649  
    21502150
    21512151   hdd = ctx['vb'].createHardDisk(format, loc)
    2152    progress = hdd.createBaseStorage(size, ctx['global'].constants.MediumVariant_Standard)
     2152   progress = hdd.createBaseStorage(size, (ctx['global'].constants.MediumVariant_Standard, ))
    21532153   if progressBar(ctx,progress) and hdd.id:
    21542154       print "created HDD at %s as %s" %(colPath(ctx,hdd.location), hdd.id)
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r44503 r44649  
    1224712247      <desc>
    1224812248        Returns the storage format variant information for this medium
    12249         as a combination of the flags described at <link to="MediumVariant" />.
     12249        as an aaray of the flags described at <link to="MediumVariant" />.
    1225012250        Before <link to="#refreshState"/> is called this method returns
    1225112251        an undefined value.
     
    1346213462    <attribute name="capabilities" type="MediumFormatCapabilities" safearray="yes" readonly="yes">
    1346313463      <desc>
    13464         Capabilities of the format as a set of bit flags.
     13464        Capabilities of the format as an array of the flags.
    1346513465
    1346613466        For the meaning of individual capability flags see
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