VirtualBox

Changeset 4314 in vbox for trunk/src


Ignore:
Timestamp:
Aug 23, 2007 2:15:27 PM (17 years ago)
Author:
vboxsync
Message:

Added memory balloon property to the Guest class

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/GuestImpl.cpp

    r4071 r4314  
    152152}
    153153
     154STDMETHODIMP Guest::COMGETTER(MemoryBalloonSize) (ULONG *aMemoryBalloonSize)
     155{
     156    if (!aMemoryBalloonSize)
     157        return E_POINTER;
     158
     159    AutoCaller autoCaller (this);
     160    CheckComRCReturnRC (autoCaller.rc());
     161
     162    AutoReaderLock alock (this);
     163
     164    *aMemoryBalloonSize = mMemoryBalloonSize;
     165
     166    return S_OK;
     167}
     168
     169STDMETHODIMP Guest::COMSETTER(MemoryBalloonSize) (ULONG aMemoryBalloonSize)
     170{
     171    return S_OK;
     172}
     173
    154174STDMETHODIMP Guest::SetCredentials(INPTR BSTR aUserName, INPTR BSTR aPassword,
    155175                                   INPTR BSTR aDomain, BOOL aAllowInteractiveLogon)
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r4297 r4314  
    43214321  <interface
    43224322     name="IGuest" extends="$unknown"
    4323      uuid="4a61e982-172b-4116-b12e-024b8a9a2b9d"
     4323     uuid="c7dca803-9ff0-4819-aa3c-d0f191d3798b"
    43244324     wsmap="suppress"
    43254325     >
     
    43694369        integration) is supported.
    43704370      </desc>
     4371    </attribute>
     4372
     4373    <attribute name="memoryBalloonSize" type="unsigned long">
     4374      <desc>Guest system memory balloon size in megabytes.</desc>
    43714375    </attribute>
    43724376
  • trunk/src/VBox/Main/include/GuestImpl.h

    r4071 r4314  
    5656    STDMETHOD(COMGETTER(AdditionsVersion)) (BSTR *aAdditionsVersion);
    5757    STDMETHOD(COMGETTER(SupportsSeamless)) (BOOL *aSupportsSeamless);
     58    STDMETHOD(COMGETTER(MemoryBalloonSize)) (ULONG *aMemoryBalloonSize);
     59    STDMETHOD(COMSETTER(MemoryBalloonSize)) (ULONG aMemoryBalloonSize);
    5860
    5961    // IGuest methods
     
    7577        Data() : mAdditionsActive (FALSE), mSupportsSeamless (FALSE) {}
    7678
    77         Bstr mOSTypeId;
    78         BOOL mAdditionsActive;
    79         Bstr mAdditionsVersion;
    80         BOOL mSupportsSeamless;
     79        Bstr  mOSTypeId;
     80        BOOL  mAdditionsActive;
     81        Bstr  mAdditionsVersion;
     82        BOOL  mSupportsSeamless;
    8183    };
     84
     85    ULONG mMemoryBalloonSize;
    8286
    8387    ComObjPtr <Console, ComWeakRef> mParent;
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