From patchwork Thu Jan 21 21:09:36 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [07/11] QError: New QERR_ASYNC_MSG_NOT_FOUND Date: Thu, 21 Jan 2010 11:09:36 -0000 From: Luiz Capitulino X-Patchwork-Id: 43459 Message-Id: <1264108180-3666-8-git-send-email-lcapitulino@redhat.com> To: qemu-devel@nongnu.org, armbru@redhat.com, aliguori@us.ibm.com, avi@redhat.com Cc: 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 9dd729a..12dcc8f 100644 --- a/qerror.c +++ b/qerror.c @@ -41,6 +41,10 @@ static const QType qerror_type = { */ static const QErrorStringTable qerror_table[] = { { + .error_fmt = QERR_ASYNC_MSG_NOT_FOUND, + .desc = "Asynchronous message %(name) has not been found", + }, + { .error_fmt = QERR_COMMAND_NOT_FOUND, .desc = "The command %(name) has not been found", }, diff --git a/qerror.h b/qerror.h index 9982d57..8e16b35 100644 --- a/qerror.h +++ b/qerror.h @@ -40,6 +40,9 @@ QError *qobject_to_qerror(const QObject *obj); /* * QError class list */ +#define QERR_ASYNC_MSG_NOT_FOUND \ + "{ 'class': 'AsyncMsgNotFound', 'data': { 'name': %s } }" + #define QERR_COMMAND_NOT_FOUND \ "{ 'class': 'CommandNotFound', 'data': { 'name': %s } }"