qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 07/29] monitor: Setup a QDict with arguments to


From: Markus Armbruster
Subject: Re: [Qemu-devel] [PATCH 07/29] monitor: Setup a QDict with arguments to handlers
Date: Mon, 24 Aug 2009 18:25:37 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)

Luiz Capitulino <address@hidden> writes:

> With this commit monitor_handle_command() will be able to setup a
> QDict with arguments to command handlers.
>
> However, the current 'args[]' method is still being used, next
> changes will port commands to get their arguments from the dictionary.
>
> Two changes are worth noting:
>
> 1. The '/' argument type always adds the following standard keys in the
> dictionary: 'count', 'format' and 'size'. This way, the argument
> name used in the 'args_type' string doesn't matter

Can have at most one '/' argument then.  Hmm.  Document as restriction?

> 2. The optional argument type '?' doesn't need to pass the additional
> 'has_arg' argument, hanlders can do the same check with qdict_exists()




reply via email to

[Prev in Thread] Current Thread [Next in Thread]