For some of these properties there is no libvirt event to detect the
change and for properties where we could somehow detect the change
let's annotate them as well.
We could change the properties to methods but with the annotation we
can keep them as properties in order to allow to get them by single
D-Bus call.
Signed-off-by: Pavel Hrdina <phrdina(a)redhat.com>
---
data/org.libvirt.Connect.xml | 3 +++
data/org.libvirt.Domain.xml | 9 +++++++++
data/org.libvirt.Network.xml | 3 +++
3 files changed, 15 insertions(+)
diff --git a/data/org.libvirt.Connect.xml b/data/org.libvirt.Connect.xml
index ee7bfdc..3bddb89 100644
--- a/data/org.libvirt.Connect.xml
+++ b/data/org.libvirt.Connect.xml
@@ -11,10 +11,12 @@
<property name="Hostname" type="s"
access="read">
<annotation name="org.gtk.GDBus.DocString"
value="See
https://libvirt.org/html/libvirt-libvirt-host.html#virConnectGetHostname&...
+ <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal"
value="false"/>
</property>
<property name="LibVersion" type="t"
access="read">
<annotation name="org.gtk.GDBus.DocString"
value="See
https://libvirt.org/html/libvirt-libvirt-host.html#virConnectGetLibVersio...
+ <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal"
value="false"/>
</property>
<property name="Secure" type="b" access="read">
<annotation name="org.gtk.GDBus.DocString"
@@ -24,6 +26,7 @@
<property name="Version" type="t" access="read">
<annotation name="org.gtk.GDBus.DocString"
value="See
https://libvirt.org/html/libvirt-libvirt-host.html#virConnectGetVersion&q...
+ <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal"
value="false"/>
</property>
<method name="BaselineCPU">
<annotation name="org.gtk.GDBus.DocString"
diff --git a/data/org.libvirt.Domain.xml b/data/org.libvirt.Domain.xml
index db43b1c..fcd3221 100644
--- a/data/org.libvirt.Domain.xml
+++ b/data/org.libvirt.Domain.xml
@@ -6,39 +6,48 @@
<property name="Active" type="b" access="read">
<annotation name="org.gtk.GDBus.DocString"
value="See
https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainIsActive&qu...
+ <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal"
value="false"/>
</property>
<property name="Autostart" type="b"
access="readwrite">
<annotation name="org.gtk.GDBus.DocString"
value="See
https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetAutostart and
https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetAutostar...
+ <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal"
value="false"/>
</property>
<property name="Id" type="u" access="read">
<annotation name="org.gtk.GDBus.DocString"
value="See
https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetID"...
+ <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal"
value="false"/>
</property>
<property name="Name" type="s" access="read">
<annotation name="org.gtk.GDBus.DocString"
value="See
https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetName&quo...
+ <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal"
value="false"/>
</property>
<property name="OSType" type="s" access="read">
<annotation name="org.gtk.GDBus.DocString"
value="See
https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetOSType&q...
+ <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal"
value="false"/>
</property>
<property name="Persistent" type="b"
access="read">
<annotation name="org.gtk.GDBus.DocString"
value="See
https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainIsPersisten...
+ <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal"
value="false"/>
</property>
<property name="SchedulerType" type="(si)"
access="read">
<annotation name="org.gtk.GDBus.DocString"
value="See
https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetSchedule...
+ <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal"
value="false"/>
</property>
<property name="State" type="s" access="read">
<annotation name="org.gtk.GDBus.DocString"
value="See
https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetState&qu...
+ <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal"
value="false"/>
</property>
<property name="Updated" type="b" access="read">
<annotation name="org.gtk.GDBus.DocString"
value="See
https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainIsUpdated&q...
+ <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal"
value="false"/>
</property>
<property name="UUID" type="s" access="read">
<annotation name="org.gtk.GDBus.DocString"
diff --git a/data/org.libvirt.Network.xml b/data/org.libvirt.Network.xml
index 81bf081..e31417c 100644
--- a/data/org.libvirt.Network.xml
+++ b/data/org.libvirt.Network.xml
@@ -6,11 +6,13 @@
<property name="Active" type="b" access="read">
<annotation name="org.gtk.GDBus.DocString"
value="See
https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkIsActive&...
+ <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal"
value="false"/>
</property>
<property name="Autostart" type="b"
access="readwrite">
<annotation name="org.gtk.GDBus.DocString"
value="See
https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkGetAutostart and
https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkSetAutost...
+ <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal"
value="false"/>
</property>
<property name="Name" type="s" access="read">
<annotation name="org.gtk.GDBus.DocString"
@@ -19,6 +21,7 @@
<property name="Persistent" type="b"
access="read">
<annotation name="org.gtk.GDBus.DocString"
value="See
https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkIsPersist...
+ <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal"
value="false"/>
</property>
<property name="UUID" type="s" access="read">
<annotation name="org.gtk.GDBus.DocString"
--
2.14.3