VirtualBox

Changeset 42538 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Aug 2, 2012 1:28:40 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
79712
Message:

added 3 extra methods for 6124

Location:
trunk/src/VBox/Main/src-server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r42489 r42538  
    42914291}
    42924292
     4293STDMETHODIMP Machine::SetNoBandwidthGroupForDevice(IN_BSTR aControllerName, LONG aControllerPort,
     4294                                                   LONG aDevice)
     4295{
     4296    int rc = S_OK;
     4297    LogFlowThisFunc(("aControllerName=\"%ls\" aControllerPort=%d aDevice=%d\n",
     4298                     aControllerName, aControllerPort, aDevice));
     4299
     4300    rc = SetBandwidthGroupForDevice(aControllerName, aControllerPort, aDevice, NULL);
     4301
     4302    return rc;
     4303}
     4304
    42934305STDMETHODIMP Machine::SetBandwidthGroupForDevice(IN_BSTR aControllerName, LONG aControllerPort,
    42944306                                                 LONG aDevice, IBandwidthGroup *aBandwidthGroup)
     
    43534365    return S_OK;
    43544366}
     4367
     4368STDMETHODIMP Machine::AttachDeviceWithoutMedium(IN_BSTR aControllerName,
     4369                                                LONG    aControllerPort,
     4370                                                LONG    aDevice,
     4371                                                DeviceType_T aType)
     4372{
     4373     HRESULT rc = S_OK;
     4374
     4375     LogFlowThisFunc(("aControllerName=\"%ls\" aControllerPort=%d aDevice=%d aType=%d aMedium=%p\n",
     4376                      aControllerName, aControllerPort, aDevice, aType));
     4377
     4378     rc = AttachDevice(aControllerName, aControllerPort, aDevice, aType, NULL);
     4379
     4380     return rc;
     4381}
     4382
     4383
    43554384
    43564385STDMETHODIMP Machine::UnmountMedium(IN_BSTR aControllerName,
  • trunk/src/VBox/Main/src-server/MediumImpl.cpp

    r42208 r42538  
    26432643
    26442644    return rc;
     2645}
     2646
     2647STDMETHODIMP Medium::CloneToBase(IMedium   *aTarget,
     2648                                 ULONG     aVariant,
     2649                                 IProgress **aProgress)
     2650{
     2651     int rc = S_OK;
     2652     CheckComArgNotNull(aTarget);
     2653     CheckComArgOutPointerValid(aProgress);
     2654     rc =  CloneTo(aTarget, aVariant, NULL, aProgress);
     2655     return rc;
    26452656}
    26462657
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