On Wed, Aug 17, 2016 at 06:58:50PM +0300, Visarion Alexandru wrote:
From: Visarion Alexandru <viorel.visarion(a)gmail.com>
Learn to get/set the listen devices that spice graphics is using.
When setting the listen devices, first remove the 'listen'
attribute to avoid the inconsistencies checks between the 'listen'
attribute and the 'address' attribute of the 'listen' node.
---
.../libvirt-gconfig-domain-graphics-spice.c | 84 ++++++++++++++++++++++
.../libvirt-gconfig-domain-graphics-spice.h | 4 ++
libvirt-gconfig/libvirt-gconfig.sym | 2 +
3 files changed, 90 insertions(+)
diff --git a/libvirt-gconfig/libvirt-gconfig-domain-graphics-spice.c
b/libvirt-gconfig/libvirt-gconfig-domain-graphics-spice.c
index 079ea27..133eb1f 100644
--- a/libvirt-gconfig/libvirt-gconfig-domain-graphics-spice.c
+++ b/libvirt-gconfig/libvirt-gconfig-domain-graphics-spice.c
@@ -157,6 +157,90 @@ void gvir_config_domain_graphics_spice_set_image_compression
compression);
}
+/**
+ * gvir_config_domain_graphics_spice_set_listen_devices:
+ * @graphics: a #GVirConfigDomainGraphicsSpice
+ * @listens: (in) (element-type LibvirtGConfig.DomainGraphicsListen): listens
+ *
+ * This method is used to set the various listen nodes a #GVirConfigDomainGraphicsSpice
+ * device can handle.
+*/
+void gvir_config_domain_graphics_spice_set_listen_devices(GVirConfigDomainGraphicsSpice
*graphics,
+ GList *listens)
Same comment as in the previous patch regarding the naming.
Christophe