VirtualBox

Changeset 81684 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Nov 5, 2019 7:13:06 PM (5 years ago)
Author:
vboxsync
Message:

Main/Host: add IHostUpdate stub interface
Main/idl: eliminate unnecessary dummy attribute and improve method/attribute xref a little

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

Legend:

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

    r81667 r81684  
    23552355  <interface
    23562356    name="IDHCPGlobalConfig" extends="IDHCPConfig"
    2357     uuid="5d7bb1ea-27ed-4e01-3859-4302dd55f796"
     2357    uuid="46735de7-f4c4-4020-a185-0d2881bcfa8b"
    23582358    wsmap="managed"
    23592359    reservedMethods="4" reservedAttributes="4"
     
    23632363    </desc>
    23642364
    2365     <attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
    23662365  </interface>
    23672366
     
    1031710316      Represents one of host's video capture devices, for example a webcam.
    1031810317    </desc>
     10318
    1031910319    <attribute name="name" type="wstring" readonly="yes">
    1032010320      <desc>User friendly name.</desc>
     
    1032610326
    1032710327    <attribute name="alias" type="wstring" readonly="yes">
    10328       <desc>An alias which can be used for IConsole::webcamAttach</desc>
    10329     </attribute>
     10328      <desc>An alias which can be used for <link to="IConsole::webcamAttach"/></desc>
     10329    </attribute>
     10330
     10331  </interface>
     10332
     10333  <interface
     10334    name="IHostUpdate" extends="$unknown"
     10335    uuid="6fa2671b-0547-448e-bc7c-94e9e173bf57"
     10336    wsmap="managed"
     10337    reservedMethods="12" reservedAttributes="24"
     10338    >
     10339
     10340    <desc>
     10341      Represents the state of the update checking logic (a singleton returned
     10342      by <link to="IHost::update" /> attribute).
     10343    </desc>
    1033010344
    1033110345  </interface>
     
    1033310347  <interface
    1033410348    name="IHost" extends="$unknown"
    10335     uuid="dbe11e5f-7f10-46e7-94c4-1e95bf4b6627"
     10349    uuid="16ced992-5fdc-4aba-aff5-6a39bbd7c38b"
    1033610350    wsmap="managed"
    1033710351    reservedMethods="6" reservedAttributes="12"
     
    1083010844      </param>
    1083110845    </method>
     10846
     10847    <attribute name="update" type="IHostUpdate" readonly="yes">
     10848      <desc>List of floppy drives available on the host.</desc>
     10849    </attribute>
    1083210850
    1083310851  </interface>
     
    1848518503    <const name="VHWA" value="0x02">
    1848618504      <desc>
    18487         Supports VHWA interface. If set, then IFramebuffer::processVHWACommand can be called.
     18505        Supports VHWA interface. If set, then
     18506        <link to="IFramebuffer::processVHWACommand"/> can be called.
    1848818507      </desc>
    1848918508    </const>
     
    1849118510    <const name="VisibleRegion" value="0x04">
    1849218511      <desc>
    18493         Supports visible region. If set, then IFramebuffer::setVisibleRegion can be called.
     18512        Supports visible region. If set, then
     18513        <link to="IFramebuffer::setVisibleRegion"/> can be called.
    1849418514      </desc>
    1849518515    </const>
     
    1883518855    >
    1883618856    <desc>
    18837       How IDisplay::setScreenLayout method should work.
     18857      How <link to="IDisplay::setScreenLayout"/> method should work.
    1883818858    </desc>
    1883918859
  • trunk/src/VBox/Main/idl/apiwrap-server.xsl

    r80869 r81684  
    519519    </xsl:variable>
    520520
    521     <!-- interface santiy check, prevents crashes -->
    522     <xsl:if test="(count(attribute) + count(method)) = 0">
     521    <!-- interface sanity check, prevents crashes -->
     522    <xsl:if test="(count(attribute) + count(method) + sum(@reservedMethods[number()= number()]) + sum(@reservedAttributes[number()= number()])) = 0">
    523523        <xsl:message terminate="yes">
    524524            Interface <xsl:value-of select="@name"/> is empty which causes midl generated proxy
  • trunk/src/VBox/Main/include/HostImpl.h

    r81305 r81684  
    116116    HRESULT getAcceleration3DAvailable(BOOL *aAcceleration3DAvailable);
    117117    HRESULT getVideoInputDevices(std::vector<ComPtr<IHostVideoInputDevice> > &aVideoInputDevices);
     118    HRESULT getUpdate(ComPtr<IHostUpdate> &aUpdate);
    118119
    119120    // wrapped IHost methods
  • trunk/src/VBox/Main/src-server/HostImpl.cpp

    r81682 r81684  
    19341934#endif
    19351935}
     1936
     1937
     1938HRESULT Host::getUpdate(ComPtr<IHostUpdate> &aUpdate)
     1939{
     1940    RT_NOREF(aUpdate);
     1941    ReturnComNotImplemented();
     1942}
     1943
    19361944
    19371945// public methods only for internal purposes
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