mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
Allow const QemuOptDesc
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
4a0b59fe3b
commit
238431a9d8
3 changed files with 5 additions and 5 deletions
|
|
@ -470,7 +470,7 @@ struct QemuOpt {
|
|||
const char *name;
|
||||
const char *str;
|
||||
|
||||
QemuOptDesc *desc;
|
||||
const QemuOptDesc *desc;
|
||||
union {
|
||||
int boolean;
|
||||
uint64_t uint;
|
||||
|
|
@ -565,7 +565,7 @@ static void qemu_opt_del(QemuOpt *opt)
|
|||
int qemu_opt_set(QemuOpts *opts, const char *name, const char *value)
|
||||
{
|
||||
QemuOpt *opt;
|
||||
QemuOptDesc *desc = opts->list->desc;
|
||||
const QemuOptDesc *desc = opts->list->desc;
|
||||
int i;
|
||||
|
||||
for (i = 0; desc[i].name != NULL; i++) {
|
||||
|
|
@ -777,7 +777,7 @@ QemuOpts *qemu_opts_parse(QemuOptsList *list, const char *params, const char *fi
|
|||
/* Validate parsed opts against descriptions where no
|
||||
* descriptions were provided in the QemuOptsList.
|
||||
*/
|
||||
int qemu_opts_validate(QemuOpts *opts, QemuOptDesc *desc)
|
||||
int qemu_opts_validate(QemuOpts *opts, const QemuOptDesc *desc)
|
||||
{
|
||||
QemuOpt *opt;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue