4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: MyoungJun Park <email at samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
24 #include "config_table.h"
25 #include "config_manager.h"
27 char *get_complex_string_plugin_path()
29 return "/usr/lib/libplugin1.so";
32 char *get_complex_string_get(char *key)
34 PluginTizenConfig *(*fn) (int *);
36 fn = config_manager(get_complex_string_plugin_path(),
37 "get_plugin_complex_object");
38 char *val = config_manager_get(fn, key);
40 config_manager_close();
44 char *get_simple_text_plugin_path()
46 return "/usr/lib/libplugin1.so";
49 char *get_simple_text_get(char *key)
51 PluginTizenConfig *(*fn) (int *);
53 fn = config_manager(get_simple_text_plugin_path(),
54 "get_plugin_simple_object");
55 char *val = config_manager_get(fn, key);
57 config_manager_close();
61 char *get_language_list_version_plugin_path()
63 return "/usr/lib/libhelloworld_plugin.so";
66 int get_language_list_version_get_list(char *key, void (*tcf_iterator) (int,
67 void *, void *), void *data)
69 PluginTizenConfig *(*fn) (int *);
71 fn = config_manager(get_language_list_version_plugin_path(),
72 "get_plugin_langlist_object");
73 int val = config_manager_get_list(fn, key, tcf_iterator, data);
75 config_manager_close();
79 char *get_list_version_plugin_path()
81 return "/usr/lib/libhelloworld_plugin.so";
84 int get_list_version_get_list(char *key, void (*tcf_iterator) (int, void *,
87 PluginTizenConfig *(*fn) (int *);
89 fn = config_manager(get_list_version_plugin_path(),
90 "get_plugin_hellolist_object");
91 int val = config_manager_get_list(fn, key, tcf_iterator, data);
93 config_manager_close();
97 char *get_float_version_plugin_path()
99 return "/usr/lib/libhelloworld_plugin.so";
102 float get_float_version_get(char *key)
104 PluginTizenConfig *(*fn) (int *);
106 fn = config_manager(get_float_version_plugin_path(),
107 "get_plugin_hellofloat_object");
108 float val = config_manager_get_float(fn, key);
110 config_manager_close();
114 int get_float_version_set(char *key, float value)
116 PluginTizenConfig *(*fn) (int *);
118 fn = config_manager(get_float_version_plugin_path(),
119 "get_plugin_hellofloat_object");
120 config_manager_set_float(fn, key, value);
121 config_manager_close();
125 char *get_bool_version_plugin_path()
127 return "/usr/lib/libhelloworld_plugin.so";
130 bool get_bool_version_get(char *key)
132 PluginTizenConfig *(*fn) (int *);
134 fn = config_manager(get_bool_version_plugin_path(),
135 "get_plugin_hellobool_object");
136 bool val = config_manager_get_bool(fn, key);
138 config_manager_close();
142 int get_bool_version_set(char *key, bool value)
144 PluginTizenConfig *(*fn) (int *);
146 fn = config_manager(get_bool_version_plugin_path(),
147 "get_plugin_hellobool_object");
148 config_manager_set_bool(fn, key, value);
149 config_manager_close();
153 char *get_int_version_plugin_path()
155 return "/usr/lib/libhelloworld_plugin.so";
158 int get_int_version_get(char *key)
160 PluginTizenConfig *(*fn) (int *);
162 fn = config_manager(get_int_version_plugin_path(),
163 "get_plugin_helloint_object");
164 int val = config_manager_get_int(fn, key);
166 config_manager_close();
170 int get_int_version_set(char *key, int value)
172 PluginTizenConfig *(*fn) (int *);
174 fn = config_manager(get_int_version_plugin_path(),
175 "get_plugin_helloint_object");
176 config_manager_set_int(fn, key, value);
177 config_manager_close();
181 char *get_sw_version_plugin_path()
183 return "/usr/lib/libplugin2.so";
186 char *get_sw_version_get(char *key)
188 PluginTizenConfig *(*fn) (int *);
190 fn = config_manager(get_sw_version_plugin_path(), "get_plugin_ini_object");
191 char *val = config_manager_get(fn, key);
193 config_manager_close();
197 char *get_info_from_xml_plugin_path()
199 return "/usr/lib/libplugin2.so";
202 char *get_info_from_xml_get(char *key)
204 PluginTizenConfig *(*fn) (int *);
206 fn = config_manager(get_info_from_xml_plugin_path(),
207 "get_plugin_xml_object");
208 char *val = config_manager_get(fn, key);
210 config_manager_close();
214 int get_info_from_xml_set(char *key, char *value)
216 PluginTizenConfig *(*fn) (int *);
218 fn = config_manager(get_info_from_xml_plugin_path(),
219 "get_plugin_xml_object");
220 config_manager_set(fn, key, value);
221 config_manager_close();
225 char *get_info_from_dbus_plugin_path()
227 return "/usr/lib/libplugin2.so";
230 char *get_info_from_dbus_get(char *key)
232 PluginTizenConfig *(*fn) (int *);
234 fn = config_manager(get_info_from_dbus_plugin_path(),
235 "get_plugin_dbus_object");
236 char *val = config_manager_get(fn, key);
238 config_manager_close();
242 int get_info_from_dbus_set(char *key, char *value)
244 PluginTizenConfig *(*fn) (int *);
246 fn = config_manager(get_info_from_dbus_plugin_path(),
247 "get_plugin_dbus_object");
248 config_manager_set(fn, key, value);
249 config_manager_close();