]> git.ozlabs.org Git - petitboot/blobdiff - ui/twin/pbt-client.h
Add UI option --dry-run
[petitboot] / ui / twin / pbt-client.h
index 119bc9465065ab8cf2852574b7353c9ced8c4070..014d5b2dc5f94f8b103da90d21eb65515f33a83c 100644 (file)
@@ -42,6 +42,7 @@ void pbt_frame_status_printf(struct pbt_frame *frame, const char *format, ...);
 
 struct pbt_client {
        const char *sig;
 
 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);
        struct pb_signal_data signal_data;
        void *client_data;
        int (*kexec_cb)(struct pbt_client *pbt_client, struct pb_opt_data *pod);
@@ -53,7 +54,7 @@ struct pbt_client {
 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 *),
 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 start_deamon, int dry_run);
 void pbt_client_destroy(struct pbt_client *client);
 void pbt_client_resize(struct pbt_client *client);
 
 void pbt_client_destroy(struct pbt_client *client);
 void pbt_client_resize(struct pbt_client *client);