[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 21/22] net: vde: replace qemu_format_nic_info_str by
From: |
Miguel Di Ciurcio Filho |
Subject: |
[Qemu-devel] [PATCH 21/22] net: vde: replace qemu_format_nic_info_str by info_dict |
Date: |
Thu, 8 Apr 2010 17:16:38 -0300 |
Signed-off-by: Miguel Di Ciurcio Filho <address@hidden>
---
net/vde.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/net/vde.c b/net/vde.c
index 0b46fa6..f582878 100644
--- a/net/vde.c
+++ b/net/vde.c
@@ -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);
--
1.7.0.3
- [Qemu-devel] [PATCH 14/22] net: usb-net: replace qemu_format_nic_info_str by qemu_format_nic_info_dict, (continued)
- [Qemu-devel] [PATCH 14/22] net: usb-net: replace qemu_format_nic_info_str by qemu_format_nic_info_dict, Miguel Di Ciurcio Filho, 2010/04/08
- [Qemu-devel] [PATCH 15/22] net: virtio-net: replace qemu_format_nic_info_str by qemu_format_nic_info_dict, Miguel Di Ciurcio Filho, 2010/04/08
- [Qemu-devel] [PATCH 17/22] net: dump: replace qemu_format_nic_info_str by qemu_format_nic_info_dict, Miguel Di Ciurcio Filho, 2010/04/08
- [Qemu-devel] [PATCH 16/22] net: xilinx_ethlite: replace qemu_format_nic_info_str by qemu_format_nic_info_dict, Miguel Di Ciurcio Filho, 2010/04/08
- [Qemu-devel] [PATCH 18/22] net: slirp: replace qemu_format_nic_info_str by qemu_format_nic_info_dict, Miguel Di Ciurcio Filho, 2010/04/08
- [Qemu-devel] [PATCH 19/22] net: socket: replace qemu_format_nic_info_str by qemu_format_nic_info_dict, Miguel Di Ciurcio Filho, 2010/04/08
- [Qemu-devel] [PATCH 20/22] net: tap: replace qemu_format_nic_info_str by info_dict, Miguel Di Ciurcio Filho, 2010/04/08
- [Qemu-devel] [PATCH 21/22] net: vde: replace qemu_format_nic_info_str by info_dict,
Miguel Di Ciurcio Filho <=
- [Qemu-devel] [PATCH 22/22] monitor/net: Convert do_info_network() to QObject/QMP, Miguel Di Ciurcio Filho, 2010/04/08
- [Qemu-devel] Re: [PATCH 0/22] Convert do_info_network() to QObject/QMP, Luiz Capitulino, 2010/04/09