]> git.ozlabs.org Git - petitboot/blob - test/parser/handler.c
util/hooks: Don't update DT when ttyS* console active
[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 struct network;
10
11 typedef void (*boot_status_fn)(void *arg, struct status *);
12
13 void discover_server_notify_device_add(struct discover_server *server,
14                 struct device *device)
15 {
16         (void)server;
17         (void)device;
18 }
19
20 void discover_server_notify_boot_option_add(struct discover_server *server,
21                 struct boot_option *option)
22 {
23         (void)server;
24         (void)option;
25 }
26
27 void discover_server_notify_device_remove(struct discover_server *server,
28                 struct device *device)
29 {
30         (void)server;
31         (void)device;
32 }
33
34 void discover_server_notify_boot_status(struct discover_server *server,
35                 struct status *status)
36 {
37         (void)server;
38         (void)status;
39 }
40
41 void system_info_set_interface_address(unsigned int hwaddr_size,
42                 uint8_t *hwaddr, const char *address)
43 {
44         (void)hwaddr_size;
45         (void)hwaddr;
46         (void)address;
47 }
48
49 void discover_server_notify_config(struct discover_server *server,
50                 struct config *config)
51 {
52         (void)server;
53         (void)config;
54 }
55
56 void system_info_register_blockdev(const char *name, const char *uuid,
57                 const char *mountpoint)
58 {
59         (void)name;
60         (void)uuid;
61         (void)mountpoint;
62 }
63
64 void network_register_device(struct network *network,
65                 struct discover_device *dev)
66 {
67         (void)network;
68         (void)dev;
69 }
70
71 void network_unregister_device(struct network *network,
72                 struct discover_device *dev)
73 {
74         (void)network;
75         (void)dev;
76 }
77
78 void parser_init(void)
79 {
80 }
81
82 void iterate_parsers(struct discover_context *ctx)
83 {
84         (void)ctx;
85         assert(false);
86 }
87
88 struct boot_task *boot(void *ctx, struct discover_boot_option *opt,
89                 struct boot_command *cmd, int dry_run,
90                 boot_status_fn status_fn, void *status_arg)
91 {
92         (void)ctx;
93         (void)opt;
94         (void)cmd;
95         (void)dry_run;
96         (void)status_fn;
97         (void)status_arg;
98         assert(false);
99 }
100
101 void boot_cancel(struct boot_task *task)
102 {
103         (void)task;
104 }