diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-07-20 15:35:22 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-07-26 08:31:35 +0200 |
commit | ff6bc088015606f8b272c694c2a622a006d702e3 (patch) | |
tree | 0a16fefca7f2fb6a86fb3feb010e4138e3c2fe48 /include/blspec.h | |
parent | 0d054f330377d64e994b93c842f447b4a00b3169 (diff) | |
download | barebox-ff6bc088015606f8b272c694c2a622a006d702e3.tar.gz barebox-ff6bc088015606f8b272c694c2a622a006d702e3.tar.xz |
bootentries: Add title/description
We currently have to special case blspec entries vs. boot scripts
in the common boot code since we want to print different informations
about them. This adds a 'title' and 'description' which can be filled
in with different information by bootscripts and blspec entries and
so we get rid of the special handling.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/blspec.h')
-rw-r--r-- | include/blspec.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/blspec.h b/include/blspec.h index aced246e85..c956f0d940 100644 --- a/include/blspec.h +++ b/include/blspec.h @@ -12,6 +12,8 @@ struct bootentries { struct bootentry { struct list_head list; struct menu_entry me; + char *title; + char *description; }; struct blspec_entry { @@ -58,6 +60,8 @@ static inline void blspec_entry_free(struct blspec_entry *entry) list_del(&entry->entry.list); of_delete_node(entry->node); free(entry->entry.me.display); + free(entry->entry.title); + free(entry->entry.description); free(entry->scriptpath); free(entry->configpath); free(entry->rootpath); |