Re: [Qemu-devel] [PATCH 8/9] QMP: Introduce qmp_check_input_obj()

2010-06-02 Thread Markus Armbruster
Luiz Capitulino writes: > On Wed, 02 Jun 2010 09:39:26 +0200 > Markus Armbruster wrote: > >> Luiz Capitulino writes: >> >> > This is similar to qmp_check_client_args(), but checks if >> > the input object follows the specification (QMP/qmp-spec.txt >> > section 2.3). >> > >> > As we're limited

Re: [Qemu-devel] [PATCH 8/9] QMP: Introduce qmp_check_input_obj()

2010-06-02 Thread Luiz Capitulino
On Wed, 02 Jun 2010 09:39:26 +0200 Markus Armbruster wrote: > Luiz Capitulino writes: > > > This is similar to qmp_check_client_args(), but 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

Re: [Qemu-devel] [PATCH 8/9] QMP: Introduce qmp_check_input_obj()

2010-06-02 Thread Markus Armbruster
Luiz Capitulino writes: > This is similar to qmp_check_client_args(), but 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, each time checking if the > giv

[Qemu-devel] [PATCH 8/9] QMP: Introduce qmp_check_input_obj()

2010-06-01 Thread Luiz Capitulino
This is similar to qmp_check_client_args(), but 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, each time checking if the given argument complies to the specificati