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

[libvirt] [libvirt-glib 2/2] gobject: Emit a signal on WAKEUP events



This avoids a runtime warning about this kind of event not
being handled.
---
 libvirt-gobject/libvirt-gobject-connection.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libvirt-gobject/libvirt-gobject-connection.c b/libvirt-gobject/libvirt-gobject-connection.c
index ad7aa07..9628989 100644
--- a/libvirt-gobject/libvirt-gobject-connection.c
+++ b/libvirt-gobject/libvirt-gobject-connection.c
@@ -327,6 +327,8 @@ static int domain_event_cb(virConnectPtr conn G_GNUC_UNUSED,
                 g_signal_emit_by_name(gdom, "started::restored");
             else if (detail == VIR_DOMAIN_EVENT_STARTED_FROM_SNAPSHOT)
                 g_signal_emit_by_name(gdom, "started::from-snapshot");
+            else if (detail == VIR_DOMAIN_EVENT_STARTED_WAKEUP)
+                g_signal_emit_by_name(gdom, "started::wakeup");
             else
                 g_warn_if_reached();
             break;
-- 
1.7.11.4


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