refactoring sources
[src/app-framework-main.git] / src / wgt.h
1 /*
2  Copyright 2015 IoT.bzh
3
4  Licensed under the Apache License, Version 2.0 (the "License");
5  you may not use this file except in compliance with the License.
6  You may obtain a copy of the License at
7
8      http://www.apache.org/licenses/LICENSE-2.0
9
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 */
16
17
18 #include <libxml/tree.h>
19 #include "config.h"
20
21
22 /**************************************************************/
23 /* from wgt-config-xml */
24
25 extern int confixml_open();
26 extern void confixml_close();
27 extern xmlNodePtr confixml_name();
28 extern xmlNodePtr confixml_description();
29 extern xmlNodePtr confixml_license();
30 extern xmlNodePtr confixml_author();
31 extern xmlNodePtr confixml_content();
32 extern xmlNodePtr confixml_icon(int width, int height);
33 extern xmlNodePtr confixml_first_feature();
34 extern xmlNodePtr confixml_next_feature(xmlNodePtr node);
35 extern xmlNodePtr confixml_first_preference();
36 extern xmlNodePtr confixml_next_preference(xmlNodePtr node);
37 extern xmlNodePtr confixml_first_icon();
38 extern xmlNodePtr confixml_next_icon(xmlNodePtr node);
39
40 /**************************************************************/
41 /* from wgt-locales */
42
43 extern void locales_reset();
44 extern int locales_add(const char *locstr);
45 extern int locales_score(const char *lang);
46 extern char *locales_locate_file(const char *filename);
47
48 /**************************************************************/
49 /* from wgt-rootdir */
50
51 extern int widget_set_rootdir(const char *pathname);
52 extern int widget_has(const char *filename);
53 extern int widget_open_read(const char *filename);
54
55 /**************************************************************/
56 /* from wgt-strings */
57
58 extern const char _config_xml_[];
59 extern const char _name_[];
60 extern const char _description_[];
61 extern const char _author_[];
62 extern const char _license_[];
63 extern const char _icon_[];
64 extern const char _content_[];
65 extern const char _feature_[];
66 extern const char _preference_[];
67 extern const char _width_[];
68 extern const char _height_[];
69