4 #include <talloc/talloc.h>
5 #include <types/types.h>
7 #include "device-handler.h"
11 typedef void (*boot_status_fn)(void *arg, struct boot_status *);
13 void discover_server_notify_device_add(struct discover_server *server,
14 struct device *device)
20 void discover_server_notify_boot_option_add(struct discover_server *server,
21 struct boot_option *option)
27 void discover_server_notify_device_remove(struct discover_server *server,
28 struct device *device)
34 void discover_server_notify_boot_status(struct discover_server *server,
35 struct boot_status *status)
41 void discover_server_notify_config(struct discover_server *server,
42 struct config *config)
48 void system_info_register_blockdev(const char *name, const char *uuid,
49 const char *mountpoint)
56 void network_register_device(struct network *network,
57 struct discover_device *dev)
63 void network_unregister_device(struct network *network,
64 struct discover_device *dev)
70 void parser_init(void)
74 void iterate_parsers(struct discover_context *ctx)
80 struct boot_task *boot(void *ctx, struct discover_boot_option *opt,
81 struct boot_command *cmd, int dry_run,
82 boot_status_fn status_fn, void *status_arg)
93 void boot_cancel(struct boot_task *task)