[PATCH 7/8] doc: Add object types and links to arguments int protocol documentation
Bill Spitzak
spitzak at gmail.com
Fri Jan 2 18:29:21 PST 2015
This makes it a lot easier to figure out what is going on!
---
doc/publican/protocol-to-docbook.xsl | 35 ++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/doc/publican/protocol-to-docbook.xsl b/doc/publican/protocol-to-docbook.xsl
index 723f5e6..ca1308f 100644
--- a/doc/publican/protocol-to-docbook.xsl
+++ b/doc/publican/protocol-to-docbook.xsl
@@ -111,6 +111,41 @@
</varlistentry>
</xsl:template>
+<!-- id arguments -->
+<xsl:template match="arg[@type='object' and @interface]">
+ <varlistentry>
+ <term><xsl:value-of select="@name"/></term>
+ <listitem>
+ <simpara>
+ <link linkend="protocol-spec-{@interface}">
+ <xsl:value-of select="@interface"/>
+ </link>
+ <xsl:if test="@summary" >
+ <xsl:text> </xsl:text><xsl:value-of select="@summary"/>
+ </xsl:if>
+ </simpara>
+ </listitem>
+ </varlistentry>
+</xsl:template>
+
+<!-- new_id arguments -->
+<xsl:template match="arg[@type='new_id' and @interface]">
+ <varlistentry>
+ <term><xsl:value-of select="@name"/></term>
+ <listitem>
+ <simpara>
+ id for the new
+ <link linkend="protocol-spec-{@interface}">
+ <xsl:value-of select="@interface"/>
+ </link>
+ <xsl:if test="@summary" >
+ <xsl:text> </xsl:text><xsl:value-of select="@summary"/>
+ </xsl:if>
+ </simpara>
+ </listitem>
+ </varlistentry>
+</xsl:template>
+
<!-- Request/event list -->
<xsl:template match="request|event|enum">
<section id="protocol-spec-{../@name}-{name()}-{@name}">
--
1.7.9.5
More information about the wayland-devel
mailing list