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>
virDomainGraphicsDefFormatListnes(childBuf, def, flags);
+ virDomainGraphicsDefFormatAudio(childBuf, def->data.vnc.audioId);
+
return 0;
}
break;
}
- if (def->type == VIR_DOMAIN_GRAPHICS_TYPE_VNC)
- virDomainGraphicsDefFormatAudio(&childBuf, def->data.vnc.audioId);
-
virXMLFormatElement(buf, "graphics", &attrBuf, &childBuf);
return 0;