nfs: add missing coroutine_fn annotations
[qemu.git] / include / qemu / config-file.h
blob321e7c7c036c9387796eb8d54e7382b37c56c8a4
1 #ifndef QEMU_CONFIG_FILE_H
2 #define QEMU_CONFIG_FILE_H
4 typedef void QEMUConfigCB(const char *group, QDict *qdict, void *opaque, Error **errp);
6 void qemu_load_module_for_opts(const char *group);
7 QemuOptsList *qemu_find_opts(const char *group);
8 QemuOptsList *qemu_find_opts_err(const char *group, Error **errp);
9 QemuOpts *qemu_find_opts_singleton(const char *group);
11 void qemu_add_opts(QemuOptsList *list);
12 void qemu_add_drive_opts(QemuOptsList *list);
13 int qemu_global_option(const char *str);
15 int qemu_config_parse(FILE *fp, QemuOptsList **lists, const char *fname,
16 Error **errp);
18 /* A default callback for qemu_read_config_file(). */
19 void qemu_config_do_parse(const char *group, QDict *qdict, void *opaque, Error **errp);
21 int qemu_read_config_file(const char *filename, QEMUConfigCB *f, Error **errp);
23 /* Parse QDict options as a replacement for a config file (allowing multiple
24 enumerated (0..(n-1)) configuration "sections") */
25 void qemu_config_parse_qdict(QDict *options, QemuOptsList **lists,
26 Error **errp);
28 #endif /* QEMU_CONFIG_FILE_H */