summaryrefslogtreecommitdiff
path: root/lcmodule/customer_config/custom_command_ids_h.xsl
diff options
context:
space:
mode:
authorViktor Mladenovski <viktor.mladenovski@stericsson.com>2011-05-20 14:10:59 +0200
committerViktor Mladenovski <viktor.mladenovski@stericsson.com>2011-05-20 14:10:59 +0200
commitf7e95217e936da34d7124aaced590692eb515923 (patch)
tree2d9ef4750a67d9d1dd3fe9180a4fef2929fad54b /lcmodule/customer_config/custom_command_ids_h.xsl
Initial contribution of loader_communication
ST-Ericsson ID: 326913 ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10204 Change-Id: I171cfc2ee458a8a0a91a1916137d131f0f7ecee5
Diffstat (limited to 'lcmodule/customer_config/custom_command_ids_h.xsl')
-rw-r--r--lcmodule/customer_config/custom_command_ids_h.xsl45
1 files changed, 45 insertions, 0 deletions
diff --git a/lcmodule/customer_config/custom_command_ids_h.xsl b/lcmodule/customer_config/custom_command_ids_h.xsl
new file mode 100644
index 0000000..e5efe55
--- /dev/null
+++ b/lcmodule/customer_config/custom_command_ids_h.xsl
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+* Copyright (C) ST-Ericsson SA 2011
+* License terms: 3-clause BSD license
+-->
+<stylesheet xmlns="http://www.w3.org/1999/XSL/Transform" version="2.0">
+
+<import href="custom_common.xsl"/>
+
+<output method="text" indent="no"/>
+<strip-space elements="*"/>
+<param name="target" />
+
+<template match="/commandspec">/* $Copyright$ */
+/* NOTE: This is an automatically generated file. DO NOT EDIT! */
+
+#ifndef _CUSTOM_COMMAND_IDS_H
+#define _CUSTOM_COMMAND_IDS_H
+#include "t_basicdefinitions.h"
+
+<!--
+typedef enum {
+<apply-templates select="group/command" mode="id"/>} CustomCommandId_e;
+-->
+
+<template match="group" mode="id">
+ <text> </text><call-template name="groupid" /> = <choose> <when test="@number&lt;10"> <value-of select="substring-after(@number, '0')" /> </when> <otherwise> <value-of select="@number"/> </otherwise> </choose>, /**&lt; <value-of select="@name" /> */
+</template>
+
+<template match="group[last()]" mode="id">
+ <text> </text><call-template name="groupid" /> = <choose> <when test="@number&lt;10"> <value-of select="substring-after(@number, '0')" /> </when> <otherwise> <value-of select="@number"/> </otherwise> </choose> /**&lt; <value-of select="@name" /> */
+</template>
+
+<template match="command" mode="id">
+ <text> </text><call-template name="commandid" /> = <value-of select="@number" />, /**&lt; <value-of select="@name" /> */
+</template>
+
+<template match="group[last()]/command[last()]" mode="id">
+ <text> </text><call-template name="commandid" /> = <value-of select="@number" /> /**&lt; <value-of select="@name" /> */
+</template>
+
+#endif /* _CUSTOM_COMMAND_IDS_H */
+</template>
+
+</stylesheet>