]> git.ozlabs.org Git - petitboot/blob - test/parser/handler.c
lib/system: Don't leak in pb_mkdir_recursive
[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 discover_server_notify_config(struct discover_server *server,
40                 struct config *config)
41 {
42         (void)server;
43         (void)config;
44 }
45
46 void parser_init(void)
47 {
48 }
49
50 void iterate_parsers(struct discover_context *ctx)
51 {
52         (void)ctx;
53         assert(false);
54 }
55
56 struct boot_task *boot(void *ctx, struct discover_boot_option *opt,
57                 struct boot_command *cmd, int dry_run,
58                 boot_status_fn status_fn, void *status_arg)
59 {
60         (void)ctx;
61         (void)opt;
62         (void)cmd;
63         (void)dry_run;
64         (void)status_fn;
65         (void)status_arg;
66         assert(false);
67 }
68
69 void boot_cancel(struct boot_task *task)
70 {
71         (void)task;
72 }