X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=ui%2Fcommon%2Fui-system.h;h=bf4f4e9e115a8de9efdcbf567306275f41cba776;hp=fc402aefb24ce87f7dbe12582e72c31f957c2b7f;hb=1b0b59295d0500764c5096753f7cd11bf3ab5df4;hpb=4414db4f4442009008ef15658bd4df2349c62ec7 diff --git a/ui/common/ui-system.h b/ui/common/ui-system.h index fc402ae..bf4f4e9 100644 --- a/ui/common/ui-system.h +++ b/ui/common/ui-system.h @@ -19,16 +19,22 @@ #if !defined(_PB_UI_SYSTEM_H) #define _PB_UI_SYSTEM_H -#include "pb-protocol/pb-protocol.h" +#include + #include "system/system.h" +#include "types/types.h" +#include "ui/common/timer.h" + +#include -struct pb_kexec_data { +struct pb_boot_data { char *image; char *initrd; char *args; }; -int pb_run_kexec(const struct pb_kexec_data *kd); +int pb_boot(const struct pb_boot_data *bd, int dry_run); +int pb_start_daemon(void); unsigned int pb_elf_hash(const char *str); unsigned int pb_cat_hash(const char *a, const char *b); @@ -39,4 +45,20 @@ 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_boot_data *bd; + + /* optional data */ + 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