2 Copyright 2015, 2016, 2017 IoT.bzh
4 author: José Bollo <jose.bollo@iot.bzh>
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
20 struct wgt_desc_icon {
21 struct wgt_desc_icon *next;
27 struct wgt_desc_param {
28 struct wgt_desc_param *next;
33 struct wgt_desc_feature {
34 struct wgt_desc_feature *next;
37 struct wgt_desc_param *params;
40 struct wgt_desc_preference {
41 struct wgt_desc_preference *next;
67 char *content_encoding;
68 struct wgt_desc_icon *icons;
69 struct wgt_desc_feature *features;
70 struct wgt_desc_preference *preferences;
75 extern struct wgt_info *wgt_info_create(struct wgt *wgt, int icons, int features, int preferences);
76 extern struct wgt_info *wgt_info_createat(int dirfd, const char *pathname, int icons, int features, int preferences);
77 extern const struct wgt_desc *wgt_info_desc(struct wgt_info *ifo);
78 extern struct wgt *wgt_info_wgt(struct wgt_info *ifo);
79 extern void wgt_info_addref(struct wgt_info *ifo);
80 extern void wgt_info_unref(struct wgt_info *ifo);
81 extern void wgt_info_dump(struct wgt_info *ifo, int fd, const char *prefix);
82 extern const struct wgt_desc_feature *wgt_info_feature(struct wgt_info *ifo, const char *name);
83 extern const char *wgt_info_param(const struct wgt_desc_feature *feature, const char *name);