4 #include <talloc/talloc.h>
5 #include <types/types.h>
7 #include "device-handler.h"
11 typedef void (*boot_status_fn)(void *arg, struct 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 status *status)
41 void system_info_set_interface_address(unsigned int hwaddr_size,
42 uint8_t *hwaddr, const char *address)
49 void discover_server_notify_config(struct discover_server *server,
50 struct config *config)
56 void system_info_register_blockdev(const char *name, const char *uuid,
57 const char *mountpoint)
64 void network_register_device(struct network *network,
65 struct discover_device *dev)
71 void network_unregister_device(struct network *network,
72 struct discover_device *dev)
78 void parser_init(void)
82 void iterate_parsers(struct discover_context *ctx)
88 struct boot_task *boot(void *ctx, struct discover_boot_option *opt,
89 struct boot_command *cmd, int dry_run,
90 boot_status_fn status_fn, void *status_arg)
101 void boot_cancel(struct boot_task *task)
106 void pending_network_jobs_start(void)
110 void pending_network_jobs_cancel(void)