summaryrefslogtreecommitdiffstats
path: root/src/wgt-info.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2015-12-10 17:33:06 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2015-12-10 17:33:06 +0100
commit34fc3d39e4038b72513db2fc35077251f1f15d01 (patch)
treeb87ad0a5fd2f5e5826dd2a3b3cc442c514f49ad4 /src/wgt-info.h
parent6533591ca2d5590a21c5f94fca2696e4ea643712 (diff)
improve opacity and fix bug
Change-Id: I18a24d83fe7c434f1ef22d33cec5f5d443d53706
Diffstat (limited to 'src/wgt-info.h')
-rw-r--r--src/wgt-info.h34
1 files changed, 18 insertions, 16 deletions
diff --git a/src/wgt-info.h b/src/wgt-info.h
index 57f8d82..3cb6a5c 100644
--- a/src/wgt-info.h
+++ b/src/wgt-info.h
@@ -15,34 +15,34 @@
*/
-struct wgt_info_icon {
- struct wgt_info_icon *next;
+struct wgt_desc_icon {
+ struct wgt_desc_icon *next;
char *src;
int width;
int height;
};
-struct wgt_info_param {
- struct wgt_info_param *next;
+struct wgt_desc_param {
+ struct wgt_desc_param *next;
char *name;
char *value;
};
-struct wgt_info_feature {
- struct wgt_info_feature *next;
+struct wgt_desc_feature {
+ struct wgt_desc_feature *next;
char *name;
int required;
- struct wgt_info_param *params;
+ struct wgt_desc_param *params;
};
-struct wgt_info_preference {
- struct wgt_info_preference *next;
+struct wgt_desc_preference {
+ struct wgt_desc_preference *next;
char *name;
char *value;
int readonly;
};
-struct wgt_info {
+struct wgt_desc {
int refcount;
char *id;
char *version;
@@ -61,14 +61,16 @@ struct wgt_info {
char *content_src;
char *content_type;
char *content_encoding;
- struct wgt_info_icon *icons;
- struct wgt_info_feature *features;
- struct wgt_info_preference *preferences;
+ struct wgt_desc_icon *icons;
+ struct wgt_desc_feature *features;
+ struct wgt_desc_preference *preferences;
};
struct wgt;
+struct wgt_info;
extern struct wgt_info *wgt_info_get(struct wgt *wgt, int icons, int features, int preferences);
-extern void wgt_info_addref(struct wgt_info *info);
-extern void wgt_info_unref(struct wgt_info *info);
-extern void wgt_info_dump(struct wgt_info *info, int fd, const char *prefix);
+extern const struct wgt_desc *wgt_info_desc(struct wgt_info *ifo);
+extern void wgt_info_addref(struct wgt_info *ifo);
+extern void wgt_info_unref(struct wgt_info *ifo);
+extern void wgt_info_dump(struct wgt_info *ifo, int fd, const char *prefix);