summaryrefslogtreecommitdiffstats
path: root/discover/network.h
blob: e5e05d5f8081ff3047cf7e7655318215c082483c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef NETWORK_H
#define NETWORK_H

struct network;
struct device_handler;
struct discover_device;
struct waitset;

struct network *network_init(struct device_handler *handler,
		struct waitset *waitset, bool dry_run);
int network_shutdown(struct network *network);

void network_register_device(struct network *network,
		struct discover_device *dev);
void network_unregister_device(struct network *network,
		struct discover_device *dev);

uint8_t *find_mac_by_name(void *ctx, struct network *network,
		const char *name);

#endif /* NETWORK_H */

OpenPOWER on IntegriCloud