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 <!-- end choose STRING-->
68 <xsl:when test="../../@type='int'">
69 <!-- begin choose INT-->
71 <xsl:when test="./@type='init'">
72 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>();<xsl:text>
</xsl:text>
75 <xsl:when test="./@type='destroy'">
76 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>();<xsl:text>
</xsl:text>
79 <xsl:when test="./@type='get'">
80 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>(char* key);<xsl:text>
</xsl:text>
83 <xsl:when test="./@type='set'">
84 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>(char* key, int value);<xsl:text>
</xsl:text>
85 <xsl:text>
</xsl:text><xsl:text>
</xsl:text>
88 <!-- end choose INT -->
90 <xsl:when test="../../@type='bool'">
91 <!-- begin choose BOOL -->
93 <xsl:when test="./@type='init'">
94 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>();<xsl:text>
</xsl:text>
97 <xsl:when test="./@type='destroy'">
98 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>();<xsl:text>
</xsl:text>
101 <xsl:when test="./@type='get'">
102 bool <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>(char* key);<xsl:text>
</xsl:text>
105 <xsl:when test="./@type='set'">
106 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>(char* key, bool value);<xsl:text>
</xsl:text>
107 <xsl:text>
</xsl:text><xsl:text>
</xsl:text>
110 <!-- end choose BOOL -->
113 <xsl:when test="../../@type='float'">
114 <!-- begin choose FLOAT -->
116 <xsl:when test="./@type='init'">
117 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>();<xsl:text>
</xsl:text>
120 <xsl:when test="./@type='destroy'">
121 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>();<xsl:text>
</xsl:text>
124 <xsl:when test="./@type='get'">
125 float <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>(char* key);<xsl:text>
</xsl:text>
128 <xsl:when test="./@type='set'">
129 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>(char* key, float value);<xsl:text>
</xsl:text>
130 <xsl:text>
</xsl:text><xsl:text>
</xsl:text>
133 <!-- end choose FLOAT -->
136 <xsl:when test="../../@type='list'">
137 <!-- begin choose LIST -->
139 <xsl:when test="./@type='init'">
140 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>();<xsl:text>
</xsl:text>
143 <xsl:when test="./@type='destroy'">
144 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>();<xsl:text>
</xsl:text>
147 <xsl:when test="./@type='get'">
148 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>
151 <!-- <xsl:when test="./@type='set'">
152 int <xsl:value-of select="../../@name"/>_<xsl:value-of select="./@type"/>(char* key, float value);<xsl:text>
</xsl:text>
153 <xsl:text>
</xsl:text><xsl:text>
</xsl:text>
156 <!-- end choose LIST -->