Add new storage pool event constants
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 20 Sep 2017 15:02:08 +0000 (16:02 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 20 Sep 2017 15:02:08 +0000 (16:02 +0100)
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

Changes
Virt.xs
lib/Sys/Virt/StoragePool.pm

diff --git a/Changes b/Changes
index 9b3df6b..07a3b8e 100644 (file)
--- a/Changes
+++ b/Changes
@@ -2,7 +2,7 @@ Revision history for perl module Sys::Virt
 
 3.8.0 2017-10-00
 
- - XXX
+ - Add VIR_STORAGE_POOL_EVENT_{DELETED,CREATED} constants
 
 3.7.0 2017-09-04
 
diff --git a/Virt.xs b/Virt.xs
index f6c39cc..9243b7f 100644 (file)
--- a/Virt.xs
+++ b/Virt.xs
@@ -9142,6 +9142,8 @@ BOOT:
       REGISTER_CONSTANT(VIR_STORAGE_POOL_EVENT_UNDEFINED, EVENT_UNDEFINED);
       REGISTER_CONSTANT(VIR_STORAGE_POOL_EVENT_STARTED, EVENT_STARTED);
       REGISTER_CONSTANT(VIR_STORAGE_POOL_EVENT_STOPPED, EVENT_STOPPED);
+      REGISTER_CONSTANT(VIR_STORAGE_POOL_EVENT_CREATED, EVENT_CREATED);
+      REGISTER_CONSTANT(VIR_STORAGE_POOL_EVENT_DELETED, EVENT_DELETED);
 
 
       stash = gv_stashpv( "Sys::Virt::Network", TRUE );
index 613358c..0bc1d50 100644 (file)
@@ -497,8 +497,8 @@ Storage pool volume refresh events
 
 =head2 LIFECYCLE CHANGE EVENTS
 
-The following constants allow network lifecycle change events to be
-interpreted. The events contain both a state change, and a
+The following constants allow storage pool lifecycle change events
+to be interpreted. The events contain both a state change, and a
 reason though the reason is currently unsed.
 
 =over 4
@@ -506,20 +506,28 @@ reason though the reason is currently unsed.
 =item Sys::Virt::StoragePool::EVENT_DEFINED
 
 Indicates that a persistent configuration has been defined for
-the network.
+the storage pool
 
 =item Sys::Virt::StoragePool::EVENT_STARTED
 
-The network has started running
+The storage pool has started running
 
 =item Sys::Virt::StoragePool::EVENT_STOPPED
 
-The network has stopped running
+The storage pool has stopped running
 
 =item Sys::Virt::StoragePool::EVENT_UNDEFINED
 
 The persistent configuration has gone away
 
+=item Sys::Virt::StoragePool::EVENT_CREATED
+
+The underlying storage has been built
+
+=item Sys::Virt::StoragePool::EVENT_DELETED
+
+The underlying storage has been released
+
 =back
 
 =head1 AUTHORS