]> git.proxmox.com Git - mirror_qemu.git/commit
qom: add new dynamic property infrastructure based on Visitors (v2)
authorAnthony Liguori <aliguori@us.ibm.com>
Mon, 12 Dec 2011 20:29:26 +0000 (14:29 -0600)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 15 Dec 2011 15:20:47 +0000 (09:20 -0600)
commit44677ded43f1dec44fabfe52f3a4f6eb28134f95
treebf238a0e96f0f23df7d80d83c3674128f340a489
parent85ed303bfe1f67a4c18ffe51916e73cffd7d9e9b
qom: add new dynamic property infrastructure based on Visitors (v2)

qdev properties are settable only during construction and static to classes.
This isn't flexible enough for QOM.

This patch introduces a property interface for qdev that provides dynamic
properties that are tied to objects, instead of classes.  These properties are
Visitor based instead of string based too.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/qdev.c
hw/qdev.h
qerror.c
qerror.h