mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 11:23:43 +08:00
qemu-config: introduce qemu_find_opts_err()
This is like qemu_find_opts(), except that it takes an Error argument. This new function allows for a incremental conversion of code using qemu_find_opts(). Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Reviewed-By: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
2ac2061338
commit
60d5666f7d
@ -661,6 +661,11 @@ QemuOptsList *qemu_find_opts(const char *group)
|
||||
return ret;
|
||||
}
|
||||
|
||||
QemuOptsList *qemu_find_opts_err(const char *group, Error **errp)
|
||||
{
|
||||
return find_list(vm_config_groups, group, errp);
|
||||
}
|
||||
|
||||
void qemu_add_opts(QemuOptsList *list)
|
||||
{
|
||||
int entries, i;
|
||||
|
@ -1,11 +1,14 @@
|
||||
#ifndef QEMU_CONFIG_H
|
||||
#define QEMU_CONFIG_H
|
||||
|
||||
#include "error.h"
|
||||
|
||||
extern QemuOptsList qemu_fsdev_opts;
|
||||
extern QemuOptsList qemu_virtfs_opts;
|
||||
extern QemuOptsList qemu_spice_opts;
|
||||
|
||||
QemuOptsList *qemu_find_opts(const char *group);
|
||||
QemuOptsList *qemu_find_opts_err(const char *group, Error **errp);
|
||||
void qemu_add_opts(QemuOptsList *list);
|
||||
int qemu_set_option(const char *str);
|
||||
int qemu_global_option(const char *str);
|
||||
|
Loading…
Reference in New Issue
Block a user