VirtualBox

Ignore:
Timestamp:
Jun 23, 2015 11:25:11 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
101225
Message:

Main/idl: change the unit of "reservedAttributes" from read-write attributes (taking two vtable slots) to read-only attributes. It is more flexible, as one can still make a read-write attribute out of them, decrasing the reserved attribute count by 2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/apiwrap-server.xsl

    r56396 r56596  
    15521552                    <xsl:value-of select="concat(position(), $name)"/>
    15531553                    <xsl:text>))(ULONG *aReserved);&#x0A;</xsl:text>
    1554                     <xsl:text>    STDMETHOD(COMSETTER(InternalAndReservedAttribute</xsl:text>
    1555                     <xsl:value-of select="concat(position(), $name)"/>
    1556                     <xsl:text>))(ULONG aReserved);&#x0A;</xsl:text>
    15571554                </xsl:for-each>
    15581555            </xsl:if>
     
    15741571                <xsl:for-each select="(//*)[position() &lt;= $reservedAttributes]">
    15751572                    <xsl:value-of select="concat('STDMETHODIMP ', $topclass, 'Wrap::COMGETTER(InternalAndReservedAttribute', position(), $name, ')(ULONG *aReserved)&#x0A;')"/>
    1576                     <xsl:text>{
    1577     NOREF(aReserved);
    1578     return E_NOTIMPL;
    1579 }
    1580 
    1581 </xsl:text>
    1582                     <xsl:value-of select="concat('STDMETHODIMP ', $topclass, 'Wrap::COMSETTER(InternalAndReservedAttribute', position(), $name, ')(ULONG aReserved)&#x0A;')"/>
    15831573                    <xsl:text>{
    15841574    NOREF(aReserved);
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