summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorWenchao Xia2013-08-27 14:38:24 +0200
committerLuiz Capitulino2013-08-30 13:41:15 +0200
commitc35b6400338897847bbab1b0f65d89552636579a (patch)
treea19b46f8bd059259b5b5ddaacf0494c45128387b /scripts
parentmonitor: support sub command in help (diff)
downloadqemu-c35b6400338897847bbab1b0f65d89552636579a.tar.gz
qemu-c35b6400338897847bbab1b0f65d89552636579a.tar.xz
qemu-c35b6400338897847bbab1b0f65d89552636579a.zip
monitor: refine monitor_find_completion()
In order to support sub command in auto completion, a reentrant function is needed, so monitor_find_completion() is split into two parts. The first part does parsing of user input which need to be done only once, the second part does the auto completion job according to the parsing result, which contains the necessary code to support sub command and works as the reentrant function. The global "info_cmds" is still used in second part, which will be replaced by sub command code later. Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions