Patchwork [4/6] qemu,qmp: QError: New QERR_TOO_MANY_KEYS

login
register
mail settings
Submitter Lai Jiangshan
Date Dec. 9, 2010, 6:59 a.m.
Message ID <4D007E52.9080000@cn.fujitsu.com>
Download mbox | patch
Permalink /patch/74914/
State New
Headers show

Comments

Lai Jiangshan - Dec. 9, 2010, 6:59 a.m.
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
---

Patch

diff --git a/qerror.c b/qerror.c
index a7ef758..fd66d2a 100644
--- a/qerror.c
+++ b/qerror.c
@@ -197,6 +197,10 @@  static const QErrorStringTable qerror_table[] = {
         .desc      = "Too many open files",
     },
     {
+        .error_fmt = QERR_TOO_MANY_KEYS,
+        .desc      = "Too many keys",
+    },
+    {
         .error_fmt = QERR_UNDEFINED_ERROR,
         .desc      = "An undefined error has ocurred",
     },
diff --git a/qerror.h b/qerror.h
index 4fa95ef..7f56f12 100644
--- a/qerror.h
+++ b/qerror.h
@@ -162,6 +162,9 @@  QError *qobject_to_qerror(const QObject *obj);
 #define QERR_TOO_MANY_FILES \
     "{ 'class': 'TooManyFiles', 'data': {} }"
 
+#define QERR_TOO_MANY_KEYS \
+    "{ 'class': 'TooManyKeys', 'data': {} }"
+
 #define QERR_UNDEFINED_ERROR \
     "{ 'class': 'UndefinedError', 'data': {} }"