doc: Use enum argument type to make links in protocol documentation
Reviewed-by: Auke Booij <auke@tulcod.com>
This commit is contained in:
parent
3a2553ff01
commit
cde251a124
|
@ -102,12 +102,6 @@
|
||||||
<term><xsl:value-of select="@name"/></term>
|
<term><xsl:value-of select="@name"/></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<simpara>
|
<simpara>
|
||||||
<xsl:if test="@enum">
|
|
||||||
<link linkend="protocol-spec-{../../@name}-enum-{@enum}">
|
|
||||||
<xsl:value-of select="@enum"/>
|
|
||||||
</link>
|
|
||||||
<xsl:text> </xsl:text>
|
|
||||||
</xsl:if>
|
|
||||||
<xsl:value-of select="@type"/>
|
<xsl:value-of select="@type"/>
|
||||||
<xsl:if test="@summary" >
|
<xsl:if test="@summary" >
|
||||||
- <xsl:value-of select="@summary"/>
|
- <xsl:value-of select="@summary"/>
|
||||||
|
@ -152,6 +146,24 @@
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
<!-- enum and bitfield arguemnts -->
|
||||||
|
<xsl:template match="arg[@enum]">
|
||||||
|
<varlistentry>
|
||||||
|
<term><xsl:value-of select="@name"/></term>
|
||||||
|
<listitem>
|
||||||
|
<simpara>
|
||||||
|
<link linkend="protocol-spec-{../../@name}-enum-{@enum}">
|
||||||
|
<xsl:value-of select="../../@name"/>::<xsl:value-of select="@enum"/>
|
||||||
|
</link>
|
||||||
|
(<xsl:value-of select="@type"/>)
|
||||||
|
<xsl:if test="@summary" >
|
||||||
|
- <xsl:value-of select="@summary"/>
|
||||||
|
</xsl:if>
|
||||||
|
</simpara>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
<!-- Request/event list -->
|
<!-- Request/event list -->
|
||||||
<xsl:template match="request|event">
|
<xsl:template match="request|event">
|
||||||
<section id="protocol-spec-{../@name}-{name()}-{@name}">
|
<section id="protocol-spec-{../@name}-{name()}-{@name}">
|
||||||
|
@ -174,7 +186,7 @@
|
||||||
|
|
||||||
<!-- Enumeration -->
|
<!-- Enumeration -->
|
||||||
<xsl:template match="enum">
|
<xsl:template match="enum">
|
||||||
<section id="protocol-spec-{../@name}-{name()}-{@name}">
|
<section id="protocol-spec-{../@name}-enum-{@name}">
|
||||||
<title>
|
<title>
|
||||||
<xsl:value-of select="../@name"/>::<xsl:value-of select="@name" />
|
<xsl:value-of select="../@name"/>::<xsl:value-of select="@name" />
|
||||||
<xsl:if test="@bitfield">
|
<xsl:if test="@bitfield">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user