X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=test%2Fparser%2Fhandler.c;h=158957010751d50dcf46a2dcfd7be08dc37c6614;hp=d9057eb56c60fd5bff19e937e80a4bf43abd0ab6;hb=HEAD;hpb=b8e53cb4b96eb17dc7fa0ffc505dfebae37e6cbf diff --git a/test/parser/handler.c b/test/parser/handler.c index d9057eb..1589570 100644 --- a/test/parser/handler.c +++ b/test/parser/handler.c @@ -6,7 +6,10 @@ #include "device-handler.h" -typedef void (*boot_status_fn)(void *arg, struct boot_status *); +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) @@ -30,12 +33,49 @@ 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) { } @@ -63,3 +103,22 @@ 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; +} + +int devmapper_destroy_snapshot(struct discover_device *device) +{ + (void)device; + return 0; +}