~ubuntu-branches/ubuntu/maverick/telepathy-salut/maverick

« back to all changes in this revision

Viewing changes to lib/tools/glib-errors-enum-header.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Sjoerd Simons
  • Date: 2007-06-13 10:54:25 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070613105425-mwwsplxbk8n6z5t6
Tags: 0.1.3-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
2
 
  xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0"
3
 
  exclude-result-prefixes="tp">
4
 
 
5
 
  <xsl:output method="text" indent="no" encoding="ascii"/>
6
 
 
7
 
  <xsl:template match="tp:error" mode="gtkdoc">
8
 
 * @TP_ERROR_<xsl:value-of select="translate(@name, 'abcdefghijklmnopqrstuvwxyz .', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ__')"/>: <xsl:value-of select="concat(../@namespace, '.', translate(@name, ' ', ''))"/>:
9
 
 * <xsl:value-of select="translate(tp:docstring, '&#13;&#10;', '')"/>
10
 
  </xsl:template>
11
 
 
12
 
  <xsl:template match="tp:error">
13
 
<xsl:text>    TP_ERROR_</xsl:text><xsl:value-of select="translate(@name, 'abcdefghijklmnopqrstuvwxyz .', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ__')"/>,
14
 
</xsl:template>
15
 
 
16
 
  <xsl:template match="text()"/>
17
 
 
18
 
  <xsl:template match="/tp:errors">/* Generated from the Telepathy spec
19
 
 
20
 
<xsl:for-each select="tp:copyright">
21
 
<xsl:value-of select="."/><xsl:text>
22
 
</xsl:text></xsl:for-each><xsl:text>
23
 
</xsl:text><xsl:value-of select="tp:license"/>
24
 
*/
25
 
 
26
 
#include &lt;glib-object.h&gt;
27
 
 
28
 
G_BEGIN_DECLS
29
 
 
30
 
GType tp_error_get_type (void);
31
 
 
32
 
/**
33
 
 * TP_TYPE_ERROR:
34
 
 *
35
 
 * The GType of the Telepathy error enumeration.
36
 
 */
37
 
#define TP_TYPE_ERROR (tp_error_get_type())
38
 
 
39
 
/**
40
 
 * TpError:<xsl:apply-templates select="tp:error" mode="gtkdoc"/>
41
 
 *
42
 
 * Enumerated type representing the Telepathy D-Bus errors.
43
 
 */
44
 
typedef enum {
45
 
<xsl:apply-templates select="tp:error"/>} TpError;
46
 
 
47
 
G_END_DECLS
48
 
</xsl:template>
49
 
 
50
 
</xsl:stylesheet>
51
 
 
52
 
<!-- vim:set sw=2 sts=2 et noai noci: -->