[libvirt] [gconfig v2 5/6] config: Add spice listen getter/setter

Christophe Fergeau cfergeau at redhat.com
Fri Sep 2 14:18:08 UTC 2016


On Wed, Aug 17, 2016 at 06:58:50PM +0300, Visarion Alexandru wrote:
> From: Visarion Alexandru <viorel.visarion at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20160902/86ebe1a5/attachment-0001.sig>


More information about the libvir-list mailing list