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