diff options
| author | Anthony Liguori <aliguori@us.ibm.com> | 2011-12-12 14:29:26 -0600 |
|---|---|---|
| committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-12-15 09:20:47 -0600 |
| commit | 44677ded43f1dec44fabfe52f3a4f6eb28134f95 (patch) | |
| tree | bf238a0e96f0f23df7d80d83c3674128f340a489 /qerror.c | |
| parent | 85ed303bfe1f67a4c18ffe51916e73cffd7d9e9b (diff) | |
| download | focaccia-qemu-44677ded43f1dec44fabfe52f3a4f6eb28134f95.tar.gz focaccia-qemu-44677ded43f1dec44fabfe52f3a4f6eb28134f95.zip | |
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>
Diffstat (limited to 'qerror.c')
| -rw-r--r-- | qerror.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qerror.c b/qerror.c index 830c9c3ddf..adde8a5859 100644 --- a/qerror.c +++ b/qerror.c @@ -186,6 +186,10 @@ static const QErrorStringTable qerror_table[] = { .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", }, |