===================================================================
@@ -209,6 +209,14 @@ static const QErrorStringTable qerror_ta
.error_fmt = QERR_VNC_SERVER_FAILED,
.desc = "Could not start VNC server on %(target)",
},
+ {
+ .error_fmt = QERR_IN_PROGRESS,
+ .desc = "Operation %(operation) in progress",
+ },
+ {
+ .error_fmt = QERR_BLOCKCOPY_IMAGE_SIZE_DIFFERS,
+ .desc = "Length of destination image differs from source image",
+ },
{}
};
===================================================================
@@ -174,4 +174,10 @@ QError *qobject_to_qerror(const QObject
#define QERR_FEATURE_DISABLED \
"{ 'class': 'FeatureDisabled', 'data': { 'name': %s } }"
+#define QERR_IN_PROGRESS \
+ "{ 'class': 'InProgress', 'data': { 'operation': %s } }"
+
+#define QERR_BLOCKCOPY_IMAGE_SIZE_DIFFERS \
+ "{ 'class': 'BlockCopyImageSizeDiffers', 'data': {} }"
+
#endif /* QERROR_H */
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>