]> git.proxmox.com Git - qemu.git/commitdiff
QError: Introduce QERR_QMP_EXTRA_MEMBER
authorLuiz Capitulino <lcapitulino@redhat.com>
Tue, 1 Jun 2010 19:15:23 +0000 (16:15 -0300)
committerLuiz Capitulino <lcapitulino@redhat.com>
Thu, 1 Jul 2010 17:27:13 +0000 (14:27 -0300)
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
qerror.c
qerror.h

index cce1e7befa25390aaef40ddb35bc571b8ebc684f..2f6f59061f317a1d0fee11d357e4dc89774f38dd 100644 (file)
--- a/qerror.c
+++ b/qerror.c
@@ -176,6 +176,10 @@ static const QErrorStringTable qerror_table[] = {
         .error_fmt = QERR_QMP_BAD_INPUT_OBJECT_MEMBER,
         .desc      = "QMP input object member '%(member)' expects '%(expected)'",
     },
+    {
+        .error_fmt = QERR_QMP_EXTRA_MEMBER,
+        .desc      = "QMP input object member '%(member)' is unexpected",
+    },
     {
         .error_fmt = QERR_SET_PASSWD_FAILED,
         .desc      = "Could not set password",
index 77ae57464e4f1ae73b9038c3f6ce41ab8787647a..9ad00b4b82fbe60aea34ef2e81158945ec293fa3 100644 (file)
--- a/qerror.h
+++ b/qerror.h
@@ -148,6 +148,9 @@ QError *qobject_to_qerror(const QObject *obj);
 #define QERR_QMP_BAD_INPUT_OBJECT_MEMBER \
     "{ 'class': 'QMPBadInputObjectMember', 'data': { 'member': %s, 'expected': %s } }"
 
+#define QERR_QMP_EXTRA_MEMBER \
+    "{ 'class': 'QMPExtraInputObjectMember', 'data': { 'member': %s } }"
+
 #define QERR_SET_PASSWD_FAILED \
     "{ 'class': 'SetPasswdFailed', 'data': {} }"