]> git.proxmox.com Git - qemu.git/commit - qmp.c
qom: add QObject-based property get/set wrappers
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 1 Feb 2012 15:58:47 +0000 (16:58 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 7 Feb 2012 12:52:40 +0000 (13:52 +0100)
commit9f5f135058e22a6f7b3d8ca02e388e502c0d161f
treecd9d2f4af08442c57ad5c021b31f9ca7bdb0dee2
parentb46d9b1082054cba5af5ccab584f0e22a5264057
qom: add QObject-based property get/set wrappers

Move the creation of QmpInputVisitor and QmpOutputVisitor from qmp.c
to qom/object.c, since it's the only practical way to access object
properties.

Keep this isolated such that it's easy to remove.  At some point, we need
to remove all usage of QObject in the tree and replace it with GVariant.

Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/qemu/qom-qobject.h [new file with mode: 0644]
qmp.c
qom/Makefile
qom/qom-qobject.c [new file with mode: 0644]