diff options
author | Geoff Levand <geoff@infradead.org> | 2011-10-30 20:58:04 -0700 |
---|---|---|
committer | Geoff Levand <geoff@infradead.org> | 2011-10-30 20:58:04 -0700 |
commit | 28b939a43107cfe5438f3b36bd175f1b9aa138ee (patch) | |
tree | 527c2208dd2d076e6c30db47e051240d61b94094 /ui | |
parent | dd1b59120f585b2c27d30778e8d81467221a733c (diff) | |
download | petitboot-28b939a43107cfe5438f3b36bd175f1b9aa138ee.zip petitboot-28b939a43107cfe5438f3b36bd175f1b9aa138ee.tar.gz |
Add data structs to ui-system
Diffstat (limited to 'ui')
-rw-r--r-- | ui/common/ui-system.h | 21 |
1 files changed, 21 insertions, 0 deletions
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 <signal.h> 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 |