X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=test%2Fparser%2Fhandler.c;h=e35640712770c9a0c13692691f6a660e1d60868e;hp=437f76591b9b65b37e629b0775ce2df4a29f249c;hb=0d3caaf8e9a75e9b6ebc9427c75ed2914c60439d;hpb=f611bde3f182e9a4befb48a0160d1831708aca67 diff --git a/test/parser/handler.c b/test/parser/handler.c index 437f765..e356407 100644 --- a/test/parser/handler.c +++ b/test/parser/handler.c @@ -6,7 +6,9 @@ #include "device-handler.h" -typedef void (*boot_status_fn)(void *arg, struct boot_status *); +struct network; + +typedef void (*boot_status_fn)(void *arg, struct status *); void discover_server_notify_device_add(struct discover_server *server, struct device *device) @@ -30,25 +32,62 @@ void discover_server_notify_device_remove(struct discover_server *server, } void discover_server_notify_boot_status(struct discover_server *server, - struct boot_status *status) + 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, enum conf_method method) +void iterate_parsers(struct discover_context *ctx) { (void)ctx; - (void)method; assert(false); } -int boot(void *ctx, struct discover_boot_option *opt, struct boot_command *cmd, - int dry_run, boot_status_fn status_fn, void *status_arg) +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; @@ -58,3 +97,8 @@ int boot(void *ctx, struct discover_boot_option *opt, struct boot_command *cmd, (void)status_arg; assert(false); } + +void boot_cancel(struct boot_task *task) +{ + (void)task; +}