Revision 304329ee
b/qemu-config.c | ||
---|---|---|
309 | 309 |
NULL, |
310 | 310 |
}; |
311 | 311 |
|
312 |
static QemuOptsList *find_list(const char *group)
|
|
312 |
QemuOptsList *qemu_find_opts(const char *group)
|
|
313 | 313 |
{ |
314 | 314 |
int i; |
315 | 315 |
|
... | ... | |
336 | 336 |
return -1; |
337 | 337 |
} |
338 | 338 |
|
339 |
list = find_list(group);
|
|
339 |
list = qemu_find_opts(group);
|
|
340 | 340 |
if (list == NULL) { |
341 | 341 |
return -1; |
342 | 342 |
} |
... | ... | |
451 | 451 |
} |
452 | 452 |
if (sscanf(line, "[%63s \"%63[^\"]\"]", group, id) == 2) { |
453 | 453 |
/* group with id */ |
454 |
list = find_list(group);
|
|
454 |
list = qemu_find_opts(group);
|
|
455 | 455 |
if (list == NULL) |
456 | 456 |
goto out; |
457 | 457 |
opts = qemu_opts_create(list, id, 1); |
... | ... | |
459 | 459 |
} |
460 | 460 |
if (sscanf(line, "[%63[^]]]", group) == 1) { |
461 | 461 |
/* group without id */ |
462 |
list = find_list(group);
|
|
462 |
list = qemu_find_opts(group);
|
|
463 | 463 |
if (list == NULL) |
464 | 464 |
goto out; |
465 | 465 |
opts = qemu_opts_create(list, NULL, 0); |
b/qemu-config.h | ||
---|---|---|
11 | 11 |
extern QemuOptsList qemu_mon_opts; |
12 | 12 |
extern QemuOptsList qemu_cpudef_opts; |
13 | 13 |
|
14 |
QemuOptsList *qemu_find_opts(const char *group); |
|
14 | 15 |
int qemu_set_option(const char *str); |
15 | 16 |
int qemu_global_option(const char *str); |
16 | 17 |
void qemu_add_globals(void); |
Also available in: Unified diff