X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fdiscover-server.h;h=97d07e62a37312c02697911f3f4ebea852c8e14e;hp=e5d7881905ffbcf9cd805242355ed67e9a697021;hb=03fe06fa71f065e918c46a65e6a45e76063a07eb;hpb=94af239b00f547fb5daef88b16fecdfb0146691b diff --git a/discover/discover-server.h b/discover/discover-server.h index e5d7881..97d07e6 100644 --- a/discover/discover-server.h +++ b/discover/discover-server.h @@ -1,14 +1,33 @@ #ifndef _DISCOVER_SERVER_H #define _DISCOVER_SERVER_H +#include + struct discover_server; struct device_handler; +struct boot_option; +struct status; +struct system_info; +struct device; +struct config; -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_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); +void discover_server_notify_boot_status(struct discover_server *server, + struct status *status); +void discover_server_notify_system_info(struct discover_server *server, + const struct system_info *sysinfo); +void discover_server_notify_config(struct discover_server *server, + const struct config *config); #endif /* _DISCOVER_SERVER_H */