]> git.ozlabs.org Git - petitboot/blob - test/parser/handler.c
discover/paths: Add stdout callback parameter for load_url_async()
[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 discover_server_notify_config(struct discover_server *server,
42                 struct config *config)
43 {
44         (void)server;
45         (void)config;
46 }
47
48 void system_info_register_blockdev(const char *name, const char *uuid,
49                 const char *mountpoint)
50 {
51         (void)name;
52         (void)uuid;
53         (void)mountpoint;
54 }
55
56 void network_register_device(struct network *network,
57                 struct discover_device *dev)
58 {
59         (void)network;
60         (void)dev;
61 }
62
63 void network_unregister_device(struct network *network,
64                 struct discover_device *dev)
65 {
66         (void)network;
67         (void)dev;
68 }
69
70 void parser_init(void)
71 {
72 }
73
74 void iterate_parsers(struct discover_context *ctx)
75 {
76         (void)ctx;
77         assert(false);
78 }
79
80 struct boot_task *boot(void *ctx, struct discover_boot_option *opt,
81                 struct boot_command *cmd, int dry_run,
82                 boot_status_fn status_fn, void *status_arg)
83 {
84         (void)ctx;
85         (void)opt;
86         (void)cmd;
87         (void)dry_run;
88         (void)status_fn;
89         (void)status_arg;
90         assert(false);
91 }
92
93 void boot_cancel(struct boot_task *task)
94 {
95         (void)task;
96 }