VirtualBox

Ignore:
Timestamp:
Aug 16, 2010 1:12:42 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64836
Message:

Cleaned up IGuest page fusion api

File:
1 edited

Legend:

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

    r31539 r31692  
    269269}
    270270
    271 STDMETHODIMP Guest::COMGETTER(PageFusionEnabled) (BOOL *aPageFusionEnabled)
    272 {
    273     CheckComArgOutPointerValid(aPageFusionEnabled);
    274 
    275     AutoCaller autoCaller(this);
    276     if (FAILED(autoCaller.rc())) return autoCaller.rc();
     271BOOL Guest::isPageFusionEnabled()
     272{
     273    AutoCaller autoCaller(this);
     274    if (FAILED(autoCaller.rc())) return false;
    277275
    278276    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    279277
    280     *aPageFusionEnabled = mfPageFusionEnabled;
    281 
    282     return S_OK;
    283 }
    284 
    285 STDMETHODIMP Guest::COMSETTER(PageFusionEnabled) (BOOL aPageFusionEnabled)
    286 {
    287     AutoCaller autoCaller(this);
    288     if (FAILED(autoCaller.rc())) return autoCaller.rc();
    289 
    290     AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    291 
    292     /** todo; API complete, but not implemented */
    293 
    294     return E_NOTIMPL;
     278    return mfPageFusionEnabled;
    295279}
    296280
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