diff options
author | Markus Armbruster <armbru@redhat.com> | 2010-03-16 17:40:48 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2010-03-16 17:45:26 +0100 |
commit | 9c5eff958d527d1803114a6f78d086fb313b9bd2 (patch) | |
tree | 24a44e0f27486bb6c7ab02c01f2c6f276b0cabdc | |
parent | 06b4a703e0e87034a8b122f6ffc50c732e7ceddd (diff) |
error: New QERR_PROPERTY_VALUE_IN_USE
-rw-r--r-- | qerror.c | 4 | ||||
-rw-r--r-- | qerror.h | 3 |
2 files changed, 7 insertions, 0 deletions
@@ -113,6 +113,10 @@ static const QErrorStringTable qerror_table[] = { .desc = "Property '%(device).%(property)' doesn't take value '%(value)'", }, { + .error_fmt = QERR_PROPERTY_VALUE_IN_USE, + .desc = "Property '%(device).%(property)' can't take value '%(value)', it's in use", + }, + { .error_fmt = QERR_QMP_BAD_INPUT_OBJECT, .desc = "Bad QMP input object", }, @@ -96,6 +96,9 @@ QError *qobject_to_qerror(const QObject *obj); #define QERR_PROPERTY_VALUE_BAD \ "{ 'class': 'PropertyValueBad', 'data': { 'device': %s, 'property': %s, 'value': %s } }" +#define QERR_PROPERTY_VALUE_IN_USE \ + "{ 'class': 'PropertyValueInUse', 'data': { 'device': %s, 'property': %s, 'value': %s } }" + #define QERR_QMP_BAD_INPUT_OBJECT \ "{ 'class': 'QMPBadInputObject', 'data': { 'expected': %s } }" |