1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-20 06:50:22 +03:00

domain_conf: graphics: move remaining VNC formatting

Now we are able to move the rest into virDomainGraphicsDefFormatVNC
without breaking order of elements in the resulting XML.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Pavel Hrdina 2025-03-06 12:50:06 +01:00
parent 15599d3481
commit 1ef5926a80

View File

@ -26530,6 +26530,8 @@ virDomainGraphicsDefFormatVNC(virBuffer *attrBuf,
virDomainGraphicsDefFormatListnes(childBuf, def, flags);
virDomainGraphicsDefFormatAudio(childBuf, def->data.vnc.audioId);
return 0;
}
@ -26765,9 +26767,6 @@ virDomainGraphicsDefFormat(virBuffer *buf,
break;
}
if (def->type == VIR_DOMAIN_GRAPHICS_TYPE_VNC)
virDomainGraphicsDefFormatAudio(&childBuf, def->data.vnc.audioId);
virXMLFormatElement(buf, "graphics", &attrBuf, &childBuf);
return 0;