@@ -31,6 +31,9 @@
#include "qemu-char.h"
#include "qemu-common.h"
#include "qemu-option.h"
+#include "qdict.h"
+#include "qstring.h"
+#include "qint.h"
#include "sysemu.h"
typedef struct VDEState {
@@ -99,8 +102,10 @@ static int net_vde_init(VLANState *vlan, const char *model,
nc = qemu_new_net_client(&net_vde_info, vlan, NULL, model, name);
- snprintf(nc->info_str, sizeof(nc->info_str), "sock=%s,fd=%d",
- sock, vde_datafd(vde));
+ nc->info_dict = qdict_new();
+
+ qdict_put(nc->info_dict, "sock", qstring_from_str(sock));
+ qdict_put(nc->info_dict, "fd", qint_from_int(vde_datafd(vde)));
s = DO_UPCAST(VDEState, nc, nc);
Signed-off-by: Miguel Di Ciurcio Filho <miguel.filho@gmail.com> --- net/vde.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-)