QMP: Introduce qmp_check_input_obj()
authorLuiz Capitulino <lcapitulino@redhat.com>
Mon, 31 May 2010 20:28:01 +0000 (17:28 -0300)
committerLuiz Capitulino <lcapitulino@redhat.com>
Thu, 1 Jul 2010 17:27:13 +0000 (14:27 -0300)
commitf6271d52b8f595abefd5f93ba155af7eed9800d0
tree0e2cbd8b8f5a0835e8f608775d3abdb35718f033
parentae918ce74dc198ccf5601e73a2802816b16f0cd1
QMP: Introduce qmp_check_input_obj()

This is similar to qmp_check_client_args(), but it checks if
the input object follows the specification (QMP/qmp-spec.txt
section 2.3).

As we're limited to three keys, the work here is quite simple:
we iterate over the input object, checking each time if the
current argument complies to the specification.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
monitor.c