- Timestamp:
- May 24, 2016 4:33:27 PM (9 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/BandwidthGroupImpl.h
r55401 r61169 6 6 7 7 /* 8 * Copyright (C) 2006-201 3Oracle Corporation8 * Copyright (C) 2006-2016 Oracle Corporation 9 9 * 10 10 * This file is part of VirtualBox Open Source Edition (OSE), as … … 20 20 #define ____H_BANDWIDTHGROUPIMPL 21 21 22 #include <VBox/settings.h> 22 23 #include "BandwidthControlImpl.h" 23 24 #include "BandwidthGroupWrap.h" … … 51 52 52 53 ComObjPtr<BandwidthGroup> i_getPeer() { return m->pPeer; } 53 const Utf8Str &i_getName() const { return m->bd-> strName; }54 BandwidthGroupType_T i_getType() const { return m->bd-> enmType; }55 LONG64 i_getMaxBytesPerSec() const { return m->bd-> aMaxBytesPerSec; }54 const Utf8Str &i_getName() const { return m->bd->mData.strName; } 55 BandwidthGroupType_T i_getType() const { return m->bd->mData.enmType; } 56 LONG64 i_getMaxBytesPerSec() const { return m->bd->mData.cMaxBytesPerSec; } 56 57 ULONG i_getReferences() const { return m->bd->cReferences; } 57 58 … … 74 75 { 75 76 BackupableBandwidthGroupData() 76 : enmType(BandwidthGroupType_Null), 77 aMaxBytesPerSec(0), 78 cReferences(0) 77 : cReferences(0) 79 78 { } 80 79 81 Utf8Str strName; 82 BandwidthGroupType_T enmType; 83 LONG64 aMaxBytesPerSec; 84 ULONG cReferences; 80 settings::BandwidthGroup mData; 81 ULONG cReferences; 85 82 }; 86 83 -
trunk/src/VBox/Main/src-server/BandwidthGroupImpl.cpp
r55401 r61169 6 6 7 7 /* 8 * Copyright (C) 2006-201 4Oracle Corporation8 * Copyright (C) 2006-2016 Oracle Corporation 9 9 * 10 10 * This file is part of VirtualBox Open Source Edition (OSE), as … … 78 78 m->bd.allocate(); 79 79 80 m->bd-> strName = aName;81 m->bd-> enmType = aType;80 m->bd->mData.strName = aName; 81 m->bd->mData.enmType = aType; 82 82 m->bd->cReferences = 0; 83 m->bd-> aMaxBytesPerSec = aMaxBytesPerSec;83 m->bd->mData.cMaxBytesPerSec = aMaxBytesPerSec; 84 84 85 85 /* Confirm a successful initialization */ … … 201 201 { 202 202 /* mName is constant during life time, no need to lock */ 203 aName = m->bd.data()-> strName;203 aName = m->bd.data()->mData.strName; 204 204 205 205 return S_OK; … … 209 209 { 210 210 /* type is constant during life time, no need to lock */ 211 *aType = m->bd-> enmType;211 *aType = m->bd->mData.enmType; 212 212 213 213 return S_OK; … … 227 227 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 228 228 229 *aMaxBytesPerSec = m->bd-> aMaxBytesPerSec;229 *aMaxBytesPerSec = m->bd->mData.cMaxBytesPerSec; 230 230 231 231 return S_OK; … … 241 241 242 242 m->bd.backup(); 243 m->bd-> aMaxBytesPerSec = aMaxBytesPerSec;243 m->bd->mData.cMaxBytesPerSec = aMaxBytesPerSec; 244 244 245 245 /* inform direct session if any. */
Note:
See TracChangeset
for help on using the changeset viewer.