VirtualBox

Changeset 35885 in vbox for trunk/src/VBox/Main/src-all


Ignore:
Timestamp:
Feb 8, 2011 1:20:04 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
69897
Message:

Main, VMM, vboxshell: more PCI work (persistent settings, logging, more driver API), API consumer in vboxshell

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/PciDeviceAttachmentImpl.cpp

    r35684 r35885  
    3333          fPhysical(afPhysical)
    3434    {
     35        (void)aParent;
    3536        DevName = aDevName;
    3637    }
     
    6970
    7071    return m != NULL ? S_OK : E_FAIL;
     72}
     73
     74HRESULT PciDeviceAttachment::loadSettings(IMachine *aParent,
     75                                          const settings::HostPciDeviceAttachment &hpda)
     76{
     77    Bstr bname(hpda.strDeviceName);
     78    return init(aParent, bname,  hpda.uHostAddress, hpda.uGuestAddress, TRUE);
     79}
     80
     81
     82HRESULT PciDeviceAttachment::saveSettings(settings::HostPciDeviceAttachment &data)
     83{
     84    Assert(m);
     85    data.uHostAddress = m->HostAddress;
     86    data.uGuestAddress = m->GuestAddress;
     87    data.strDeviceName = m->DevName;
     88
     89    return S_OK;
    7190}
    7291
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