qemu: Use VIR_ERR_DEPRECATED in QemuAttach and DomainXMLFromNative stubs

We've deprecated qemuConnectDomainXMLFromNative qemuDomainQemuAttach.
Switch the error code from VIR_ERR_OPERATION_UNSUPPORTED to the new
VIR_ERR_DEPRECATED.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2019-06-21 08:29:22 +02:00
parent 226094fbc4
commit 6f532d7ffc

View File

@ -7327,7 +7327,7 @@ qemuConnectDomainXMLFromNative(virConnectPtr conn,
if (virConnectDomainXMLFromNativeEnsureACL(conn) < 0)
return NULL;
virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
virReportError(VIR_ERR_DEPRECATED, "%s",
_("converting arbitrary QEMU command lines to libvirt domain XML is no longer supported"));
return NULL;
}
@ -16779,7 +16779,7 @@ qemuDomainQemuAttach(virConnectPtr conn ATTRIBUTE_UNUSED,
{
virCheckFlags(0, NULL);
virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
virReportError(VIR_ERR_DEPRECATED, "%s",
_("attaching to a QEMU process started outside of libvirt is no longer supported"));
return NULL;
}