summaryrefslogtreecommitdiff
path: root/source/config/commands_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 /source/config/commands_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 'source/config/commands_h.xsl')
-rw-r--r--source/config/commands_h.xsl68
1 files changed, 68 insertions, 0 deletions
diff --git a/source/config/commands_h.xsl b/source/config/commands_h.xsl
new file mode 100644
index 0000000..36a2356
--- /dev/null
+++ b/source/config/commands_h.xsl
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+* Copyright (C) ST-Ericsson SA 2011
+* License terms: 3-clause BSD license
+-->
+<stylesheet version="2.0" xmlns="http://www.w3.org/1999/XSL/Transform">
+
+<import href="common.xsl"/>
+
+<output method="text" indent="no"/>
+<strip-space elements="*"/>
+<param name="target" />
+
+<template match="/commandspec">/* $Copyright ST-Ericsson 2010$ */
+/* NOTE: This is an automatically generated file. DO NOT EDIT! */
+
+#ifndef _COMMANDS_H_
+#define _COMMANDS_H_
+
+#include &quot;LCDriver.h&quot;
+#include &quot;LcmInterface.h&quot;
+#include &quot;t_basicdefinitions.h&quot;
+#include &quot;CmdResult.h&quot;
+
+class CLCDriverMethods;
+
+class LoaderRpcInterface
+{
+public:
+ LoaderRpcInterface(CLCDriverMethods* lcdMethods, CmdResult* cmdResult, LcmInterface* lcmInterface):
+ cmdResult_(cmdResult),
+ lcmInterface_(lcmInterface),
+ lcdMethods_(lcdMethods)
+ {
+ }
+
+ virtual ~LoaderRpcInterface()
+ {
+ }
+<apply-templates select="group"/>
+protected:
+ CLCDriverMethods* lcdMethods_;
+ CmdResult* cmdResult_;
+ LcmInterface* lcmInterface_;
+};
+
+#endif /* _COMMANDS_H_ */
+</template>
+
+<template match="group/command">
+<if test="(contains(@source, &apos;ME&apos;)) and (@ADbg!='true')">
+<call-template name="prototype">
+ <with-param name="name" select="concat(&apos;DoneRPC_&apos;, ../interface[@type=&apos;loader&apos;]/@name, &apos;_&apos;, ./interface[@type=&apos;loader&apos;]/@name)"/>
+ <with-param name="ref" select="concat(&apos;DoRPC_&apos;, ../interface[@type=&apos;loader&apos;]/@name, &apos;_&apos;, ./interface[@type=&apos;loader&apos;]/@name, &apos;Impl&apos;)"/>
+ <with-param name="direction" select="input"/>
+ <with-param name="source" select="&apos;ME&apos;"/>
+</call-template>
+</if>
+<if test="(contains(@source, &apos;PC&apos;)) and (@ADbg!='true')">
+<call-template name="prototype">
+ <with-param name="name" select="concat(&apos;DoRPC_&apos;, ../interface[@type=&apos;loader&apos;]/@name, &apos;_&apos;, ./interface[@type=&apos;loader&apos;]/@name)"/>
+ <with-param name="ref" select="concat(&apos;DoneRPC_&apos;, ../interface[@type=&apos;loader&apos;]/@name, &apos;_&apos;, ./interface[@type=&apos;loader&apos;]/@name, &apos;Impl&apos;)"/>
+ <with-param name="direction" select="output"/>
+ <with-param name="source" select="&apos;PC&apos;"/>
+</call-template>
+</if>
+</template>
+</stylesheet>