]> git.ozlabs.org Git - petitboot/blob - test/parser/handler.c
lib: Move config structure defitinitions to types.h
[petitboot] / test / parser / handler.c
1
2 #include <assert.h>
3
4 #include <talloc/talloc.h>
5 #include <types/types.h>
6
7 #include "device-handler.h"
8
9 typedef void (*boot_status_fn)(void *arg, struct boot_status *);
10
11 void discover_server_notify_device_add(struct discover_server *server,
12                 struct device *device)
13 {
14         (void)server;
15         (void)device;
16 }
17
18 void discover_server_notify_boot_option_add(struct discover_server *server,
19                 struct boot_option *option)
20 {
21         (void)server;
22         (void)option;
23 }
24
25 void discover_server_notify_device_remove(struct discover_server *server,
26                 struct device *device)
27 {
28         (void)server;
29         (void)device;
30 }
31
32 void discover_server_notify_boot_status(struct discover_server *server,
33                 struct boot_status *status)
34 {
35         (void)server;
36         (void)status;
37 }
38
39 void parser_init(void)
40 {
41 }
42
43 void iterate_parsers(struct discover_context *ctx)
44 {
45         (void)ctx;
46         assert(false);
47 }
48
49 struct boot_task *boot(void *ctx, struct discover_boot_option *opt,
50                 struct boot_command *cmd, int dry_run,
51                 boot_status_fn status_fn, void *status_arg)
52 {
53         (void)ctx;
54         (void)opt;
55         (void)cmd;
56         (void)dry_run;
57         (void)status_fn;
58         (void)status_arg;
59         assert(false);
60 }
61
62 void boot_cancel(struct boot_task *task)
63 {
64         (void)task;
65 }