From patchwork Wed Jun 30 14:53:00 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [v2,3/7] net: Introduce VLANClientState->info_dict From: Miguel Di Ciurcio Filho X-Patchwork-Id: 57414 Message-Id: <1277909584-13012-4-git-send-email-miguel.filho@gmail.com> To: qemu-devel@nongnu.org Cc: avi@redhat.com, Miguel Di Ciurcio Filho , armbru@redhat.com, lcapitulino@redhat.com Date: Wed, 30 Jun 2010 11:53:00 -0300 There is no standard format when formatting VLANClientState.info_str, so it is difficult to extract information and transmit it over QMP. This patch adds info_dict, a QDict to better handle this information. Signed-off-by: Miguel Di Ciurcio Filho --- net.c | 1 + net.h | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/net.c b/net.c index 0703698..2936fe6 100644 --- a/net.c +++ b/net.c @@ -301,6 +301,7 @@ void qemu_del_vlan_client(VLANClientState *vc) qemu_free(vc->name); qemu_free(vc->model); + QDECREF(vc->info_dict); qemu_free(vc); } diff --git a/net.h b/net.h index 518cf9c..cfe837f 100644 --- a/net.h +++ b/net.h @@ -65,6 +65,7 @@ struct VLANClientState { char *model; char *name; char info_str[256]; + QDict *info_dict; unsigned receive_disabled : 1; };