diff options
author | Bill Spitzak <spitzak@gmail.com> | 2015-01-02 18:29:21 -0800 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2015-01-23 18:45:02 -0800 |
commit | d90fd15ee4950f1ea5849e784dc592466de7b90b (patch) | |
tree | bbe79417db6bf7648d221e405ae881b271ba9403 | |
parent | be8064d2d4a94df010e1909eddb7e57c39babc61 (diff) | |
download | wayland-d90fd15ee4950f1ea5849e784dc592466de7b90b.tar.gz |
doc: Add object types and links to arguments int protocol documentation
This makes it a lot easier to figure out what is going on!
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
-rw-r--r-- | doc/publican/protocol-to-docbook.xsl | 35 |
1 files changed, 35 insertions, 0 deletions
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}"> |