VirtualBox

Changeset 50857 in vbox for trunk/src/VBox/Main/idl


Ignore:
Timestamp:
Mar 25, 2014 9:40:23 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
92947
Message:

Workaround for crash receiving ISnapshotDeletedEvent, ISnapshotCreatedEVent and a bunch of other 'empty' event interfaces when using VBOX_WITH_MIDL_PROXY_STUB=1.

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

Legend:

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

    r50721 r50857  
    2056920569      <see><link to="ISnapshot"/></see>
    2057020570    </desc>
     20571    <attribute name="midlDoesNotLikEmptyInterfaces" readonly="yes" type="boolean"/>
    2057120572  </interface>
    2057220573
     
    2058720588      <see><link to="ISnapshot"/></see>
    2058820589    </desc>
     20590    <attribute name="midlDoesNotLikEmptyInterfaces" readonly="yes" type="boolean"/>
    2058920591  </interface>
    2059020592
     
    2059820600      <see><link to="ISnapshot"/></see>
    2059920601    </desc>
     20602    <attribute name="midlDoesNotLikEmptyInterfaces" readonly="yes" type="boolean"/>
    2060020603  </interface>
    2060120604
     
    2075620759      find out what has changed.
    2075720760    </desc>
     20761    <attribute name="midlDoesNotLikEmptyInterfaces" readonly="yes" type="boolean"/>
    2075820762  </interface>
    2075920763
     
    2082220826      changes.
    2082320827    </desc>
     20828    <attribute name="midlDoesNotLikEmptyInterfaces" readonly="yes" type="boolean"/>
    2082420829  </interface>
    2082520830
     
    2131421319    </desc>
    2131521320
     21321    <attribute name="midlDoesNotLikEmptyInterfaces" readonly="yes" type="boolean"/>
    2131621322  </interface>
    2131721323
     
    2134221348    </desc>
    2134321349
     21350    <attribute name="midlDoesNotLikEmptyInterfaces" readonly="yes" type="boolean"/>
    2134421351  </interface>
    2134521352
     
    2135521362      find out what has changed.
    2135621363    </desc>
     21364    <attribute name="midlDoesNotLikEmptyInterfaces" readonly="yes" type="boolean"/>
    2135721365  </interface>
    2135821366
     
    2136721375      attributes to find out what is the current status.
    2136821376    </desc>
     21377    <attribute name="midlDoesNotLikEmptyInterfaces" readonly="yes" type="boolean"/>
    2136921378  </interface>
    2137021379
     
    2137721386      Notification when video capture settings have changed.
    2137821387    </desc>
     21388    <attribute name="midlDoesNotLikEmptyInterfaces" readonly="yes" type="boolean"/>
    2137921389  </interface>
    2138021390
     
    2139021400      find out what has changed.
    2139121401    </desc>
     21402    <attribute name="midlDoesNotLikEmptyInterfaces" readonly="yes" type="boolean"/>
    2139221403  </interface>
    2139321404
     
    2166821679      <link to="IConsole::state">machine state</link> change.
    2166921680    </desc>
     21681    <attribute name="midlDoesNotLikEmptyInterfaces" readonly="yes" type="boolean"/>
    2167021682  </interface>
    2167121683
     
    2203322045    wsmap="managed" autogen="VBoxEvent" id="OnHostNameResolutionConfigurationChange"
    2203422046    >
     22047    <attribute name="midlDoesNotLikEmptyInterfaces" readonly="yes" type="boolean"/>
    2203522048  </interface>
    2203622049
  • trunk/src/VBox/Main/idl/comimpl.xsl

    r49678 r50857  
    269269  </xsl:choose>
    270270
    271   <xsl:for-each select="//interface[@name=$name]/attribute">
     271  <xsl:for-each select="//interface[@name=$name]/attribute[@name != 'midlDoesNotLikEmptyInterfaces']">
    272272    <xsl:variable name="aName" select="concat('a_',@name)"/>
    273273    <xsl:variable name="aTypeName">
     
    583583    </xsl:otherwise>
    584584  </xsl:choose>
     585
     586  <!-- Before we generate attribute code, we check and make sure there are attributes here. -->
     587  <xsl:if test="count(attribute) = 0 and @name != 'INATNetworkAlterEvent'">
     588    <xsl:call-template name="fatalError">
     589      <xsl:with-param name="msg">error: <xsl:value-of select="@name"/> has no attributes</xsl:with-param>
     590    </xsl:call-template>
     591  </xsl:if>
     592
    585593  <xsl:call-template name="genAttrCode">
    586594    <xsl:with-param name="name" select="@name" />
     
    767775  </xsl:choose>
    768776
    769   <xsl:for-each select="//interface[@name=$name]/attribute">
     777  <xsl:for-each select="//interface[@name=$name]/attribute[@name != 'midlDoesNotLikEmptyInterfaces']">
    770778    <xsl:variable name="aName" select="concat('a_',@name)"/>
    771779    <xsl:variable name="aTypeName">
     
    805813  </xsl:choose>
    806814
    807   <xsl:for-each select="//interface[@name=$name]/attribute">
     815  <xsl:for-each select="//interface[@name=$name]/attribute[@name != 'midlDoesNotLikEmptyInterfaces']">
    808816    <xsl:variable name="aName" select="concat('a_',@name)"/>
    809817    <xsl:choose>
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