monitor: Split monitor_handle_command()
authorLuiz Capitulino <lcapitulino@redhat.com>
Fri, 28 Aug 2009 18:27:22 +0000 (15:27 -0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 4 Sep 2009 14:37:32 +0000 (09:37 -0500)
commit55f81d963bfb3ce18170ac0af9d5401358a0b7b1
treecbbe479ab930a763aa72a34bf3e727ed0e7e66ec
parent37b7ad484d2909abd7eb569b80c3bcdf49d1879c
monitor: Split monitor_handle_command()

In order to help the integration with unit-tests and having a better
design, this commit splits monitor_handle_command() into two parts.

The parsing code is moved to a function called monitor_parse_command(),
while allocating memory and calling the handler is still done by
monitor_handle_command().

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