Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
}
+bool
+virDomainObjIsFailedPostcopy(virDomainObj *dom)
+{
+ return ((dom->state.state == VIR_DOMAIN_PAUSED &&
+ dom->state.reason == VIR_DOMAIN_PAUSED_POSTCOPY_FAILED) ||
+ (dom->state.state == VIR_DOMAIN_RUNNING &&
+ dom->state.reason == VIR_DOMAIN_RUNNING_POSTCOPY_FAILED));
+}
+
+
void
virDomainObjSetState(virDomainObj *dom, virDomainState state, int reason)
{
virDomainObjGetState(virDomainObj *obj, int *reason)
ATTRIBUTE_NONNULL(1);
+bool
+virDomainObjIsFailedPostcopy(virDomainObj *obj)
+ ATTRIBUTE_NONNULL(1);
+
virSecurityLabelDef *
virDomainDefGetSecurityLabelDef(const virDomainDef *def, const char *model);
virDomainObjGetOneDefState;
virDomainObjGetPersistentDef;
virDomainObjGetState;
+virDomainObjIsFailedPostcopy;
virDomainObjNew;
virDomainObjParseFile;
virDomainObjParseNode;