X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=qmp.c;h=fa82b598c6d0c58c4919cc2a2d5451f7c70a67e2;hb=730b00bbfdc15f914f47e03a703fa7647c10c4a9;hp=886059ef94f3a56cd67dfe32a8510139f5f479c3;hpb=3aca12f841fcd6f3a7477076dad0d564360500de;p=mirror_qemu.git diff --git a/qmp.c b/qmp.c index 886059ef94..fa82b598c6 100644 --- a/qmp.c +++ b/qmp.c @@ -18,6 +18,7 @@ #include "qemu/cutils.h" #include "monitor/monitor.h" #include "sysemu/sysemu.h" +#include "qemu/config-file.h" #include "qemu/uuid.h" #include "qmp-commands.h" #include "sysemu/char.h" @@ -616,7 +617,7 @@ void qmp_add_client(const char *protocol, const char *fdname, bool has_skipauth, bool skipauth, bool has_tls, bool tls, Error **errp) { - CharDriverState *s; + Chardev *s; int fd; fd = monitor_get_fd(cur_mon, fdname, errp); @@ -674,7 +675,7 @@ void qmp_object_add(const char *type, const char *id, pdict = qdict_new(); } - v = qobject_input_visitor_new(QOBJECT(pdict), true); + v = qobject_input_visitor_new(QOBJECT(pdict)); obj = user_creatable_add_type(type, id, pdict, v, errp); visit_free(v); if (obj) {