]> git.ozlabs.org Git - petitboot/blobdiff - ui/common/ui-system.h
ui/common/url: move pb_scheme_info array to file scope
[petitboot] / ui / common / ui-system.h
index fc402aefb24ce87f7dbe12582e72c31f957c2b7f..63d1a92d2374166cfb51ffbfa64f5a487adb3869 100644 (file)
@@ -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;
@@ -28,7 +31,8 @@ struct pb_kexec_data {
        char *args;
 };
 
-int pb_run_kexec(const struct pb_kexec_data *kd);
+int pb_run_kexec(const struct pb_kexec_data *kd, 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 +43,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_kexec_data *kd;
+
+       /* 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