4 #include <talloc/talloc.h>
5 #include <types/types.h>
7 #include "device-handler.h"
12 typedef void (*boot_status_fn)(void *arg, struct status *);
14 void discover_server_notify_device_add(struct discover_server *server,
15 struct device *device)
21 void discover_server_notify_boot_option_add(struct discover_server *server,
22 struct boot_option *option)
28 void discover_server_notify_device_remove(struct discover_server *server,
29 struct device *device)
35 void discover_server_notify_boot_status(struct discover_server *server,
36 struct status *status)
42 void system_info_set_interface_address(unsigned int hwaddr_size,
43 uint8_t *hwaddr, const char *address)
50 void discover_server_notify_config(struct discover_server *server,
51 struct config *config)
57 void system_info_register_blockdev(const char *name, const char *uuid,
58 const char *mountpoint)
65 void network_register_device(struct network *network,
66 struct discover_device *dev)
72 void network_unregister_device(struct network *network,
73 struct discover_device *dev)
79 void parser_init(void)
83 void iterate_parsers(struct discover_context *ctx)
89 struct boot_task *boot(void *ctx, struct discover_boot_option *opt,
90 struct boot_command *cmd, int dry_run,
91 boot_status_fn status_fn, void *status_arg)
102 void boot_cancel(struct boot_task *task)
107 void pending_network_jobs_start(void)
111 void pending_network_jobs_cancel(void)
115 void discover_server_notify_plugins_remove(struct discover_server *server)