summary refs log tree commit diff stats
path: root/hw/usb/dev-network.c
diff options
context:
space:
mode:
authorBandan Das <bsd@redhat.com>2015-06-03 18:38:08 -0400
committerMarkus Armbruster <armbru@redhat.com>2015-06-22 17:40:00 +0200
commitae50212ff717f3d295ebff352eb7d6cc08332b7e (patch)
treec3518e1216b4168024b3e00db2c32d026a13e809 /hw/usb/dev-network.c
parent19f2db5c84e563597bd8b3c3190aef591060dec2 (diff)
downloadfocaccia-qemu-ae50212ff717f3d295ebff352eb7d6cc08332b7e.tar.gz
focaccia-qemu-ae50212ff717f3d295ebff352eb7d6cc08332b7e.zip
monitor: cleanup parsing of cmd name and cmd arguments
There's too much going on in monitor_parse_command().
Split up the arguments parsing bits into a separate function
monitor_parse_arguments(). Let the original function check for
command validity and sub-commands if any and return data (*cmd)
that the newly introduced function can process and return a
QDict. Also, pass a pointer to the cmdline to track current
parser location.

Suggested-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Bandan Das <bsd@redhat.com>
Acked-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'hw/usb/dev-network.c')
0 files changed, 0 insertions, 0 deletions