Changeset 44649 in vbox
- Timestamp:
- Feb 12, 2013 12:18:13 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 83740
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/en_US/SDKRef.xml
r44553 r44649 2246 2246 hdd = ctx['vb'].createHardDisk(format, loc) 2247 2247 # 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, )) 2249 2249 # use standard progress bar mechanism 2250 2250 ctx['progressBar'](progress) … … 3530 3530 <itemizedlist> 3531 3531 <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> 3532 3583 <para>The attribute <xref linkend="IMedium__logicalSize" 3533 3584 xreflabel="IMedium::logicalSize()" /> now returns the logical -
trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
r43425 r44649 2150 2150 2151 2151 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, )) 2153 2153 if progressBar(ctx,progress) and hdd.id: 2154 2154 print "created HDD at %s as %s" %(colPath(ctx,hdd.location), hdd.id) -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r44503 r44649 12247 12247 <desc> 12248 12248 Returns the storage format variant information for this medium 12249 as a combinationof the flags described at <link to="MediumVariant" />.12249 as an aaray of the flags described at <link to="MediumVariant" />. 12250 12250 Before <link to="#refreshState"/> is called this method returns 12251 12251 an undefined value. … … 13462 13462 <attribute name="capabilities" type="MediumFormatCapabilities" safearray="yes" readonly="yes"> 13463 13463 <desc> 13464 Capabilities of the format as a set of bitflags.13464 Capabilities of the format as an array of the flags. 13465 13465 13466 13466 For the meaning of individual capability flags see
Note:
See TracChangeset
for help on using the changeset viewer.