From 8182ac16971ff2def684978373bc147c9c8e6fec Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Tue, 16 Mar 2010 17:40:48 +0100 Subject: [PATCH] error: New QERR_PROPERTY_VALUE_IN_USE --- qerror.c | 4 ++++ qerror.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/qerror.c b/qerror.c index 62bb00f..6b59388 100644 --- a/qerror.c +++ b/qerror.c @@ -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", }, diff --git a/qerror.h b/qerror.h index d5f0e9d..f7a10b7 100644 --- a/qerror.h +++ b/qerror.h @@ -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 } }" -- 2.7.4