]> git.ozlabs.org Git - petitboot/blobdiff - test/parser/handler.c
types: shorten boot_status definitions
[petitboot] / test / parser / handler.c
index d9057eb56c60fd5bff19e937e80a4bf43abd0ab6..43e9d71309139706a406c028bc8a08c764aebf06 100644 (file)
@@ -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,12 +32,41 @@ 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 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)
 {
 }