summaryrefslogtreecommitdiffstats
path: root/secret-service/tools
diff options
context:
space:
mode:
authorMichael Leupold <lemma@leunet.de>2009-08-01 03:33:14 +0200
committerStef Walter <stefw@collabora.co.uk>2010-12-04 16:11:41 +0000
commit4ad12bd950a49c2f96c6125076e141e94cdcde49 (patch)
treebce4af372528284df5821da2e6d3d4b1f31e4abe /secret-service/tools
parent20c5210807cae6c7724d1aebe2f1d5c3e0f300eb (diff)
downloadxdg-specs-4ad12bd950a49c2f96c6125076e141e94cdcde49.tar.xz
@direction => uppercase.
Diffstat (limited to 'secret-service/tools')
-rw-r--r--secret-service/tools/spec-to-docbook.xsl22
1 files changed, 19 insertions, 3 deletions
diff --git a/secret-service/tools/spec-to-docbook.xsl b/secret-service/tools/spec-to-docbook.xsl
index 72763e6..00fc56e 100644
--- a/secret-service/tools/spec-to-docbook.xsl
+++ b/secret-service/tools/spec-to-docbook.xsl
@@ -42,6 +42,14 @@
</xsl:copy>
</xsl:template>
+ <xsl:template name="direction">
+ <xsl:param name="indirection"/>
+ <xsl:choose>
+ <xsl:when test="$indirection = 'in'">IN</xsl:when>
+ <xsl:otherwise>OUT</xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
<xsl:template match="tp:type">
<xsl:call-template name="tp-type">
<xsl:with-param name="tp-type" select="string(.)"/>
@@ -663,7 +671,7 @@
make sense.</para>
</xsl:otherwise>
</xsl:choose>
- <classsynopsis language="c">
+ <classsynopsis>
<ooclass>
<modifier>struct</modifier>
<classname><xsl:value-of select="@name"/></classname>
@@ -678,6 +686,10 @@
<xsl:template match="arg" mode="paramdef">
<paramdef>
+ <xsl:call-template name="direction">
+ <xsl:with-param name="indirection" select="@direction"/>
+ </xsl:call-template>
+ <xsl:text> </xsl:text>
<xsl:call-template name="ResolveType">
<xsl:with-param name="node" select="."/>
</xsl:call-template>
@@ -690,11 +702,15 @@
<entry><xsl:value-of select="@name"/></entry>
<entry>
<xsl:call-template name="ResolveType">
- <xsl:with-param name="node" select="."/>
+ <xsl:with-param name="node" select="."/>
</xsl:call-template>
</entry>
<xsl:if test="not(parent::signal)">
- <entry><xsl:value-of select="@direction"/></entry>
+ <entry>
+ <xsl:call-template name="direction">
+ <xsl:with-param name="indirection" select="@direction"/>
+ </xsl:call-template>
+ </entry>
</xsl:if>
<entry><xsl:apply-templates select="tp:docstring" mode="nopara"/></entry>
</row>