From: Luiz Capitulino Date: Fri, 4 Dec 2009 17:24:08 +0000 (-0200) Subject: QError: Add class for invalid passwords X-Git-Tag: v0.12.0-rc2~79 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6ccc51fd20bbb016667a0ba06698f1cc71859917;p=thirdparty%2Fqemu.git QError: Add class for invalid passwords Signed-off-by: Luiz Capitulino Signed-off-by: Anthony Liguori (cherry picked from commit f6d855c50dfd68f33f6dee70e5ccdfb144a2da26) --- diff --git a/qerror.c b/qerror.c index d00e5347e1f..eb4ce333123 100644 --- a/qerror.c +++ b/qerror.c @@ -56,6 +56,10 @@ static const QErrorStringTable qerror_table[] = { .error_fmt = QERR_INVALID_PARAMETER_TYPE, .desc = "Invalid parameter type, expected: %(expected)", }, + { + .error_fmt = QERR_INVALID_PASSWORD, + .desc = "The entered password is invalid", + }, { .error_fmt = QERR_KVM_MISSING_CAP, .desc = "Using KVM without %(capability), %(feature) unavailable", diff --git a/qerror.h b/qerror.h index 5fd99314633..5198adf14c5 100644 --- a/qerror.h +++ b/qerror.h @@ -50,6 +50,9 @@ QError *qobject_to_qerror(const QObject *obj); #define QERR_INVALID_PARAMETER_TYPE \ "{ 'class': 'InvalidParameterType', 'data': { 'name': %s,'expected': %s } }" +#define QERR_INVALID_PASSWORD \ + "{ 'class': 'InvalidPassword', 'data': {} }" + #define QERR_KVM_MISSING_CAP \ "{ 'class': 'KVMMissingCap', 'data': { 'capability': %s, 'feature': %s } }"