VirtualBox

Changeset 61169 in vbox for trunk


Ignore:
Timestamp:
May 24, 2016 4:33:27 PM (9 years ago)
Author:
vboxsync
Message:

8238 VBoxSVC settings - BandwidthGroupImpl

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/BandwidthGroupImpl.h

    r55401 r61169  
    66
    77/*
    8  * Copyright (C) 2006-2013 Oracle Corporation
     8 * Copyright (C) 2006-2016 Oracle Corporation
    99 *
    1010 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2020#define ____H_BANDWIDTHGROUPIMPL
    2121
     22#include <VBox/settings.h>
    2223#include "BandwidthControlImpl.h"
    2324#include "BandwidthGroupWrap.h"
     
    5152
    5253    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; }
    5657    ULONG i_getReferences() const { return m->bd->cReferences; }
    5758
     
    7475    {
    7576       BackupableBandwidthGroupData()
    76            : enmType(BandwidthGroupType_Null),
    77              aMaxBytesPerSec(0),
    78              cReferences(0)
     77           : cReferences(0)
    7978       { }
    8079
    81        Utf8Str                 strName;
    82        BandwidthGroupType_T    enmType;
    83        LONG64                  aMaxBytesPerSec;
    84        ULONG                   cReferences;
     80       settings::BandwidthGroup mData;
     81       ULONG                    cReferences;
    8582    };
    8683
  • trunk/src/VBox/Main/src-server/BandwidthGroupImpl.cpp

    r55401 r61169  
    66
    77/*
    8  * Copyright (C) 2006-2014 Oracle Corporation
     8 * Copyright (C) 2006-2016 Oracle Corporation
    99 *
    1010 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    7878    m->bd.allocate();
    7979
    80     m->bd->strName = aName;
    81     m->bd->enmType = aType;
     80    m->bd->mData.strName = aName;
     81    m->bd->mData.enmType = aType;
    8282    m->bd->cReferences = 0;
    83     m->bd->aMaxBytesPerSec = aMaxBytesPerSec;
     83    m->bd->mData.cMaxBytesPerSec = aMaxBytesPerSec;
    8484
    8585    /* Confirm a successful initialization */
     
    201201{
    202202    /* mName is constant during life time, no need to lock */
    203     aName = m->bd.data()->strName;
     203    aName = m->bd.data()->mData.strName;
    204204
    205205    return S_OK;
     
    209209{
    210210    /* type is constant during life time, no need to lock */
    211     *aType = m->bd->enmType;
     211    *aType = m->bd->mData.enmType;
    212212
    213213    return S_OK;
     
    227227    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    228228
    229     *aMaxBytesPerSec = m->bd->aMaxBytesPerSec;
     229    *aMaxBytesPerSec = m->bd->mData.cMaxBytesPerSec;
    230230
    231231    return S_OK;
     
    241241
    242242    m->bd.backup();
    243     m->bd->aMaxBytesPerSec = aMaxBytesPerSec;
     243    m->bd->mData.cMaxBytesPerSec = aMaxBytesPerSec;
    244244
    245245    /* inform direct session if any. */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette