]> git.ozlabs.org Git - petitboot/blobdiff - ui/twin/pbt-client.h
ui: callback & boot actions: kexec -> boot
[petitboot] / ui / twin / pbt-client.h
index 119bc9465065ab8cf2852574b7353c9ced8c4070..7e74e4ec5cf822acecc6e6b0db84c96fb825439d 100644 (file)
@@ -42,18 +42,20 @@ void pbt_frame_status_printf(struct pbt_frame *frame, const char *format, ...);
 
 struct pbt_client {
        const char *sig;
+       int dry_run;
        struct pb_signal_data signal_data;
        void *client_data;
-       int (*kexec_cb)(struct pbt_client *pbt_client, struct pb_opt_data *pod);
+       int (*boot_cb)(struct pbt_client *pbt_client, struct pb_opt_data *pod);
 
        struct pbt_frame frame;
        struct discover_client *discover_client;
+       struct waitset *waitset;
 };
 
 struct pbt_client *pbt_client_init(enum pbt_twin_backend backend,
        unsigned int width, unsigned int height,
-       int (*kexec_cb)(struct pbt_client *, struct pb_opt_data *),
-       int start_deamon);
+       int (*boot_cb)(struct pbt_client *, struct pb_opt_data *),
+       int start_deamon, int dry_run);
 void pbt_client_destroy(struct pbt_client *client);
 void pbt_client_resize(struct pbt_client *client);