From a4acc064f7054877aeffe0ea27a492b15086b833 Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Fri, 2 Dec 2011 14:58:12 -0200 Subject: QError: Introduce new errors for the migration command The new errors are QERR_MIGRATION_ACTIVE and QERR_MIGRATION_NOT_SUPPORTED, which are going to be used by the QAPI converted migration command. Signed-off-by: Luiz Capitulino --- qerror.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'qerror.h') diff --git a/qerror.h b/qerror.h index e26c63598d..e16f9c27e1 100644 --- a/qerror.h +++ b/qerror.h @@ -166,6 +166,12 @@ QError *qobject_to_qerror(const QObject *obj); #define QERR_KVM_MISSING_CAP \ "{ 'class': 'KVMMissingCap', 'data': { 'capability': %s, 'feature': %s } }" +#define QERR_MIGRATION_ACTIVE \ + "{ 'class': 'MigrationActive', 'data': {} }" + +#define QERR_MIGRATION_NOT_SUPPORTED \ + "{ 'class': 'MigrationNotSupported', 'data': {'device': %s} }" + #define QERR_MIGRATION_EXPECTED \ "{ 'class': 'MigrationExpected', 'data': {} }" -- cgit v1.2.3