Re: [dbus PATCH 10/19] Implement Name property for StoragePool Interface

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

 



On Mon, May 07, 2018 at 04:40:51PM +0200, Katerina Koukiou wrote:
> Signed-off-by: Katerina Koukiou <kkoukiou@xxxxxxxxxx>
> ---
>  data/org.libvirt.StoragePool.xml |  4 ++++
>  src/storagepool.c                | 23 +++++++++++++++++++++++
>  tests/test_storage.py            |  1 +
>  3 files changed, 28 insertions(+)
> 
> diff --git a/data/org.libvirt.StoragePool.xml b/data/org.libvirt.StoragePool.xml
> index 29d501b..8bc90b7 100644
> --- a/data/org.libvirt.StoragePool.xml
> +++ b/data/org.libvirt.StoragePool.xml
> @@ -8,6 +8,10 @@
>        <annotation name="org.gtk.GDBus.DocString"
>            value="See https://libvirt.org/html/libvirt-libvirt-storage.html#virStoragePoolGetAutostart"/>
>      </property>
> +    <property name="Name" type="s" access="read">
> +      <annotation name="org.gtk.GDBus.DocString"
> +          value="See https://libvirt.org/html/libvirt-libvirt-storage.html#virStoragePoolGetName"/>
> +    </property>

This should be annotated as 'const' because there is no API to change
the name. The only way is to undefine it and define it again.

Pavel

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]

  Powered by Linux