VirtualBox

Changeset 51601 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 11, 2014 9:44:55 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
94333
Message:

Main/Machine: fix regression (lack of AutoLimitedCaller) due to missing hints/wrapper support for inaccessible VMs

Location:
trunk/src/VBox/Main/idl
Files:
2 edited

Legend:

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

    r51556 r51601  
    42474247    </desc>
    42484248
    4249     <attribute name="parent" type="IVirtualBox" readonly="yes">
     4249    <attribute name="parent" type="IVirtualBox" readonly="yes" wrap-hint-server="limitedcaller">
    42504250      <desc>Associated parent object.</desc>
    42514251    </attribute>
     
    42554255    </attribute>
    42564256
    4257     <attribute name="accessible" type="boolean" readonly="yes">
     4257    <attribute name="accessible" type="boolean" readonly="yes" wrap-hint-server="limitedcaller">
    42584258      <desc>
    42594259        Whether this virtual machine is currently accessible or not.
     
    42994299    </attribute>
    43004300
    4301     <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
     4301    <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes" wrap-hint-server="limitedcaller">
    43024302      <desc>
    43034303        Error information describing the reason of machine
     
    43624362    </attribute>
    43634363
    4364     <attribute name="id" type="uuid" mod="string" readonly="yes">
     4364    <attribute name="id" type="uuid" mod="string" readonly="yes" wrap-hint-server="limitedcaller">
    43654365      <desc>UUID of the virtual machine.</desc>
    43664366    </attribute>
     
    46344634    </attribute>
    46354635
    4636     <attribute name="settingsFilePath" type="wstring" readonly="yes">
     4636    <attribute name="settingsFilePath" type="wstring" readonly="yes" wrap-hint-server="limitedcaller">
    46374637      <desc>
    46384638        Full name of the file containing machine settings data.
     
    65166516    </method>
    65176517
    6518     <method name="unregister">
     6518    <method name="unregister" wrap-hint-server="limitedcaller">
    65196519      <desc>
    65206520        Unregisters a machine previously registered with
  • trunk/src/VBox/Main/idl/apiwrap-server.xsl

    r51463 r51601  
    872872        </xsl:call-template>
    873873    </xsl:variable>
     874    <xsl:variable name="limitedAutoCaller">
     875        <xsl:call-template name="checkoption">
     876            <xsl:with-param name="optionlist" select="@wrap-hint-server"/>
     877            <xsl:with-param name="option" select="'limitedcaller'"/>
     878        </xsl:call-template>
     879    </xsl:variable>
    874880
    875881    <xsl:value-of select="concat('STDMETHODIMP ', $topclass, 'Wrap::COMGETTER(', $attrbasename, ')(')"/>
     
    902908    <xsl:text>);
    903909
    904         AutoCaller autoCaller(this);
     910        </xsl:text>
     911    <xsl:choose>
     912      <xsl:when test="$limitedAutoCaller = 'true'">
     913        <xsl:text>AutoLimitedCaller</xsl:text>
     914      </xsl:when>
     915      <xsl:otherwise>
     916        <xsl:text>AutoCaller</xsl:text>
     917      </xsl:otherwise>
     918    </xsl:choose>
     919    <xsl:text> autoCaller(this);
    905920        if (FAILED(autoCaller.rc()))
    906921            throw autoCaller.rc();
     
    974989    try
    975990    {
    976         AutoCaller autoCaller(this);
     991        </xsl:text>
     992        <xsl:choose>
     993          <xsl:when test="$limitedAutoCaller = 'true'">
     994            <xsl:text>AutoLimitedCaller</xsl:text>
     995          </xsl:when>
     996          <xsl:otherwise>
     997            <xsl:text>AutoCaller</xsl:text>
     998          </xsl:otherwise>
     999        </xsl:choose>
     1000        <xsl:text> autoCaller(this);
    9771001        if (FAILED(autoCaller.rc()))
    9781002            throw autoCaller.rc();
     
    11411165        <xsl:call-template name="capitalize">
    11421166            <xsl:with-param name="str" select="@name"/>
     1167        </xsl:call-template>
     1168    </xsl:variable>
     1169    <xsl:variable name="limitedAutoCaller">
     1170        <xsl:call-template name="checkoption">
     1171            <xsl:with-param name="optionlist" select="@wrap-hint-server"/>
     1172            <xsl:with-param name="option" select="'limitedcaller'"/>
    11431173        </xsl:call-template>
    11441174    </xsl:variable>
     
    11951225    </xsl:for-each>
    11961226    <xsl:text>
    1197         AutoCaller autoCaller(this);
     1227        </xsl:text>
     1228    <xsl:choose>
     1229      <xsl:when test="$limitedAutoCaller = 'true'">
     1230        <xsl:text>AutoLimitedCaller</xsl:text>
     1231      </xsl:when>
     1232      <xsl:otherwise>
     1233        <xsl:text>AutoCaller</xsl:text>
     1234      </xsl:otherwise>
     1235    </xsl:choose>
     1236    <xsl:text> autoCaller(this);
    11981237        if (FAILED(autoCaller.rc()))
    11991238            throw autoCaller.rc();
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette