From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NGbtG-0000qd-DS for qemu-devel@nongnu.org; Fri, 04 Dec 2009 12:24:22 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NGbtB-0000o7-M5 for qemu-devel@nongnu.org; Fri, 04 Dec 2009 12:24:21 -0500 Received: from [199.232.76.173] (port=38196 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGbtB-0000o4-Eh for qemu-devel@nongnu.org; Fri, 04 Dec 2009 12:24:17 -0500 Received: from mx1.redhat.com ([209.132.183.28]:24444) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NGbtB-0000qL-C6 for qemu-devel@nongnu.org; Fri, 04 Dec 2009 12:24:17 -0500 From: Luiz Capitulino Date: Fri, 4 Dec 2009 15:24:08 -0200 Message-Id: <1259947449-17576-2-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1259947449-17576-1-git-send-email-lcapitulino@redhat.com> References: <1259947449-17576-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PATCH 1/2] QError: Add class for invalid passwords List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com Signed-off-by: Luiz Capitulino --- qerror.c | 4 ++++ qerror.h | 3 +++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/qerror.c b/qerror.c index 92d9622..18be7e3 100644 --- a/qerror.c +++ b/qerror.c @@ -61,6 +61,10 @@ const QErrorStringTable qerror_table[] = { .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 a747ff6..c9fcf97 100644 --- a/qerror.h +++ b/qerror.h @@ -53,6 +53,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 } }" -- 1.6.6.rc1.5.ge21a85