X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=test%2Fparser%2Fhandler.c;h=bfb61083c14eace6c3bfb99c289419131bdd2ae1;hp=f585c318c5c0dbdcf80a6bafeae74fb5e8bec742;hb=6993af8a4b8bb3c6b1d12172b346c5aa41b7dc61;hpb=5d16719922866622fc0f42c570b9934f595e3c33 diff --git a/test/parser/handler.c b/test/parser/handler.c index f585c31..bfb6108 100644 --- a/test/parser/handler.c +++ b/test/parser/handler.c @@ -1,9 +1,14 @@ +#include + #include #include #include "device-handler.h" +struct network; + +typedef void (*boot_status_fn)(void *arg, struct boot_status *); void discover_server_notify_device_add(struct discover_server *server, struct device *device) @@ -26,3 +31,66 @@ void discover_server_notify_device_remove(struct discover_server *server, (void)device; } +void discover_server_notify_boot_status(struct discover_server *server, + struct boot_status *status) +{ + (void)server; + (void)status; +} + +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; +}