diff mbox

[34/50] error: New QERR_BUS_NOT_FOUND

Message ID 1267718231-13303-35-git-send-email-armbru@redhat.com
State New
Headers show

Commit Message

Markus Armbruster March 4, 2010, 3:56 p.m. UTC
Signed-off-by: Markus Armbruster <armbru@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 62bb00f..e7a485e 100644
--- a/qerror.c
+++ b/qerror.c
@@ -41,6 +41,10 @@  static const QType qerror_type = {
  */
 static const QErrorStringTable qerror_table[] = {
     {
+        .error_fmt = QERR_BUS_NOT_FOUND,
+        .desc      = "Bus '%(bus)' not found",
+    },
+    {
         .error_fmt = QERR_COMMAND_NOT_FOUND,
         .desc      = "The command %(name) has not been found",
     },
diff --git a/qerror.h b/qerror.h
index d5f0e9d..2f06dc7 100644
--- a/qerror.h
+++ b/qerror.h
@@ -42,6 +42,9 @@  QError *qobject_to_qerror(const QObject *obj);
 /*
  * QError class list
  */
+#define QERR_BUS_NOT_FOUND \
+    "{ 'class': 'BusNotFound', 'data': { 'bus': %s } }"
+
 #define QERR_COMMAND_NOT_FOUND \
     "{ 'class': 'CommandNotFound', 'data': { 'name': %s } }"