Changeset 47650 in vbox
- Timestamp:
- Aug 9, 2013 2:27:21 PM (11 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/apiwrap-server.xsl
r45518 r47650 152 152 <xsl:value-of select="concat('#define LOG_GROUP_MAIN_OVERRIDE LOG_GROUP_MAIN_', translate(substring(@name, 2), $G_lowerCase, $G_upperCase), ' ')"/> 153 153 <xsl:value-of select="concat('#include "', substring(@name, 2), 'Wrap.h" ')"/> 154 <xsl:text>#include "AutoCaller.h" 155 #include "Logging.h" 154 <xsl:text>#include "Logging.h" 156 155 157 156 </xsl:text> … … 174 173 <xsl:param name="str"/> 175 174 <xsl:value-of select="translate($str, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_', ' ')"/> 175 </xsl:template> 176 177 <xsl:template name="checkoption"> 178 <xsl:param name="optionlist"/> 179 <xsl:param name="option"/> 180 <xsl:value-of select="string-length($option) > 0 and contains(concat(',', translate($optionlist, ' ', ''), ','), concat(',', $option, ','))"/> 176 181 </xsl:template> 177 182 … … 662 667 663 668 <xsl:value-of select="concat(' virtual HRESULT get', $attrbasename, '(')"/> 669 <xsl:variable name="passAutoCaller"> 670 <xsl:call-template name="checkoption"> 671 <xsl:with-param name="optionlist" select="@wrap-hint-server"/> 672 <xsl:with-param name="option" select="'passcaller'"/> 673 </xsl:call-template> 674 </xsl:variable> 675 <xsl:if test="$passAutoCaller = 'true'"> 676 <xsl:text>AutoCaller &aAutoCaller, </xsl:text> 677 </xsl:if> 664 678 <xsl:apply-templates select="@type" mode="wrapped"> 665 679 <xsl:with-param name="dir" select="'out'"/> … … 670 684 <xsl:if test="not(@readonly) or @readonly!='yes'"> 671 685 <xsl:value-of select="concat(' virtual HRESULT set', $attrbasename, '(')"/> 686 <xsl:if test="$passAutoCaller = 'true'"> 687 <xsl:text>AutoCaller &aAutoCaller, </xsl:text> 688 </xsl:if> 672 689 <xsl:apply-templates select="@type" mode="wrapped"> 673 690 <xsl:with-param name="dir" select="'in'"/> … … 722 739 </xsl:text> 723 740 <xsl:value-of select="concat(' hrc = get', $attrbasename, '(')"/> 741 <xsl:variable name="passAutoCaller"> 742 <xsl:call-template name="checkoption"> 743 <xsl:with-param name="optionlist" select="@wrap-hint-server"/> 744 <xsl:with-param name="option" select="'passcaller'"/> 745 </xsl:call-template> 746 </xsl:variable> 747 <xsl:if test="$passAutoCaller = 'true'"> 748 <xsl:text>autoCaller, </xsl:text> 749 </xsl:if> 724 750 <xsl:apply-templates select="@type" mode="paramvalconversion"> 725 751 <xsl:with-param name="dir" select="'out'"/> … … 781 807 </xsl:text> 782 808 <xsl:value-of select="concat(' hrc = set', $attrbasename, '(')"/> 809 <xsl:if test="$passAutoCaller = 'true'"> 810 <xsl:text>autoCaller, </xsl:text> 811 </xsl:if> 783 812 <xsl:apply-templates select="@type" mode="paramvalconversion"> 784 813 <xsl:with-param name="dir" select="'in'"/> … … 895 924 </xsl:call-template> 896 925 <xsl:text>(</xsl:text> 926 <xsl:variable name="passAutoCaller"> 927 <xsl:call-template name="checkoption"> 928 <xsl:with-param name="optionlist" select="@wrap-hint-server"/> 929 <xsl:with-param name="option" select="'passcaller'"/> 930 </xsl:call-template> 931 </xsl:variable> 932 <xsl:if test="$passAutoCaller = 'true'"> 933 <xsl:text>AutoCaller &aAutoCaller</xsl:text> 934 <xsl:if test="count(param) > 0"> 935 <xsl:text>, 936 </xsl:text> 937 <xsl:value-of select="$methodindent"/> 938 </xsl:if> 939 </xsl:if> 897 940 <xsl:for-each select="param"> 898 941 <xsl:apply-templates select="@type" mode="wrapped"> … … 985 1028 </xsl:text> 986 1029 <xsl:value-of select="concat(' hrc = ', @name, '(')"/> 1030 <xsl:variable name="passAutoCaller"> 1031 <xsl:call-template name="checkoption"> 1032 <xsl:with-param name="optionlist" select="@wrap-hint-server"/> 1033 <xsl:with-param name="option" select="'passcaller'"/> 1034 </xsl:call-template> 1035 </xsl:variable> 1036 <xsl:if test="$passAutoCaller = 'true'"> 1037 <xsl:text>autoCaller</xsl:text> 1038 <xsl:if test="count(param) > 0"> 1039 <xsl:text>, 1040 </xsl:text> 1041 <xsl:value-of select="$methodindent"/> 1042 </xsl:if> 1043 </xsl:if> 987 1044 <xsl:for-each select="param"> 988 1045 <xsl:apply-templates select="@type" mode="paramvalconversion"> -
trunk/src/VBox/Main/include/Wrapper.h
r45518 r47650 24 24 #include <VBox/com/ptr.h> 25 25 #include <VBox/com/array.h> 26 27 #include "AutoCaller.h" 28 26 29 27 30 /**
Note:
See TracChangeset
for help on using the changeset viewer.