From 28b939a43107cfe5438f3b36bd175f1b9aa138ee Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Sun, 30 Oct 2011 20:58:04 -0700 Subject: Add data structs to ui-system --- ui/common/ui-system.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'ui/common') diff --git a/ui/common/ui-system.h b/ui/common/ui-system.h index fc402ae..2dc37a3 100644 --- a/ui/common/ui-system.h +++ b/ui/common/ui-system.h @@ -21,6 +21,9 @@ #include "pb-protocol/pb-protocol.h" #include "system/system.h" +#include "ui/common/timer.h" + +#include struct pb_kexec_data { char *image; @@ -39,4 +42,22 @@ static inline uint32_t pb_opt_hash(const struct device *dev, return pb_cat_hash(dev->name, opt->name); } +struct pb_opt_data { + const char *name; + struct pb_kexec_data *kd; + + /* optional data */ + union { + const struct device *dev; + const struct boot_option *opt; + }; + uint32_t opt_hash; +}; + +struct pb_signal_data { + sig_atomic_t abort; + sig_atomic_t resize; + struct ui_timer timer; +}; + #endif -- cgit v1.2.1