From 5dc519ef9207bd7d209c31cf885a6c849c615f98 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Tue, 6 Oct 2009 12:17:03 +0100 Subject: Add qemu_opts_validate() for post parsing validation Several qemu command line options have a parameter whose value affects what other parameters are accepted for the option. In these cases, we can have an empty description table in the QemuOptsList and once the option has been parsed we can use a suitable description table to validate the other parameters based on the value of that parameter. Signed-off-by: Mark McLoughlin Signed-off-by: Anthony Liguori --- qemu-option.h | 1 + 1 file changed, 1 insertion(+) (limited to 'qemu-option.h') diff --git a/qemu-option.h b/qemu-option.h index 525b9b6f0..666b666b3 100644 --- a/qemu-option.h +++ b/qemu-option.h @@ -115,6 +115,7 @@ int qemu_opts_set(QemuOptsList *list, const char *id, const char *name, const char *value); const char *qemu_opts_id(QemuOpts *opts); void qemu_opts_del(QemuOpts *opts); +int qemu_opts_validate(QemuOpts *opts, QemuOptDesc *desc); int qemu_opts_do_parse(QemuOpts *opts, const char *params, const char *firstname); QemuOpts *qemu_opts_parse(QemuOptsList *list, const char *params, const char *firstname); -- cgit v1.2.3-65-gdbad