]> git.ozlabs.org Git - petitboot/blob - test/parser/handler.c
ui/ncurses: Add help to boot editor screen
[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 system_info_register_blockdev(const char *name, const char *uuid,
47                 const char *mountpoint)
48 {
49         (void)name;
50         (void)uuid;
51         (void)mountpoint;
52 }
53
54 void parser_init(void)
55 {
56 }
57
58 void iterate_parsers(struct discover_context *ctx)
59 {
60         (void)ctx;
61         assert(false);
62 }
63
64 struct boot_task *boot(void *ctx, struct discover_boot_option *opt,
65                 struct boot_command *cmd, int dry_run,
66                 boot_status_fn status_fn, void *status_arg)
67 {
68         (void)ctx;
69         (void)opt;
70         (void)cmd;
71         (void)dry_run;
72         (void)status_fn;
73         (void)status_arg;
74         assert(false);
75 }
76
77 void boot_cancel(struct boot_task *task)
78 {
79         (void)task;
80 }