X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=test%2Fparser%2Fhandler.c;h=437f76591b9b65b37e629b0775ce2df4a29f249c;hp=f585c318c5c0dbdcf80a6bafeae74fb5e8bec742;hb=f611bde3f182e9a4befb48a0160d1831708aca67;hpb=4926cde5c97d09794ec33cca1321bb05a8d43304 diff --git a/test/parser/handler.c b/test/parser/handler.c index f585c31..437f765 100644 --- a/test/parser/handler.c +++ b/test/parser/handler.c @@ -1,9 +1,12 @@ +#include + #include #include #include "device-handler.h" +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 +29,32 @@ 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 parser_init(void) +{ +} + +void iterate_parsers(struct discover_context *ctx, enum conf_method method) +{ + (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) +{ + (void)ctx; + (void)opt; + (void)cmd; + (void)dry_run; + (void)status_fn; + (void)status_arg; + assert(false); +}