]> git.ozlabs.org Git - petitboot/blob - discover/discover-server.h
test/url: Add uncommitted data files
[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 boot_option;
9 struct device;
10
11 struct discover_server *discover_server_init(struct waitset *waitset);
12
13 void discover_server_destroy(struct discover_server *server);
14
15 void discover_server_set_device_source(struct discover_server *server,
16                 struct device_handler *handler);
17
18 void discover_server_notify_device_add(struct discover_server *server,
19                 struct device *device);
20 void discover_server_notify_boot_option_add(struct discover_server *server,
21                 struct boot_option *option);
22 void discover_server_notify_device_remove(struct discover_server *server,
23                 struct device *device);
24 #endif /* _DISCOVER_SERVER_H */