]> git.ozlabs.org Git - petitboot/blobdiff - test/parser/handler.c
config: Implement config messages
[petitboot] / test / parser / handler.c
index 437f76591b9b65b37e629b0775ce2df4a29f249c..97ae3885a16f55eb088e0137c2f68893c0a29bb6 100644 (file)
@@ -36,19 +36,26 @@ 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 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 +65,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;
+}