Changeset 61009 in vbox for trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
- Timestamp:
- May 17, 2016 5:18:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r60404 r61009 5 5 6 6 /* 7 * Copyright (C) 2005-201 5Oracle Corporation7 * Copyright (C) 2005-2016 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 68 68 #endif 69 69 #include "BusAssignmentManager.h" 70 #include "PCIDeviceAttachmentImpl.h" 70 71 #include "EmulatedUSBImpl.h" 71 72 … … 2000 2001 2001 2002 if (mBusMgr) 2002 mBusMgr->listAttachedPCIDevices(aAttachedPCIDevices); 2003 { 2004 std::vector<BusAssignmentManager::PCIDeviceInfo> devInfos; 2005 mBusMgr->listAttachedPCIDevices(devInfos); 2006 ComObjPtr<PCIDeviceAttachment> dev; 2007 aAttachedPCIDevices.resize(devInfos.size()); 2008 for (size_t i = 0; i < devInfos.size(); i++) 2009 { 2010 const BusAssignmentManager::PCIDeviceInfo &devInfo = devInfos[i]; 2011 dev.createObject(); 2012 dev->init(NULL, devInfo.strDeviceName, 2013 devInfo.hostAddress.valid() ? devInfo.hostAddress.asLong() : -1, 2014 devInfo.guestAddress.asLong(), 2015 devInfo.hostAddress.valid()); 2016 dev.queryInterfaceTo(aAttachedPCIDevices[i].asOutParam()); 2017 } 2018 } 2003 2019 else 2004 2020 aAttachedPCIDevices.resize(0);
Note:
See TracChangeset
for help on using the changeset viewer.