Re: [Qemu-devel] [PATCH 4/9] QMP: Second half of the new argument checking code

2010-06-02 Thread Markus Armbruster
Luiz Capitulino writes: > On Wed, 02 Jun 2010 09:31:24 +0200 > Markus Armbruster wrote: > >> Luiz Capitulino writes: >> >> > This commit introduces check_client_args_type(), which is >> > called by qmp_check_client_args() and complements the >> > previous commit. >> > >> > Now the new client's

Re: [Qemu-devel] [PATCH 4/9] QMP: Second half of the new argument checking code

2010-06-02 Thread Luiz Capitulino
On Wed, 02 Jun 2010 09:31:24 +0200 Markus Armbruster wrote: > Luiz Capitulino writes: > > > This commit introduces check_client_args_type(), which is > > called by qmp_check_client_args() and complements the > > previous commit. > > > > Now the new client's argument checker code is capable of >

Re: [Qemu-devel] [PATCH 4/9] QMP: Second half of the new argument checking code

2010-06-02 Thread Markus Armbruster
Luiz Capitulino writes: > This commit introduces check_client_args_type(), which is > called by qmp_check_client_args() and complements the > previous commit. > > Now the new client's argument checker code is capable of > doing type checking and detecting unknown arguments. > > It works this way:

[Qemu-devel] [PATCH 4/9] QMP: Second half of the new argument checking code

2010-06-01 Thread Luiz Capitulino
This commit introduces check_client_args_type(), which is called by qmp_check_client_args() and complements the previous commit. Now the new client's argument checker code is capable of doing type checking and detecting unknown arguments. It works this way: we iterate over the client's arguments