X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwgt-info.h;h=be1d738c79f6b5be4e175d5f8186e50c7946d591;hb=3a6e947bef1b2942e24d2fdee1a76dbf3305b508;hp=3cb6a5ca5594142d82fa019f19dc266474d88aad;hpb=34fc3d39e4038b72513db2fc35077251f1f15d01;p=src%2Fapp-framework-main.git diff --git a/src/wgt-info.h b/src/wgt-info.h index 3cb6a5c..be1d738 100644 --- a/src/wgt-info.h +++ b/src/wgt-info.h @@ -1,5 +1,7 @@ /* - Copyright 2015 IoT.bzh + Copyright 2015, 2016, 2017 IoT.bzh + + author: José Bollo Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -46,6 +48,8 @@ struct wgt_desc { int refcount; char *id; char *version; + char *ver; + char *idaver; int width; int height; char *viewmodes; @@ -68,9 +72,13 @@ struct wgt_desc { struct wgt; struct wgt_info; -extern struct wgt_info *wgt_info_get(struct wgt *wgt, int icons, int features, int preferences); +extern struct wgt_info *wgt_info_create(struct wgt *wgt, int icons, int features, int preferences); +extern struct wgt_info *wgt_info_createat(int dirfd, const char *pathname, int icons, int features, int preferences); extern const struct wgt_desc *wgt_info_desc(struct wgt_info *ifo); +extern struct wgt *wgt_info_wgt(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); +extern const struct wgt_desc_feature *wgt_info_feature(struct wgt_info *ifo, const char *name); +extern const char *wgt_info_param(const struct wgt_desc_feature *feature, const char *name);