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

#include <waiter/waiter.h>

struct discover_server;
struct device_handler;
struct boot_option;
struct device;

struct discover_server *discover_server_init(struct waitset *waitset);

void discover_server_destroy(struct discover_server *server);

void discover_server_set_device_source(struct discover_server *server,
		struct device_handler *handler);

void discover_server_notify_device_add(struct discover_server *server,
		struct device *device);
void discover_server_notify_boot_option_add(struct discover_server *server,
		struct boot_option *option);
void discover_server_notify_device_remove(struct discover_server *server,
		struct device *device);
#endif /* _DISCOVER_SERVER_H */
OpenPOWER on IntegriCloud