numa: add -numa node,memdev= option
[qemu.git] / include / qemu / config-file.h
1 #ifndef QEMU_CONFIG_H
2 #define QEMU_CONFIG_H
3
4 #include <stdio.h>
5 #include "qemu/option.h"
6 #include "qapi/error.h"
7 #include "qapi/qmp/qdict.h"
8
9 QemuOptsList *qemu_find_opts(const char *group);
10 QemuOptsList *qemu_find_opts_err(const char *group, Error **errp);
11 QemuOpts *qemu_find_opts_singleton(const char *group);
12
13 void qemu_add_opts(QemuOptsList *list);
14 void qemu_add_drive_opts(QemuOptsList *list);
15 int qemu_set_option(const char *str);
16 int qemu_global_option(const char *str);
17 void qemu_add_globals(void);
18
19 void qemu_config_write(FILE *fp);
20 int qemu_config_parse(FILE *fp, QemuOptsList **lists, const char *fname);
21
22 int qemu_read_config_file(const char *filename);
23
24 /* Parse QDict options as a replacement for a config file (allowing multiple
25 enumerated (0..(n-1)) configuration "sections") */
26 void qemu_config_parse_qdict(QDict *options, QemuOptsList **lists,
27 Error **errp);
28
29 /* Read default QEMU config files
30 */
31 int qemu_read_default_config_files(bool userconfig);
32
33 #endif /* QEMU_CONFIG_H */