Received: from eggs.gnu.org ([208.118.235.92]:48583) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SV1mm-0000Xb-Ju for qemu-devel@nongnu.org; Thu, 17 May 2012 10:34:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SV1mj-0001yN-MU for qemu-devel@nongnu.org; Thu, 17 May 2012 10:34:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:27456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SV1mj-0001xw-EA for qemu-devel@nongnu.org; Thu, 17 May 2012 10:34:33 -0400 From: Luiz Capitulino Date: Thu, 17 May 2012 11:33:35 -0300 Message-Id: <1337265221-7136-11-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1337265221-7136-1-git-send-email-lcapitulino@redhat.com> References: <1337265221-7136-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PATCH 10/16] qerror: introduce QERR_INVALID_OPTION_GROUP List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, aliguori@us.ibm.com, lersek@redhat.com, mdroth@linux.vnet.ibm.com, armbru@redhat.com Signed-off-by: Luiz Capitulino --- qerror.c | 4 ++++ qerror.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/qerror.c b/qerror.c index 5092fe7..92c4eff 100644 --- a/qerror.c +++ b/qerror.c @@ -156,6 +156,10 @@ static const QErrorStringTable qerror_table[] = { .desc = "Invalid block format '%(name)'", }, { + .error_fmt = QERR_INVALID_OPTION_GROUP, + .desc = "There is no option group '%(group)'", + }, + { .error_fmt = QERR_INVALID_PARAMETER, .desc = "Invalid parameter '%(name)'", }, diff --git a/qerror.h b/qerror.h index 4cbba48..b4c8758 100644 --- a/qerror.h +++ b/qerror.h @@ -139,6 +139,9 @@ QError *qobject_to_qerror(const QObject *obj); #define QERR_INVALID_BLOCK_FORMAT \ "{ 'class': 'InvalidBlockFormat', 'data': { 'name': %s } }" +#define QERR_INVALID_OPTION_GROUP \ + "{ 'class': 'InvalidOptionGroup', 'data': { 'group': %s } }" + #define QERR_INVALID_PARAMETER \ "{ 'class': 'InvalidParameter', 'data': { 'name': %s } }" -- 1.7.9.2.384.g4a92a