monitor: Introduce monitor_find_command()
commit7fd669a1c49743073e53166798244f15b1a8e0d2
authorLuiz Capitulino <lcapitulino@redhat.com>
Fri, 27 Nov 2009 00:58:54 +0000 (26 22:58 -0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 3 Dec 2009 15:41:22 +0000 (3 09:41 -0600)
tree03e97d76b8d7aeaa1859074566c0d667ff32243c
parent99e2fc1672bbf84d081729a42c6a579ffdffecf8
monitor: Introduce monitor_find_command()

This commit moves the loop which searches for the command
entry corresponding to a command name to its own function.

It will be used by QMP code as well.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
monitor.c