This commit adds two functions into the structure of the driver to support volume events: 'connectStorageVolEventRegisterAny' and 'connectStorageVolEventDeregisterAny'. Signed-off-by: Julio Faracco <jcfaracco@xxxxxxxxx> --- src/driver-storage.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/driver-storage.h b/src/driver-storage.h index 146eb88b2c..f332b9918f 100644 --- a/src/driver-storage.h +++ b/src/driver-storage.h @@ -213,10 +213,21 @@ typedef int void *opaque, virFreeCallback freecb); +typedef int +(*virDrvConnectStorageVolEventRegisterAny)(virConnectPtr conn, + virStorageVolPtr vol, + int eventID, + virConnectStorageVolEventGenericCallback cb, + void *opaque, + virFreeCallback freecb); + typedef int (*virDrvConnectStoragePoolEventDeregisterAny)(virConnectPtr conn, int callbackID); +typedef int +(*virDrvConnectStorageVolEventDeregisterAny)(virConnectPtr conn, + int callbackID); typedef struct _virStorageDriver virStorageDriver; typedef virStorageDriver *virStorageDriverPtr; @@ -237,6 +248,8 @@ struct _virStorageDriver { virDrvConnectFindStoragePoolSources connectFindStoragePoolSources; virDrvConnectStoragePoolEventRegisterAny connectStoragePoolEventRegisterAny; virDrvConnectStoragePoolEventDeregisterAny connectStoragePoolEventDeregisterAny; + virDrvConnectStorageVolEventRegisterAny connectStorageVolEventRegisterAny; + virDrvConnectStorageVolEventDeregisterAny connectStorageVolEventDeregisterAny; virDrvStoragePoolLookupByName storagePoolLookupByName; virDrvStoragePoolLookupByUUID storagePoolLookupByUUID; virDrvStoragePoolLookupByVolume storagePoolLookupByVolume; -- 2.17.0 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list