diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2009-11-26 22:59:01 -0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-03 09:41:23 -0600 |
commit | 5fa737a4792c0aef9cf0588242336eefb0cb8ca8 (patch) | |
tree | 561729fe751b0d5c91cf7f98e8e9254ae25c205b /vnc-tls.h | |
parent | 956f1a0d838e8045020ff8175e9ac3982b1e8079 (diff) |
QMP: Input support
The JSON stream parser is used to do QMP input. When there
are enough characters to be parsed it calls Monitor's
handle_qmp_command() function to handle the input.
This function's job is to check if the input is correct and
call the appropriate handler. In other words, it does for QMP
what handle_user_command() does for the user protocol.
This means that handle_qmp_command() also has to parse the
(ugly) "args_type" format to able to get the arguments names
and types expected by the handler.
The format to input commands in QMP is as follows:
{ "execute": json-string,
"id": json-value, "arguments": json-object }
Please, note that this commit also adds "id" support.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vnc-tls.h')
0 files changed, 0 insertions, 0 deletions