]> Git Repo - qemu.git/commit
monitor: cleanup parsing of cmd name and cmd arguments
authorBandan Das <[email protected]>
Wed, 3 Jun 2015 22:38:08 +0000 (18:38 -0400)
committerMarkus Armbruster <[email protected]>
Mon, 22 Jun 2015 15:40:00 +0000 (17:40 +0200)
commitae50212ff717f3d295ebff352eb7d6cc08332b7e
treec3518e1216b4168024b3e00db2c32d026a13e809
parent19f2db5c84e563597bd8b3c3190aef591060dec2
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 <[email protected]>
Signed-off-by: Bandan Das <[email protected]>
Acked-by: Luiz Capitulino <[email protected]>
Signed-off-by: Markus Armbruster <[email protected]>
monitor.c
This page took 0.024328 seconds and 4 git commands to generate.