X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=test%2Fparser%2Fhandler.c;h=bfb61083c14eace6c3bfb99c289419131bdd2ae1;hp=64978da92f745988fdfc871718981105d51b9e5a;hb=2b49a92ff84a8ec06ec0f97e36f0f813eaa46764;hpb=2312c424d516862877c45a9566816acfe2da0f06 diff --git a/test/parser/handler.c b/test/parser/handler.c index 64978da..bfb6108 100644 --- a/test/parser/handler.c +++ b/test/parser/handler.c @@ -6,6 +6,8 @@ #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, @@ -36,14 +38,42 @@ void discover_server_notify_boot_status(struct discover_server *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, enum conf_method method) +void iterate_parsers(struct discover_context *ctx) { (void)ctx; - (void)method; assert(false); }