[PATCH wayland v3 4/4] doc: output enum and bitfield attributes in the documentation

Auke Booij auke at tulcod.com
Sat Oct 24 04:07:50 PDT 2015


Signed-off-by: Auke Booij <auke at tulcod.com>
---
 doc/publican/protocol-to-docbook.xsl | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/doc/publican/protocol-to-docbook.xsl b/doc/publican/protocol-to-docbook.xsl
index 7b45969..fad207a 100644
--- a/doc/publican/protocol-to-docbook.xsl
+++ b/doc/publican/protocol-to-docbook.xsl
@@ -102,6 +102,12 @@
     <term><xsl:value-of select="@name"/></term>
     <listitem>
         <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:if test="@summary" >
             - <xsl:value-of select="@summary"/>
@@ -171,6 +177,9 @@
   <section id="protocol-spec-{../@name}-{name()}-{@name}">
     <title>
       <xsl:value-of select="../@name"/>::<xsl:value-of select="@name" />
+      <xsl:if test="@bitfield">
+        - bitfield
+      </xsl:if>
       <xsl:if test="description/@summary">
         - <xsl:value-of select="description/@summary" />
       </xsl:if>
-- 
2.6.1



More information about the wayland-devel mailing list