The "Reason" suffix exists in C API because there is another event
without the reason and the suffix, however, in libvirt-dbus we will
have only the version with reason.
Signed-off-by: Pavel Hrdina <phrdina(a)redhat.com>
---
data/org.libvirt.Domain.xml | 2 +-
src/events.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/data/org.libvirt.Domain.xml b/data/org.libvirt.Domain.xml
index 11dd922..b4ed495 100644
--- a/data/org.libvirt.Domain.xml
+++ b/data/org.libvirt.Domain.xml
@@ -659,7 +659,7 @@
<arg name="authScheme" type="s"/>
<arg name="identities" type="a(ss)"/>
</signal>
- <signal name="IOErrorReason">
+ <signal name="IOError">
<annotation name="org.gtk.GDBus.DocString"
value="See
https://libvirt.org/html/libvirt-libvirt-domain.html#virConnectDomainEven...
<arg name="srcPath" type="s"/>
diff --git a/src/events.c b/src/events.c
index a86ad20..b4793ba 100644
--- a/src/events.c
+++ b/src/events.c
@@ -258,7 +258,7 @@ virtDBusEventsDomainIOErrorReason(virConnectPtr connection
G_GNUC_UNUSED,
NULL,
path,
VIRT_DBUS_DOMAIN_INTERFACE,
- "IOErrorReason",
+ "IOError",
g_variant_new("(ssis)", srcPath,
VIRT_DBUS_EMPTY_STR(device),
action, reason),
--
2.17.0