From 7a84cb23c077488b0e1926b3e909ea128a80dc58 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Mon, 7 Dec 2009 21:37:07 +0100 Subject: [PATCH] QError: New QERR_SET_PASSWD_FAILED Signed-off-by: Markus Armbruster Signed-off-by: Anthony Liguori --- qerror.c | 4 ++++ qerror.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/qerror.c b/qerror.c index 56083c489d..1bb68c417a 100644 --- a/qerror.c +++ b/qerror.c @@ -92,6 +92,10 @@ static const QErrorStringTable qerror_table[] = { .error_fmt = QERR_QMP_BAD_INPUT_OBJECT, .desc = "Bad QMP input object", }, + { + .error_fmt = QERR_SET_PASSWD_FAILED, + .desc = "Could not set password", + }, { .error_fmt = QERR_UNDEFINED_ERROR, .desc = "An undefined error has ocurred", diff --git a/qerror.h b/qerror.h index 681390cf1d..b85689933b 100644 --- a/qerror.h +++ b/qerror.h @@ -77,6 +77,9 @@ QError *qobject_to_qerror(const QObject *obj); #define QERR_QMP_BAD_INPUT_OBJECT \ "{ 'class': 'QMPBadInputObject', 'data': { 'expected': %s } }" +#define QERR_SET_PASSWD_FAILED \ + "{ 'class': 'SetPasswdFailed', 'data': {} }" + #define QERR_UNDEFINED_ERROR \ "{ 'class': 'UndefinedError', 'data': {} }"