Changeset 23560 in vbox for trunk/src/VBox/Main
- Timestamp:
- Oct 5, 2009 12:45:09 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 53208
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/SystemPropertiesImpl.cpp
r23257 r23560 469 469 } 470 470 471 STDMETHODIMP SystemProperties::GetMaxInstancesOfStorageBus(StorageBus_T aBus, ULONG *aMaxInstances) 472 { 473 CheckComArgOutPointerValid(aMaxInstances); 474 475 AutoCaller autoCaller(this); 476 CheckComRCReturnRC(autoCaller.rc()); 477 478 /* no need to lock, this is const */ 479 switch (aBus) 480 { 481 case StorageBus_SATA: 482 case StorageBus_SCSI: 483 case StorageBus_IDE: 484 case StorageBus_Floppy: 485 { 486 /** @todo raise the limits ASAP, per bus type */ 487 *aMaxInstances = 1; 488 break; 489 } 490 default: 491 AssertMsgFailed(("Invalid bus type %d\n", aBus)); 492 } 493 494 return S_OK; 495 } 496 471 497 STDMETHODIMP SystemProperties::COMGETTER(DefaultMachineFolder) (BSTR *aDefaultMachineFolder) 472 498 { -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r23288 r23560 7238 7238 name="ISystemProperties" 7239 7239 extends="$unknown" 7240 uuid=" 79a8bc4d-24a5-4258-a0a6-8c36f8a68a4b"7240 uuid="4b78105a-d066-4eab-ae48-ccb2c0ba5057" 7241 7241 wsmap="managed" 7242 7242 > … … 7539 7539 <param name="maxPortCount" type="unsigned long" dir="return"> 7540 7540 <desc>The maximum number of ports for the given storage bus.</desc> 7541 </param> 7542 </method> 7543 7544 <method name="getMaxInstancesOfStorageBus"> 7545 <desc>Returns the maximum number of storage bus instances which 7546 can be configured for each VM. This corresponds to the number of 7547 storage controllers one can have.</desc> 7548 7549 <param name="bus" type="StorageBus" dir="in"> 7550 <desc>The storage bus type to get the value for.</desc> 7551 </param> 7552 7553 <param name="maxInstances" type="unsigned long" dir="return"> 7554 <desc>The maximum number of instances for the given storage bus.</desc> 7541 7555 </param> 7542 7556 </method> -
trunk/src/VBox/Main/include/SystemPropertiesImpl.h
r23223 r23560 98 98 STDMETHOD(GetMinPortCountForStorageBus) (StorageBus_T aBus, ULONG *aMinPortCount); 99 99 STDMETHOD(GetMaxPortCountForStorageBus) (StorageBus_T aBus, ULONG *aMaxPortCount); 100 STDMETHOD(GetMaxInstancesOfStorageBus)(StorageBus_T aBus, ULONG *aMaxInstances); 100 101 101 102 // public methods only for internal purposes
Note:
See TracChangeset
for help on using the changeset viewer.