diff mbox

[07/11] QError: New QERR_ASYNC_MSG_NOT_FOUND

Message ID 1264108180-3666-8-git-send-email-lcapitulino@redhat.com
State New
Headers show

Commit Message

Luiz Capitulino Jan. 21, 2010, 9:09 p.m. UTC
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
 qerror.c |    4 ++++
 qerror.h |    3 +++
 2 files changed, 7 insertions(+), 0 deletions(-)
diff mbox

Patch

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 } }"