summaryrefslogtreecommitdiff
path: root/source/config/commands_impl_h.xsl
blob: afbe846b5722b857525dbb0cd38c3aa8b999be17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?xml version="1.0" encoding="utf-8"?>
<!--
* Copyright (C) ST-Ericsson SA 2011
* License terms: 3-clause BSD license
-->
<stylesheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform" >

<import href="common.xsl"/>

<output method="text"/>
<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_IMPL_H_
#define _COMMANDS_IMPL_H_

#include &quot;commands.h&quot;
#include &quot;command_ids.h&quot;
#include &quot;LCDriver.h&quot;
#include &quot;LcmInterface.h&quot;
#include &quot;error_codes.h&quot;

class LoaderRpcInterfaceImpl : public LoaderRpcInterface 
{
public:
	LoaderRpcInterfaceImpl(CLCDriverMethods* lcdMethods, CmdResult* CmdResult, LcmInterface* LcmInterface):
    LoaderRpcInterface(lcdMethods, CmdResult, LcmInterface) {}
	~LoaderRpcInterfaceImpl() {}

	ErrorCode_e	Do_CEH_Callback(CommandData_t * pCmdData);
<apply-templates select="group" />
};

#endif /* _COMMANDS_IMPL_H_ */
</template>

<template match="group/documentation">
<if test="../interface/@name != 'ADbg'">
  /*
   * <value-of select="normalize-space(.)"/>
   */
</if>
</template>

<template match="group/command">
  <if test="(contains(@source, &apos;PC&apos;)) and (@ADbg!=&apos;true&apos;)">
    <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, &apos;Impl&apos;)" />
			<with-param name="ref" select="concat(&apos;DoRPC_&apos;, ../interface[@type=&apos;loader&apos;]/@name, &apos;_&apos;, ./interface[@type=&apos;loader&apos;]/@name)" />
			<with-param name="direction" select="input" />
			<with-param name="source" select="&apos;PC&apos;" />
		</call-template>
	</if>
  <if test="(contains(@source, &apos;ME&apos;)) and (@ADbg!=&apos;true&apos;)">
    <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, &apos;Impl&apos;)" />
      <with-param name="ref" select="concat(&apos;DoneRPC_&apos;, ../interface[@type=&apos;loader&apos;]/@name, &apos;_&apos;, ./interface[@type=&apos;loader&apos;]/@name)" />
      <with-param name="direction" select="output" />
      <with-param name="source" select="&apos;ME&apos;" />
    </call-template>
  </if>
</template>

</stylesheet>