]> git.ozlabs.org Git - petitboot/blob - discover/discover-server.h
discover/powerpc: Parse & save default boot device parameter
[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 boot_status;
10 struct system_info;
11 struct device;
12 struct config;
13
14 struct discover_server *discover_server_init(struct waitset *waitset);
15
16 void discover_server_destroy(struct discover_server *server);
17
18 void discover_server_set_device_source(struct discover_server *server,
19                 struct device_handler *handler);
20
21 void discover_server_notify_device_add(struct discover_server *server,
22                 struct device *device);
23 void discover_server_notify_boot_option_add(struct discover_server *server,
24                 struct boot_option *option);
25 void discover_server_notify_device_remove(struct discover_server *server,
26                 struct device *device);
27 void discover_server_notify_boot_status(struct discover_server *server,
28                 struct boot_status *status);
29 void discover_server_notify_system_info(struct discover_server *server,
30                 const struct system_info *sysinfo);
31 void discover_server_notify_config(struct discover_server *server,
32                 const struct config *config);
33 #endif /* _DISCOVER_SERVER_H */