]> git.proxmox.com Git - qemu.git/commit - monitor.c
QMP: Initial support
authorLuiz Capitulino <lcapitulino@redhat.com>
Fri, 27 Nov 2009 00:58:58 +0000 (22:58 -0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 3 Dec 2009 15:41:22 +0000 (09:41 -0600)
commit9b57c02e3e14163b576ada77ddd1d7b346a6e421
tree088fe8d6eccd145416c3a5c9e8f4cd8753c64f11
parent4b9d46834de8c75c3cbd5bc1c5f00e35c74e01ed
QMP: Initial support

This commit adds initial QMP support in QEMU. It's important
to notice that most QMP code will be part of the Monitor.

Input will be read by monitor_control_read(). Currently it
does nothing but next patches will add proper input support.

The function monitor_json_emitter(), as its name implies, is
used by the Monitor to emit JSON output. In this commit it's
used by monitor_control_event() to print our greeting message.

Finally, control mode support is also added to monitor_init(),
allowing QMP to be really enabled.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
monitor.c