1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4 <xsl:output method="text" version="1.0" encoding="UTF-8" indent="yes"/>
5 <xsl:strip-space elements="*"/>
6 <xsl:template match="/">
10 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
12 * Contact: MyoungJun Park <email at samsung.com>
14 * Licensed under the Apache License, Version 2.0 (the "License");
15 * you may not use this file except in compliance with the License.
16 * You may obtain a copy of the License at
18 * http://www.apache.org/licenses/LICENSE-2.0
20 * Unless required by applicable law or agreed to in writing, software
21 * distributed under the License is distributed on an "AS IS" BASIS,
22 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23 * See the License for the specific language governing permissions and
24 * limitations under the License.
36 <xsl:apply-templates select="configlists/config"></xsl:apply-templates>
39 <xsl:template match="config">
40 char* <xsl:value-of select="./@name"/>_plugin_path();<xsl:text>
</xsl:text>
41 <xsl:apply-templates select="plugin/function"></xsl:apply-templates>
43 <xsl:template match="function">
46 <xsl:when test="../../@type='string'">
47 <!-- begin choose STRING-->
49 <xsl:when test="./@type='init'">
50 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>();<xsl:text>
</xsl:text>
53 <xsl:when test="./@type='destroy'">
54 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>();<xsl:text>
</xsl:text>
57 <xsl:when test="./@type='get'">
58 char* <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>(char* key);<xsl:text>
</xsl:text>
61 <xsl:when test="./@type='set'">
62 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>(char* key, char* value);<xsl:text>
</xsl:text>
63 <xsl:text>
</xsl:text><xsl:text>
</xsl:text>
66 <xsl:when test="./@type='list'">
67 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>(char* key, char* value);<xsl:text>
</xsl:text>
68 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>_list(char* key, void (*callback)(int,void* , void*), void* data);<xsl:text>
</xsl:text>
69 <xsl:text>
</xsl:text><xsl:text>
</xsl:text>
73 <!-- end choose STRING-->
75 <xsl:when test="../../@type='int'">
76 <!-- begin choose INT-->
78 <xsl:when test="./@type='init'">
79 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>();<xsl:text>
</xsl:text>
82 <xsl:when test="./@type='destroy'">
83 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>();<xsl:text>
</xsl:text>
86 <xsl:when test="./@type='get'">
87 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>(char* key);<xsl:text>
</xsl:text>
90 <xsl:when test="./@type='set'">
91 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>(char* key, int value);<xsl:text>
</xsl:text>
92 <xsl:text>
</xsl:text><xsl:text>
</xsl:text>
95 <!-- end choose INT -->
97 <xsl:when test="../../@type='bool'">
98 <!-- begin choose BOOL -->
100 <xsl:when test="./@type='init'">
101 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>();<xsl:text>
</xsl:text>
104 <xsl:when test="./@type='destroy'">
105 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>();<xsl:text>
</xsl:text>
108 <xsl:when test="./@type='get'">
109 bool <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>(char* key);<xsl:text>
</xsl:text>
112 <xsl:when test="./@type='set'">
113 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>(char* key, bool value);<xsl:text>
</xsl:text>
114 <xsl:text>
</xsl:text><xsl:text>
</xsl:text>
117 <!-- end choose BOOL -->
120 <xsl:when test="../../@type='float'">
121 <!-- begin choose FLOAT -->
123 <xsl:when test="./@type='init'">
124 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>();<xsl:text>
</xsl:text>
127 <xsl:when test="./@type='destroy'">
128 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>();<xsl:text>
</xsl:text>
131 <xsl:when test="./@type='get'">
132 float <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>(char* key);<xsl:text>
</xsl:text>
135 <xsl:when test="./@type='set'">
136 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>(char* key, float value);<xsl:text>
</xsl:text>
137 <xsl:text>
</xsl:text><xsl:text>
</xsl:text>
140 <!-- end choose FLOAT -->
144 <xsl:when test="../../@type='list'">
146 <xsl:when test="./@type='init'">
147 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>();<xsl:text>
</xsl:text>
150 <xsl:when test="./@type='destroy'">
151 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>();<xsl:text>
</xsl:text>
154 <xsl:when test="./@type='get'">
155 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>_list(char* key, void (*callback)(int,void* , void*), void* data);<xsl:text>
</xsl:text>
158 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>(char* key, float value);<xsl:text>
</xsl:text>
159 <xsl:text>
</xsl:text><xsl:text>
</xsl:text>