]> git.ozlabs.org Git - petitboot/blobdiff - test/parser/handler.c
discover: Handle and track plugin_options
[petitboot] / test / parser / handler.c
index f585c318c5c0dbdcf80a6bafeae74fb5e8bec742..a9856b494fe2d29048901690d1e0bb75800178c9 100644 (file)
@@ -1,9 +1,15 @@
 
+#include <assert.h>
+
 #include <talloc/talloc.h>
 #include <types/types.h>
 
 #include "device-handler.h"
 
+struct network;
+struct client;
+
+typedef void (*boot_status_fn)(void *arg, struct status *);
 
 void discover_server_notify_device_add(struct discover_server *server,
                struct device *device)
@@ -26,3 +32,87 @@ void discover_server_notify_device_remove(struct discover_server *server,
        (void)device;
 }
 
+void discover_server_notify_boot_status(struct discover_server *server,
+               struct status *status)
+{
+       (void)server;
+       (void)status;
+}
+
+void system_info_set_interface_address(unsigned int hwaddr_size,
+               uint8_t *hwaddr, const char *address)
+{
+       (void)hwaddr_size;
+       (void)hwaddr;
+       (void)address;
+}
+
+void discover_server_notify_config(struct discover_server *server,
+               struct config *config)
+{
+       (void)server;
+       (void)config;
+}
+
+void system_info_register_blockdev(const char *name, const char *uuid,
+               const char *mountpoint)
+{
+       (void)name;
+       (void)uuid;
+       (void)mountpoint;
+}
+
+void network_register_device(struct network *network,
+               struct discover_device *dev)
+{
+       (void)network;
+       (void)dev;
+}
+
+void network_unregister_device(struct network *network,
+               struct discover_device *dev)
+{
+       (void)network;
+       (void)dev;
+}
+
+void parser_init(void)
+{
+}
+
+void iterate_parsers(struct discover_context *ctx)
+{
+       (void)ctx;
+       assert(false);
+}
+
+struct boot_task *boot(void *ctx, struct discover_boot_option *opt,
+               struct boot_command *cmd, int dry_run,
+               boot_status_fn status_fn, void *status_arg)
+{
+       (void)ctx;
+       (void)opt;
+       (void)cmd;
+       (void)dry_run;
+       (void)status_fn;
+       (void)status_arg;
+       assert(false);
+}
+
+void boot_cancel(struct boot_task *task)
+{
+       (void)task;
+}
+
+void pending_network_jobs_start(void)
+{
+}
+
+void pending_network_jobs_cancel(void)
+{
+}
+
+void discover_server_notify_plugins_remove(struct discover_server *server)
+{
+       (void)server;
+}