From: Geoff Levand Date: Mon, 31 Oct 2011 03:58:04 +0000 (-0700) Subject: Add data structs to ui-system X-Git-Tag: v1.0.0~820 X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=28b939a43107cfe5438f3b36bd175f1b9aa138ee;hp=dd1b59120f585b2c27d30778e8d81467221a733c;p=petitboot Add data structs to ui-system --- 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