[dbus PATCH 4/4] events: Rename IOErrorReason event

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

 



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@xxxxxxxxxx>
---
 data/org.libvirt.Domain.xml |  2 +-
 src/events.c                | 16 ++++++++--------
 2 files changed, 9 insertions(+), 9 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#virConnectDomainEventIOErrorReasonCallback"/>
       <arg name="srcPath" type="s"/>
diff --git a/src/events.c b/src/events.c
index 6cc2164..b51664f 100644
--- a/src/events.c
+++ b/src/events.c
@@ -241,13 +241,13 @@ virtDBusEventsDomainGraphics(virConnectPtr connection G_GNUC_UNUSED,
 }
 
 static gint
-virtDBusEventsDomainIOErrorReason(virConnectPtr connection G_GNUC_UNUSED,
-                                  virDomainPtr domain,
-                                  const gchar *srcPath,
-                                  const gchar *device,
-                                  gint action,
-                                  const gchar *reason,
-                                  gpointer opaque)
+virtDBusEventsDomainIOError(virConnectPtr connection G_GNUC_UNUSED,
+                            virDomainPtr domain,
+                            const gchar *srcPath,
+                            const gchar *device,
+                            gint action,
+                            const gchar *reason,
+                            gpointer opaque)
 {
     virtDBusConnect *connect = opaque;
     g_autofree gchar *path = NULL;
@@ -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

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