Re: [PATCH libvirt-glib 5/5] config: add accel3d setter

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

 



On Fri, Feb 26, 2016 at 12:37:12PM +0100, Marc-André Lureau wrote:
> Learn to set the accel3d attribute on video model.
> 
> Signed-off-by: Marc-André Lureau <marcandre.lureau@xxxxxxxxx>
> ---
>  examples/config-demo.py                        |  1 +

> diff --git a/examples/config-demo.py b/examples/config-demo.py
> index 3fdc367..e92aa43 100644
> --- a/examples/config-demo.py
> +++ b/examples/config-demo.py
> @@ -63,6 +63,7 @@ domain.add_device(graphics)
>  
>  video = LibvirtGConfig.DomainVideo.new()
>  video.set_model(LibvirtGConfig.DomainVideoModel.VIRTIO)
> +video.set_accel3d(True)
>  domain.add_device(video)
>  
>  console = LibvirtGConfig.DomainConsole.new()

For what it's worth, there is tests/test-gconfig.c which tries to test
that libvirt-gconfig setters/getters are consistent, and which checks
that the generated XML is the expected one. This is probably a better
place than config-demo.py to add some test code in the future.

Christophe

Attachment: signature.asc
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[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]