]> git.ozlabs.org Git - petitboot/blob - discover/network.h
discover/status: Add status messages for payload download results
[petitboot] / discover / network.h
1 #ifndef NETWORK_H
2 #define NETWORK_H
3
4 struct network;
5 struct device_handler;
6 struct discover_device;
7 struct waitset;
8
9 struct network *network_init(struct device_handler *handler,
10                 struct waitset *waitset, bool dry_run);
11 int network_shutdown(struct network *network);
12
13 void network_register_device(struct network *network,
14                 struct discover_device *dev);
15 void network_unregister_device(struct network *network,
16                 struct discover_device *dev);
17
18 uint8_t *find_mac_by_name(void *ctx, struct network *network,
19                 const char *name);
20
21 #endif /* NETWORK_H */
22