Changeset 53885 in vbox
- Timestamp:
- Jan 21, 2015 2:57:33 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 97725
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/Makefile.kmk
r53884 r53885 1189 1189 $(call MSG_L1,Generating C++ Server API wrapper header files from XIDL) 1190 1190 $(QUIET)$(RM) -f -- $(filter-out $(VBOX_MAIN_APIWRAPPER_GEN_HDRS), $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.h)) 1191 $(QUIET) kmk_time$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \1191 $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \ 1192 1192 --stringparam generating "headers" \ 1193 1193 --stringparam filelistonly "" \ … … 1205 1205 $(call MSG_L1,Generating DTrace Provider for the VBox API (from XIDL)) 1206 1206 $(QUIET)$(RM) -f -- "$@" "[email protected]" 1207 $(QUIET) kmk_time$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \1207 $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \ 1208 1208 --stringparam generating "dtrace-probes" \ 1209 1209 --stringparam filelistonly "" \ -
trunk/src/VBox/Main/idl/apiwrap-server.xsl
r53883 r53885 479 479 <xsl:value-of select="$dtracetypefield"/> 480 480 </xsl:when> 481 <xsl:when test="$type='$unknown'"> 482 <!-- <xsl:text>struct IUnknown *</xsl:text> --> 483 <xsl:text>void *</xsl:text> 484 </xsl:when> 481 485 <xsl:when test="//enum[@name=$type]"> 482 486 <!-- <xsl:value-of select="concat($type, '_T')"/> - later we can emit enums into dtrace the library --> 483 487 <xsl:text>int</xsl:text> 484 </xsl:when>485 <xsl:when test="$type='$unknown'">486 <!-- <xsl:text>struct IUnknown *</xsl:text> -->487 <xsl:text>void *</xsl:text>488 488 </xsl:when> 489 489 <xsl:when test="//interface[@name=$type]"> … … 610 610 </xsl:call-template> 611 611 </xsl:variable> 612 <xsl:variable name="lastchar"> 613 <xsl:value-of select="substring($wraptype, string-length($wraptype))"/> 614 </xsl:variable> 612 615 613 616 <xsl:choose> … … 618 621 <xsl:text>std::vector<</xsl:text> 619 622 <xsl:choose> 620 <xsl:when test=" substring($wraptype,string-length($wraptype))='&'">623 <xsl:when test="$lastchar = '&'"> 621 624 <xsl:variable name="wraptype2"> 622 <xsl:value-of select="substring($wraptype, 1,string-length($wraptype)-2)"/>625 <xsl:value-of select="substring($wraptype, 1, string-length($wraptype)-2)"/> 623 626 </xsl:variable> 624 625 <xsl:choose> 626 <xsl:when test="substring($wraptype2,string-length($wraptype2))='>'"> 627 <xsl:value-of select="concat($wraptype2, ' ')"/> 628 </xsl:when> 629 <xsl:otherwise> 630 <xsl:value-of select="$wraptype2"/> 631 </xsl:otherwise> 632 </xsl:choose> 633 </xsl:when> 634 <xsl:when test="substring($wraptype,string-length($wraptype))='>'"> 627 <xsl:value-of select="$wraptype2"/> 628 <xsl:if test="substring($wraptype2,string-length($wraptype2)) = '>'"> 629 <xsl:text> </xsl:text> 630 </xsl:if> 631 </xsl:when> 632 <xsl:when test="lastchar = '>'"> 635 633 <xsl:value-of select="concat($wraptype, ' ')"/> 636 634 </xsl:when> … … 643 641 <xsl:otherwise> 644 642 <xsl:value-of select="$wraptype"/> 645 <xsl:if test=" substring($wraptype,string-length($wraptype))!='&'">646 <xsl:if test=" substring($wraptype,string-length($wraptype))!='*'">643 <xsl:if test="$lastchar != '&'"> 644 <xsl:if test="$lastchar != '*'"> 647 645 <xsl:text> </xsl:text> 648 646 </xsl:if> … … 863 861 <xsl:variable name="type" select="."/> 864 862 <xsl:choose> 865 <xsl:when test="$type = 'wstring' or $type = '$unknown' or $type = 'uuid' or ../@safearray = 'yes'"> 863 <xsl:when test="$type = 'wstring' or $type = '$unknown' or $type = 'uuid'"> 864 <xsl:text>yes</xsl:text> 865 </xsl:when> 866 <xsl:when test="$type = 'boolean' or $type = 'long' or $type = 'long' or $type = 'long long'"/> 867 <xsl:when test="../@safearray = 'yes'"> 866 868 <xsl:text>yes</xsl:text> 867 869 </xsl:when>
Note:
See TracChangeset
for help on using the changeset viewer.