diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2009-08-28 15:27:10 -0300 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-09-04 09:37:30 -0500 |
commit | f7188bbea7aa83ff7def23f7fcd03b8fdafc6066 (patch) | |
tree | 0a5ff5c33996dc0beb2cfee34d39a110c293d86a /savevm.c | |
parent | 4d76d2ba9d313a827012d72d8352459d3b7b8833 (diff) |
monitor: Setup a QDict with arguments to handlers
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
2. The optional argument type '?' doesn't need to pass the additional
'has_arg' argument, hanlders can do the same check with qdict_haskey()
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'savevm.c')
0 files changed, 0 insertions, 0 deletions