discover: Allow discover server to receive boot messages
[petitboot] / discover / discover-server.h
1 #ifndef _DISCOVER_SERVER_H
2 #define _DISCOVER_SERVER_H
3
4 #include <waiter/waiter.h>
5
6 struct discover_server;
7 struct device_handler;
8 struct device;
9
10 struct discover_server *discover_server_init(struct waitset *waitset);
11
12 void discover_server_destroy(struct discover_server *server);
13
14 void discover_server_set_device_source(struct discover_server *server,
15                 struct device_handler *handler);
16
17 void discover_server_notify_add(struct discover_server *server,
18                 struct device *device);
19 void discover_server_notify_remove(struct discover_server *server,
20                 struct device *device);
21 #endif /* _DISCOVER_SERVER_H */