[libvirt PATCH 14/16] domain_conf: graphics: move remaining VNC formatting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 src/conf/domain_conf.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 34ed62cc99..27323ea768 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -26493,6 +26493,8 @@ virDomainGraphicsDefFormatVNC(virBuffer *attrBuf,
 
     virDomainGraphicsDefFormatListnes(childBuf, def, flags);
 
+    virDomainGraphicsDefFormatAudio(childBuf, def->data.vnc.audioId);
+
     return 0;
 }
 
@@ -26728,9 +26730,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;
-- 
2.48.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux