]> git.ozlabs.org Git - petitboot/blobdiff - discover/discover-server.h
utils/pb-console: use getty rather than exec
[petitboot] / discover / discover-server.h
index 7c8993815ffdb11ca1b1e35d7573f4c251905413..541afaf776b4bbf718953ec9787b3b17ebcea845 100644 (file)
@@ -1,19 +1,27 @@
 #ifndef _DISCOVER_SERVER_H
 #define _DISCOVER_SERVER_H
 
+#include <waiter/waiter.h>
+
 struct discover_server;
 struct device_handler;
+struct boot_option;
+struct boot_status;
 struct device;
 
-struct discover_server *discover_server_init(void);
+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_add(struct discover_server *server,
+void discover_server_notify_device_add(struct discover_server *server,
                struct device *device);
-void discover_server_notify_remove(struct discover_server *server,
+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);
+void discover_server_notify_boot_status(struct discover_server *server,
+               struct boot_status *status);
 #endif /* _DISCOVER_SERVER_H */