mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00: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:
3
qerror.h
3
qerror.h
@@ -156,6 +156,9 @@ QError *qobject_to_qerror(const QObject *obj);
|
||||
#define QERR_OPEN_FILE_FAILED \
|
||||
"{ 'class': 'OpenFileFailed', 'data': { 'filename': %s } }"
|
||||
|
||||
#define QERR_PERMISSION_DENIED \
|
||||
"{ 'class': 'PermissionDenied', 'data': {} }"
|
||||
|
||||
#define QERR_PROPERTY_NOT_FOUND \
|
||||
"{ 'class': 'PropertyNotFound', 'data': { 'device': %s, 'property': %s } }"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user