[libvirt] [libvirt-perl][PATCH] Register VIR_NODE_DEVICE_EVENT_ID_UPDATE constant

Michal Privoznik mprivozn at redhat.com
Tue Aug 16 09:01:23 UTC 2016


Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---

I figured that there's no need to update Changelog here as it
already mentions nodedev events implementation.

 Virt.xs                    | 1 +
 lib/Sys/Virt/NodeDevice.pm | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/Virt.xs b/Virt.xs
index 5025f2e..ee83431 100644
--- a/Virt.xs
+++ b/Virt.xs
@@ -8635,6 +8635,7 @@ BOOT:
       REGISTER_CONSTANT(VIR_CONNECT_LIST_NODE_DEVICES_CAP_SCSI_GENERIC, LIST_CAP_SCSI_GENERIC);
 
       REGISTER_CONSTANT(VIR_NODE_DEVICE_EVENT_ID_LIFECYCLE, EVENT_ID_LIFECYCLE);
+      REGISTER_CONSTANT(VIR_NODE_DEVICE_EVENT_ID_UPDATE, EVENT_ID_UPDATE);
 
       REGISTER_CONSTANT(VIR_NODE_DEVICE_EVENT_CREATED, EVENT_CREATED);
       REGISTER_CONSTANT(VIR_NODE_DEVICE_EVENT_DELETED, EVENT_DELETED);
diff --git a/lib/Sys/Virt/NodeDevice.pm b/lib/Sys/Virt/NodeDevice.pm
index 4a8212b..1ebb97f 100644
--- a/lib/Sys/Virt/NodeDevice.pm
+++ b/lib/Sys/Virt/NodeDevice.pm
@@ -175,6 +175,10 @@ Include devices with the SCSI generic capability
 
 Node device lifecycle events
 
+=item Sys::Virt::NodeDevice::EVENT_ID_UPDATE
+
+Node device update events
+
 =back
 
 =head2 LIFECYCLE CHANGE EVENTS
-- 
2.8.4




More information about the libvir-list mailing list