]> git.ozlabs.org Git - petitboot/blob - discover/boot.h
discover: Allocate contexts with talloc_zero
[petitboot] / discover / boot.h
1 #ifndef _BOOT_H
2 #define _BOOT_H
3
4 struct boot_option;
5 struct boot_command;
6
7 typedef void (*boot_status_fn)(void *arg, struct boot_status *);
8
9 struct boot_task *boot(void *ctx, struct discover_boot_option *opt,
10                 struct boot_command *cmd, int dry_run,
11                 boot_status_fn status_fn, void *status_arg);
12
13 void boot_cancel(struct boot_task *task);
14 #endif /* _BOOT_H */