mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
qemu-option: Rename find_list() to qemu_find_opts() & external linkage
Next commit wants to use it.
This commit is contained in:
parent
8212c64f0e
commit
304329eea0
2 changed files with 5 additions and 4 deletions
|
@ -309,7 +309,7 @@ static QemuOptsList *lists[] = {
|
|||
NULL,
|
||||
};
|
||||
|
||||
static QemuOptsList *find_list(const char *group)
|
||||
QemuOptsList *qemu_find_opts(const char *group)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@ -336,7 +336,7 @@ int qemu_set_option(const char *str)
|
|||
return -1;
|
||||
}
|
||||
|
||||
list = find_list(group);
|
||||
list = qemu_find_opts(group);
|
||||
if (list == NULL) {
|
||||
return -1;
|
||||
}
|
||||
|
@ -451,7 +451,7 @@ int qemu_config_parse(FILE *fp, const char *fname)
|
|||
}
|
||||
if (sscanf(line, "[%63s \"%63[^\"]\"]", group, id) == 2) {
|
||||
/* group with id */
|
||||
list = find_list(group);
|
||||
list = qemu_find_opts(group);
|
||||
if (list == NULL)
|
||||
goto out;
|
||||
opts = qemu_opts_create(list, id, 1);
|
||||
|
@ -459,7 +459,7 @@ int qemu_config_parse(FILE *fp, const char *fname)
|
|||
}
|
||||
if (sscanf(line, "[%63[^]]]", group) == 1) {
|
||||
/* group without id */
|
||||
list = find_list(group);
|
||||
list = qemu_find_opts(group);
|
||||
if (list == NULL)
|
||||
goto out;
|
||||
opts = qemu_opts_create(list, NULL, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue