mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
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>
This commit is contained in:
parent
85ed303bfe
commit
44677ded43
4 changed files with 224 additions and 0 deletions
4
qerror.c
4
qerror.c
|
@ -185,6 +185,10 @@ static const QErrorStringTable qerror_table[] = {
|
|||
.error_fmt = QERR_OPEN_FILE_FAILED,
|
||||
.desc = "Could not open '%(filename)'",
|
||||
},
|
||||
{
|
||||
.error_fmt = QERR_PERMISSION_DENIED,
|
||||
.desc = "Insufficient permission to perform this operation",
|
||||
},
|
||||
{
|
||||
.error_fmt = QERR_PROPERTY_NOT_FOUND,
|
||||
.desc = "Property '%(device).%(property)' not found",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue