]> git.ozlabs.org Git - petitboot/blobdiff - ui/common/ui-system.h
ui: callback & boot actions: kexec -> boot
[petitboot] / ui / common / ui-system.h
index ca5edb4d8e60210ebfdee0d736de08641d159015..bf4f4e9e115a8de9efdcbf567306275f41cba776 100644 (file)
 #if !defined(_PB_UI_SYSTEM_H)
 #define _PB_UI_SYSTEM_H
 
-#include "pb-protocol/pb-protocol.h"
+#include <stdint.h>
+
 #include "system/system.h"
+#include "types/types.h"
 #include "ui/common/timer.h"
 
 #include <signal.h>
 
-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);
@@ -44,7 +47,7 @@ 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 */
        const struct device *dev;