]> Git Repo - qemu.git/commit
monitor: avoid use of global *cur_mon in readline_completion()
authorWenchao Xia <[email protected]>
Tue, 27 Aug 2013 12:38:17 +0000 (20:38 +0800)
committerLuiz Capitulino <[email protected]>
Fri, 30 Aug 2013 11:41:14 +0000 (07:41 -0400)
commitd1a9756ab8c2c2578cbcb325efffe0b0af916944
tree81944798d762a0cc0b91d50b90570ca888fcf4d4
parentd2674b2cf7db7dce865f3c2b89f0e36d1657a3b5
monitor: avoid use of global *cur_mon in readline_completion()

Now all completion functions do not use *cur_mon any more, instead
they use rs->mon. In short, structure ReadLineState decide where
the complete action would be taken now.

Tested with the case that qemu have two telnet monitors, auto
completion function works normal.

Signed-off-by: Wenchao Xia <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Signed-off-by: Luiz Capitulino <[email protected]>
readline.c
This page took 0.023645 seconds and 4 git commands to generate.