[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 5/8] net: vde: introduce info_dict
From: |
Miguel Di Ciurcio Filho |
Subject: |
[Qemu-devel] [PATCH 5/8] net: vde: introduce info_dict |
Date: |
Thu, 10 Jun 2010 18:37:02 -0300 |
Signed-off-by: Miguel Di Ciurcio Filho <address@hidden>
---
net/vde.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/net/vde.c b/net/vde.c
index 0b46fa6..0fe7c09 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 {
@@ -102,6 +105,11 @@ static int net_vde_init(VLANState *vlan, const char *model,
snprintf(nc->info_str, sizeof(nc->info_str), "sock=%s,fd=%d",
sock, vde_datafd(vde));
+ assert(nc->info_dict == NULL);
+ 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);
s->vde = vde;
--
1.7.1
- [Qemu-devel] [PATCH 1/8] QObject API: introduce qdict_to_qstring() function, (continued)
- [Qemu-devel] [PATCH 1/8] QObject API: introduce qdict_to_qstring() function, Miguel Di Ciurcio Filho, 2010/06/10
- [Qemu-devel] [PATCH 2/8] QMP: Introduce the documentation for query-netdev and info netdev, Miguel Di Ciurcio Filho, 2010/06/10
- [Qemu-devel] [PATCH 3/8] net: Introduce VLANClientState->info_dict, Miguel Di Ciurcio Filho, 2010/06/10
- [Qemu-devel] [PATCH 4/8] net: tap/tap-win32: introduce info_dict, Miguel Di Ciurcio Filho, 2010/06/10
- [Qemu-devel] [PATCH 5/8] net: vde: introduce info_dict,
Miguel Di Ciurcio Filho <=
- [Qemu-devel] [PATCH 6/8] net: socket: introduce info_dict, Miguel Di Ciurcio Filho, 2010/06/10
- [Qemu-devel] [PATCH 7/8] net: slirp: introduce info_dict, Miguel Di Ciurcio Filho, 2010/06/10
- [Qemu-devel] [PATCH 8/8] monitor/net: introduce 'info netdev' with QMP support, Miguel Di Ciurcio Filho, 2010/06/10
- [Qemu-devel] Re: [PATCH 0/8] QMP: Introduce query-netdev, Luiz Capitulino, 2010/06/16