Patchwork [FOR,0.12,10/18] QError: New QERR_VNC_SERVER_FAILED

login
register
mail settings
Submitter Markus Armbruster
Date Dec. 7, 2009, 8:37 p.m.
Message ID <1260218236-22143-11-git-send-email-armbru@redhat.com>
Download mbox | patch
Permalink /patch/40531/
State New
Headers show

Comments

Markus Armbruster - Dec. 7, 2009, 8:37 p.m.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 qerror.c |    4 ++++
 qerror.h |    3 +++
 2 files changed, 7 insertions(+), 0 deletions(-)

Patch

diff --git a/qerror.c b/qerror.c
index 1bb68c4..128a91e 100644
--- a/qerror.c
+++ b/qerror.c
@@ -100,6 +100,10 @@  static const QErrorStringTable qerror_table[] = {
         .error_fmt = QERR_UNDEFINED_ERROR,
         .desc      = "An undefined error has ocurred",
     },
+    {
+        .error_fmt = QERR_VNC_SERVER_FAILED,
+        .desc      = "Could not start VNC server on %(target)",
+    },
     {}
 };
 
diff --git a/qerror.h b/qerror.h
index b856899..1a05d9a 100644
--- a/qerror.h
+++ b/qerror.h
@@ -83,4 +83,7 @@  QError *qobject_to_qerror(const QObject *obj);
 #define QERR_UNDEFINED_ERROR \
     "{ 'class': 'UndefinedError', 'data': {} }"
 
+#define QERR_VNC_SERVER_FAILED \
+    "{ 'class': 'VNCServerFailed', 'data': { 'target': %s } }"
+
 #endif /* QERROR_H */