Changeset 56679 in vbox
- Timestamp:
- Jun 29, 2015 6:26:55 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 101321
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/cbinding/capiidl.xsl
r56396 r56679 1845 1845 <xsl:text>)(</xsl:text> 1846 1846 <xsl:value-of select="$iface"/> 1847 <xsl:text> *pThis, PRUint32 *reserved);
</xsl:text> 1848 <xsl:text> nsresult (*SetInternalAndReservedAttribute</xsl:text> 1849 <xsl:value-of select="concat(position(), $name)"/> 1850 <xsl:text>)(</xsl:text> 1851 <xsl:value-of select="$iface"/> 1852 <xsl:text> *pThis, PRUint32 reserved);

</xsl:text> 1847 <xsl:text> *pThis, PRUint32 *reserved);

</xsl:text> 1853 1848 </xsl:for-each> 1854 1849 </xsl:if> … … 1876 1871 <xsl:template match="interface"> 1877 1872 <xsl:if test="not(@internal='yes')"> 1873 <xsl:variable name="name" select="@name"/> 1878 1874 <xsl:text>/* Start of struct </xsl:text> 1879 <xsl:value-of select=" @name"/>1875 <xsl:value-of select="$name"/> 1880 1876 <xsl:text> declaration */
</xsl:text> 1881 1877 <xsl:text>#define </xsl:text> 1882 1878 <xsl:call-template name="string-to-upper"> 1883 <xsl:with-param name="str" select=" @name"/>1879 <xsl:with-param name="str" select="$name"/> 1884 1880 </xsl:call-template> 1885 1881 <xsl:value-of select="concat('_IID_STR "',@uuid,'"')"/> … … 1887 1883 <xsl:text>#define </xsl:text> 1888 1884 <xsl:call-template name="string-to-upper"> 1889 <xsl:with-param name="str" select=" @name"/>1885 <xsl:with-param name="str" select="$name"/> 1890 1886 </xsl:call-template> 1891 1887 <xsl:text>_IID { \
</xsl:text> … … 1905 1901 <xsl:text>/* COM compatibility */
</xsl:text> 1906 1902 <xsl:text>VBOX_EXTERN_CONST(nsIID, IID_</xsl:text> 1907 <xsl:value-of select=" @name"/>1903 <xsl:value-of select="$name"/> 1908 1904 <xsl:text>);
</xsl:text> 1909 1905 <xsl:text>#ifndef VBOX_WITH_GLUE
</xsl:text> 1910 1906 <xsl:text>struct </xsl:text> 1911 <xsl:value-of select=" @name"/>1907 <xsl:value-of select="$name"/> 1912 1908 <xsl:text>_vtbl
{
</xsl:text> 1913 1909 <xsl:text> </xsl:text> … … 1928 1924 <!-- attributes (properties) --> 1929 1925 <xsl:apply-templates select="attribute | if/attribute"/> 1926 <xsl:variable name="reservedAttributes" select="@reservedAttributes"/> 1927 <xsl:if test="$reservedAttributes > 0"> 1928 <!-- tricky way to do a "for" loop without recursion --> 1929 <xsl:for-each select="(//*)[position() <= $reservedAttributes]"> 1930 <xsl:text> nsresult (*GetInternalAndReservedAttribute</xsl:text> 1931 <xsl:value-of select="concat(position(), $name)"/> 1932 <xsl:text>)(</xsl:text> 1933 <xsl:value-of select="$name"/> 1934 <xsl:text> *pThis, PRUint32 *reserved);

</xsl:text> 1935 </xsl:for-each> 1936 </xsl:if> 1930 1937 <!-- methods --> 1931 1938 <xsl:apply-templates select="method | if/method"/> 1939 <xsl:variable name="reservedMethods" select="@reservedMethods"/> 1940 <xsl:if test="$reservedMethods > 0"> 1941 <!-- tricky way to do a "for" loop without recursion --> 1942 <xsl:for-each select="(//*)[position() <= $reservedMethods]"> 1943 <xsl:text> nsresult (*InternalAndReservedMethod</xsl:text> 1944 <xsl:value-of select="concat(position(), $name)"/> 1945 <xsl:text>)(</xsl:text> 1946 <xsl:value-of select="$name"/> 1947 <xsl:text> *pThis);

</xsl:text> 1948 </xsl:for-each> 1949 </xsl:if> 1932 1950 <!-- --> 1933 1951 <xsl:text>};
</xsl:text> 1934 1952 <xsl:text>#else /* VBOX_WITH_GLUE */
</xsl:text> 1935 1953 <xsl:text>struct </xsl:text> 1936 <xsl:value-of select=" @name"/>1954 <xsl:value-of select="$name"/> 1937 1955 <xsl:text>Vtbl
{
</xsl:text> 1938 1956 <xsl:apply-templates select="." mode="vtab_flat"> 1939 <xsl:with-param name="iface" select=" @name"/>1957 <xsl:with-param name="iface" select="$name"/> 1940 1958 </xsl:apply-templates> 1941 1959 <xsl:text>};
</xsl:text> 1942 1960 <xsl:apply-templates select="." mode="cobjmacro"> 1943 <xsl:with-param name="iface" select=" @name"/>1961 <xsl:with-param name="iface" select="$name"/> 1944 1962 </xsl:apply-templates> 1945 1963 <!-- --> … … 1947 1965 <xsl:text>
</xsl:text> 1948 1966 <xsl:text>interface </xsl:text> 1949 <xsl:value-of select=" @name"/>1967 <xsl:value-of select="$name"/> 1950 1968 <xsl:text>
{
</xsl:text> 1951 1969 <xsl:text>#ifndef VBOX_WITH_GLUE
</xsl:text> 1952 1970 <xsl:text> struct </xsl:text> 1953 <xsl:value-of select=" @name"/>1971 <xsl:value-of select="$name"/> 1954 1972 <xsl:text>_vtbl *vtbl;
</xsl:text> 1955 1973 <xsl:text>#else /* VBOX_WITH_GLUE */
</xsl:text> 1956 1974 <xsl:text> CONST_VTBL struct </xsl:text> 1957 <xsl:value-of select=" @name"/>1975 <xsl:value-of select="$name"/> 1958 1976 <xsl:text>Vtbl *lpVtbl;
</xsl:text> 1959 1977 <xsl:text>#endif /* VBOX_WITH_GLUE */
</xsl:text> 1960 1978 <xsl:text>};
</xsl:text> 1961 1979 <xsl:text>/* End of struct </xsl:text> 1962 <xsl:value-of select=" @name"/>1980 <xsl:value-of select="$name"/> 1963 1981 <xsl:text> declaration */

</xsl:text> 1964 1982 <xsl:call-template name="xsltprocNewlineOutputHack"/>
Note:
See TracChangeset
for help on using the changeset viewer.