QError: New QERR_QMP_BAD_INPUT_OBJECT_MEMBER

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
Luiz Capitulino 2010-04-07 14:46:33 -03:00
parent a303f9e37b
commit 7dfb61238a
2 changed files with 7 additions and 0 deletions

View File

@ -172,6 +172,10 @@ static const QErrorStringTable qerror_table[] = {
.error_fmt = QERR_QMP_BAD_INPUT_OBJECT, .error_fmt = QERR_QMP_BAD_INPUT_OBJECT,
.desc = "Bad QMP input object", .desc = "Bad QMP input object",
}, },
{
.error_fmt = QERR_QMP_BAD_INPUT_OBJECT_MEMBER,
.desc = "QMP input object member '%(member)' expects '%(expected)'",
},
{ {
.error_fmt = QERR_SET_PASSWD_FAILED, .error_fmt = QERR_SET_PASSWD_FAILED,
.desc = "Could not set password", .desc = "Could not set password",

View File

@ -145,6 +145,9 @@ QError *qobject_to_qerror(const QObject *obj);
#define QERR_QMP_BAD_INPUT_OBJECT \ #define QERR_QMP_BAD_INPUT_OBJECT \
"{ 'class': 'QMPBadInputObject', 'data': { 'expected': %s } }" "{ 'class': 'QMPBadInputObject', 'data': { 'expected': %s } }"
#define QERR_QMP_BAD_INPUT_OBJECT_MEMBER \
"{ 'class': 'QMPBadInputObjectMember', 'data': { 'member': %s, 'expected': %s } }"
#define QERR_SET_PASSWD_FAILED \ #define QERR_SET_PASSWD_FAILED \
"{ 'class': 'SetPasswdFailed', 'data': {} }" "{ 'class': 'SetPasswdFailed', 'data': {} }"