error: New QERR_PROPERTY_VALUE_IN_USE

This commit is contained in:
Markus Armbruster 2010-03-16 17:40:48 +01:00
parent 06b4a703e0
commit 9c5eff958d
2 changed files with 7 additions and 0 deletions

View File

@ -112,6 +112,10 @@ static const QErrorStringTable qerror_table[] = {
.error_fmt = QERR_PROPERTY_VALUE_BAD, .error_fmt = QERR_PROPERTY_VALUE_BAD,
.desc = "Property '%(device).%(property)' doesn't take value '%(value)'", .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, .error_fmt = QERR_QMP_BAD_INPUT_OBJECT,
.desc = "Bad QMP input object", .desc = "Bad QMP input object",

View File

@ -96,6 +96,9 @@ QError *qobject_to_qerror(const QObject *obj);
#define QERR_PROPERTY_VALUE_BAD \ #define QERR_PROPERTY_VALUE_BAD \
"{ 'class': 'PropertyValueBad', 'data': { 'device': %s, 'property': %s, 'value': %s } }" "{ '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 \ #define QERR_QMP_BAD_INPUT_OBJECT \
"{ 'class': 'QMPBadInputObject', 'data': { 'expected': %s } }" "{ 'class': 'QMPBadInputObject', 'data': { 'expected': %s } }"