VirtualBox

Changeset 48914 in vbox for trunk


Ignore:
Timestamp:
Oct 7, 2013 4:19:03 AM (11 years ago)
Author:
vboxsync
Message:

IBIOSSettings: Added a read-only string property nonVolatileStorageFile.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r48889 r48914  
    39353935      </desc>
    39363936    </attribute>
     3937
     3938    <attribute name="nonVolatileStorageFile" type="wstring" readonly="yes">
     3939      <desc>
     3940        The location of the file storing the non-volatile memory content when
     3941        the VM is powered off.  The file does not always exist.
     3942
     3943        This feature will be realized after VirtualBox v4.3.0.
     3944      </desc>
     3945    </attribute>
     3946
    39373947  </interface>
    39383948
  • trunk/src/VBox/Main/include/BIOSSettingsImpl.h

    r44528 r48914  
    7272    STDMETHOD(COMGETTER)(TimeOffset)(LONG64 *offset);
    7373    STDMETHOD(COMSETTER)(TimeOffset)(LONG64 offset);
     74    STDMETHOD(COMGETTER)(NonVolatileStorageFile)(BSTR *pbstrPath);
    7475
    7576    // public methods only for internal purposes
  • trunk/src/VBox/Main/src-server/BIOSSettingsImpl.cpp

    r44528 r48914  
    507507    return S_OK;
    508508}
     509
     510STDMETHODIMP BIOSSettings::COMGETTER(NonVolatileStorageFile)(BSTR *pbstrPath)
     511{
     512    CheckComArgOutPointerValid(pbstrPath);
     513
     514    AutoCaller autoCaller(this);
     515    HRESULT hrc = autoCaller.rc();
     516    if (SUCCEEDED(hrc))
     517    {
     518        AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
     519        Bstr bstrEmpty("");
     520        hrc = bstrEmpty.cloneToEx(pbstrPath);
     521    }
     522
     523    return hrc;
     524}
     525
    509526
    510527
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