aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorWenchao Xia <xiawenc@linux.vnet.ibm.com>2013-01-14 14:06:25 +0800
committerLuiz Capitulino <lcapitulino@redhat.com>2013-01-17 10:24:52 -0200
commit84f2d0ea0f39bc140a6c69ba8e3ffd6b10cae6fa (patch)
tree61bda02eccdcc9fe834841ddf0388f1845c0b5b5 /net
parent47f4dac3fde809e3da4e60d9eb699f1d4b378249 (diff)
downloadqemu-84f2d0ea0f39bc140a6c69ba8e3ffd6b10cae6fa.zip
qemu-84f2d0ea0f39bc140a6c69ba8e3ffd6b10cae6fa.tar.gz
qemu-84f2d0ea0f39bc140a6c69ba8e3ffd6b10cae6fa.tar.bz2
HMP: add QDict to info callback handler
This patch change all info call back function to take additional QDict * parameter, which allow those command take parameter. Now it is set to NULL at default case. Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'net')
-rw-r--r--net/net.c2
-rw-r--r--net/slirp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/net.c b/net/net.c
index 02b5458..cdd9b04 100644
--- a/net/net.c
+++ b/net/net.c
@@ -852,7 +852,7 @@ void print_net_client(Monitor *mon, NetClientState *nc)
NetClientOptionsKind_lookup[nc->info->type], nc->info_str);
}
-void do_info_network(Monitor *mon)
+void do_info_network(Monitor *mon, const QDict *qdict)
{
NetClientState *nc, *peer;
NetClientOptionsKind type;
diff --git a/net/slirp.c b/net/slirp.c
index c14259f..4df550f 100644
--- a/net/slirp.c
+++ b/net/slirp.c
@@ -670,7 +670,7 @@ static int slirp_guestfwd(SlirpState *s, const char *config_str,
return -1;
}
-void do_info_usernet(Monitor *mon)
+void do_info_usernet(Monitor *mon, const QDict *qdict)
{
SlirpState *s;