X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=ui%2Fcommon%2Fui-system.h;h=82f630ea62397a6503bcbefe12bbfc83af02057d;hp=2dc37a30d8506cf722734d57b352b4afd8d81b4c;hb=6b842bb2559116a949c6a569ac39f5c56ebc1be1;hpb=28b939a43107cfe5438f3b36bd175f1b9aa138ee;ds=sidebyside diff --git a/ui/common/ui-system.h b/ui/common/ui-system.h index 2dc37a3..82f630e 100644 --- a/ui/common/ui-system.h +++ b/ui/common/ui-system.h @@ -19,19 +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_run_kexec(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); @@ -44,13 +47,11 @@ static inline uint32_t pb_opt_hash(const struct device *dev, struct pb_opt_data { const char *name; - struct pb_kexec_data *kd; + struct pb_boot_data *bd; /* optional data */ - union { - const struct device *dev; - const struct boot_option *opt; - }; + const struct device *dev; + const struct boot_option *opt; uint32_t opt_hash; };