mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
qemu-option: Functions to convert to/from QDict
The functions are somewhat restricted. Good enough for the job at hand. We'll extend them when we need more.
This commit is contained in:
parent
0204276bc9
commit
01e7f18869
2 changed files with 82 additions and 0 deletions
|
@ -28,6 +28,7 @@
|
|||
|
||||
#include <stdint.h>
|
||||
#include "qemu-queue.h"
|
||||
#include "qdict.h"
|
||||
|
||||
enum QEMUOptionParType {
|
||||
OPT_FLAG,
|
||||
|
@ -118,6 +119,8 @@ void qemu_opts_del(QemuOpts *opts);
|
|||
int qemu_opts_validate(QemuOpts *opts, const QemuOptDesc *desc);
|
||||
int qemu_opts_do_parse(QemuOpts *opts, const char *params, const char *firstname);
|
||||
QemuOpts *qemu_opts_parse(QemuOptsList *list, const char *params, const char *firstname);
|
||||
QemuOpts *qemu_opts_from_qdict(QemuOptsList *list, const QDict *qdict);
|
||||
QDict *qemu_opts_to_qdict(QemuOpts *opts, QDict *qdict);
|
||||
|
||||
typedef int (*qemu_opts_loopfunc)(QemuOpts *opts, void *opaque);
|
||||
int qemu_opts_print(QemuOpts *opts, void *dummy);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue