]> git.proxmox.com Git - mirror_qemu.git/commit
qapi: place outermost object on qiv stack
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 22 Mar 2012 11:51:09 +0000 (12:51 +0100)
committerLuiz Capitulino <lcapitulino@redhat.com>
Tue, 27 Mar 2012 12:15:08 +0000 (09:15 -0300)
commit4faaec6acf7f18b39c362edb9f6aa5658aab8b85
treec4f9f9fcb4f3e7b914c841833f534c3ba97658aa
parent3a86a0fa76b5103a122b6e817b3827b2837f4956
qapi: place outermost object on qiv stack

This is a slight change in the implementation of QMPInputVisitor
that helps when adding strict mode.

Const QObjects cannot be inc/decref-ed, and that's why QMPInputVisitor
relies heavily on weak references to inner objects.  I'm not removing
the weak references now, but since refcount+const is a lost battle in C
(C++ has "mutable") I think removing const is fine in this case.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
qapi/qmp-input-visitor.c