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

Lai Jiangshan
2010-12-09T06:56:30Z

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
---
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': {} }"