VirtualBox

Changeset 55608 in vbox for trunk/src


Ignore:
Timestamp:
May 3, 2015 12:41:55 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
99981
Message:

apiwrap-server.xsl,VirtualBox.xidl: Added a check in the API wrapper generator for empty interface since that causes midl proxy stubs to crash. Fixed 5-6 interfaces.

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

Legend:

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

    r55595 r55608  
    1061210612  <interface
    1061310613    name="IGuestDnDSource" extends="IDnDSource"
    10614     uuid="280955c0-de67-4297-8179-6274a82a2fc0"
     10614    uuid="dedfb5d9-4c1b-edf7-fdf3-c1be6827dc28"
    1061510615    wsmap="managed"
    1061610616    >
    10617 
    1061810617    <desc>
    1061910618      Implementation of the <link to="IDnDSource" /> object
    1062010619      for source drag'n drop operations on the guest.
    1062110620    </desc>
     10621    <attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
    1062210622  </interface>
    1062310623
     
    1078510785    wsmap="managed"
    1078610786    >
    10787 
    1078810787    <desc>
    1078910788      Implementation of the <link to="IDnDTarget" /> object
    1079010789      for target drag'n drop operations on the guest.
    1079110790    </desc>
     10791    <attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
    1079210792  </interface>
    1079310793
     
    1202912029  <interface
    1203012030    name="IGuestDirectory" extends="IDirectory"
    12031     uuid="af4a8ce0-0725-42b7-8826-46e3c7ba7357"
     12031    uuid="cc830458-4974-a19c-4dc6-cc98c2269626"
    1203212032    wsmap="managed"
    1203312033    >
     
    1203612036      for directories in the guest.
    1203712037    </desc>
     12038    <attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
    1203812039  </interface>
    1203912040
     
    1224412245  <interface
    1224512246    name="IGuestFile" extends="IFile"
    12246     uuid="60661aec-145f-4d11-b80e-8ea151598093"
     12247    uuid="b68f642c-49db-d699-db5c-bcb01c08e95f"
    1224712248    wsmap="managed"
    1224812249    >
     
    1225112252      for files in the guest.
    1225212253    </desc>
     12254    <attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
    1225312255  </interface>
    1225412256
     
    1236512367  <interface
    1236612368    name="IGuestFsObjInfo" extends="IFsObjInfo"
    12367     uuid="d5cf678e-3484-4e4a-ac55-329e15462e18"
     12369    uuid="7cf2d77d-4222-8e33-1065-cab345173300"
    1236812370    wsmap="managed"
    1236912371    >
     
    1237212374      <link to="IFsObjInfo" /> object.
    1237312375    </desc>
     12376    <attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
    1237412377  </interface>
    1237512378
     
    2260922612
    2261022613  <!-- base class for modification events -->
    22611   <interface name="INATNetworkAlterEvent" extends="INATNetworkChangedEvent"
    22612              uuid="3f5a0822-163a-43b1-ad16-8d58b0ef6e75"
    22613              wsmap="managed" autogen="VBoxEvent" id="OnNATNetworkAlter"/>
     22614  <interface
     22615    name="INATNetworkAlterEvent" extends="INATNetworkChangedEvent"
     22616    uuid="d947adf5-4022-dc80-5535-6fb116815604"
     22617    wsmap="managed" autogen="VBoxEvent" id="OnNATNetworkAlter"
     22618    >
     22619    <attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
     22620  </interface>
    2261422621
    2261522622  <interface name="INATNetworkCreationDeletionEvent" extends="INATNetworkAlterEvent"
  • trunk/src/VBox/Main/idl/apiwrap-server.xsl

    r55595 r55608  
    509509        </xsl:call-template>
    510510    </xsl:variable>
     511
     512    <!-- interface santiy check, prevents crashes -->
     513    <xsl:if test="(count(attribute) + count(method)) = 0">
     514        <xsl:message terminate="yes">
     515            Interface <xsl:value-of select="@name"/> is empty which causes midl generated proxy
     516            stubs to crash. Please add a dummy:<xsl:value-of select="$G_sNewLine"/>
     517              &lt;attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/&gt;
     518        </xsl:message>
     519    </xsl:if>
    511520
    512521    <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