aboutsummaryrefslogtreecommitdiff
path: root/qemu-config.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2010-02-10 20:09:14 +0100
committerMarkus Armbruster <armbru@redhat.com>2010-03-16 17:45:35 +0100
commit304329eea01f730733db3f0d6483c01d957378cb (patch)
tree31fd6cd38748cac9cb8e236ff58545dbb67c0d95 /qemu-config.c
parent8212c64f0e1b32300b7ec4e79885a0caf6f521a6 (diff)
downloadqemu-304329eea01f730733db3f0d6483c01d957378cb.zip
qemu-304329eea01f730733db3f0d6483c01d957378cb.tar.gz
qemu-304329eea01f730733db3f0d6483c01d957378cb.tar.bz2
qemu-option: Rename find_list() to qemu_find_opts() & external linkage
Next commit wants to use it.
Diffstat (limited to 'qemu-config.c')
-rw-r--r--qemu-config.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/qemu-config.c b/qemu-config.c
index a2e0193..150157c 100644
--- a/qemu-config.c
+++ b/qemu-config.c
@@ -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);