QMP: New argument checker (second part)
commit4af9193ae954f87225e1ba5d527f6a13e37b1e0e
authorLuiz Capitulino <lcapitulino@redhat.com>
Tue, 22 Jun 2010 14:44:05 +0000 (22 11:44 -0300)
committerLuiz Capitulino <lcapitulino@redhat.com>
Thu, 1 Jul 2010 17:27:13 +0000 (1 14:27 -0300)
tree63b0129e38205474c09e7a6a39c328b722da102b
parent2dbc8db0ba9e34b168c3b79a6c5435f770d3796e
QMP: New argument checker (second part)

This commit introduces the second (and last) part of QMP's new
argument checker.

The job is done by check_client_args_type(), it iterates over
the client's argument qdict and for for each argument it checks
if it exists and if its type is valid.

It's important to observe the following changes from the existing
argument checker:

  - If the handler accepts an O-type argument, unknown arguments
    are passed down to it. It's up to O-type handlers to validate
    their arguments

  - Boolean types (eg. 'b' and '-') don't accept integers anymore,
    only json-bool

  - Argument types '/' and '.' are currently unsupported under QMP,
    thus they're not handled

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